Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(403)

Unified Diff: media/filters/decrypting_video_decoder_unittest.cc

Issue 11144036: Update Decryptor interface to support audio decoding. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove leftover unretained Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/filters/decrypting_video_decoder.cc ('k') | media/filters/ffmpeg_video_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/decrypting_video_decoder_unittest.cc
diff --git a/media/filters/decrypting_video_decoder_unittest.cc b/media/filters/decrypting_video_decoder_unittest.cc
index 0e8e6c1df54f9e9e133d109934ae7b01bf198068..a2566f5b080c041e9f24a8297aff3fcd815152f1 100644
--- a/media/filters/decrypting_video_decoder_unittest.cc
+++ b/media/filters/decrypting_video_decoder_unittest.cc
@@ -13,8 +13,8 @@
#include "media/base/mock_callback.h"
#include "media/base/mock_filters.h"
#include "media/base/video_frame.h"
-#include "media/filters/ffmpeg_decoder_unittest.h"
#include "media/filters/decrypting_video_decoder.h"
+#include "media/filters/ffmpeg_decoder_unittest.h"
#include "testing/gmock/include/gmock/gmock.h"
using ::testing::_;
@@ -210,8 +210,8 @@ class DecryptingVideoDecoderTest : public testing::Test {
}
void Reset() {
- EXPECT_CALL(*decryptor_, CancelDecryptAndDecodeVideo())
- .WillRepeatedly(Invoke(
+ EXPECT_CALL(*decryptor_, ResetDecoder(Decryptor::kVideo))
+ .WillRepeatedly(InvokeWithoutArgs(
this, &DecryptingVideoDecoderTest::AbortPendingVideoDecodeCB));
decoder_->Reset(NewExpectedClosure());
@@ -219,8 +219,8 @@ class DecryptingVideoDecoderTest : public testing::Test {
}
void Stop() {
- EXPECT_CALL(*decryptor_, StopVideoDecoder())
- .WillRepeatedly(Invoke(
+ EXPECT_CALL(*decryptor_, DeinitializeDecoder(Decryptor::kVideo))
+ .WillRepeatedly(InvokeWithoutArgs(
this, &DecryptingVideoDecoderTest::AbortAllPendingCBs));
decoder_->Stop(NewExpectedClosure());
@@ -538,7 +538,7 @@ TEST_F(DecryptingVideoDecoderTest, Stop_DuringPendingReset) {
Initialize();
EnterPendingDecodeState();
- EXPECT_CALL(*decryptor_, CancelDecryptAndDecodeVideo());
+ EXPECT_CALL(*decryptor_, ResetDecoder(Decryptor::kVideo));
EXPECT_CALL(*this, FrameReady(VideoDecoder::kOk, IsNull()));
decoder_->Reset(NewExpectedClosure());
« no previous file with comments | « media/filters/decrypting_video_decoder.cc ('k') | media/filters/ffmpeg_video_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698