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

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: simplify AudioBuffers 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
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 95ed904014e251707d07af40e568fe97d0d275e4..55aa906f1fcbaa87e923b5ce8aba8884c8669935 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::_;
@@ -209,8 +209,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());
@@ -218,8 +218,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());
@@ -537,7 +537,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());

Powered by Google App Engine
This is Rietveld 408576698