Index: media/filters/video_decoder_selector_unittest.cc |
diff --git a/media/filters/video_decoder_selector_unittest.cc b/media/filters/video_decoder_selector_unittest.cc |
index 62b1a421456bf22997c7f70158ea90020a52091c..7a9580e6f0c395a30c29e7dfcc24aa4719deebe8 100644 |
--- a/media/filters/video_decoder_selector_unittest.cc |
+++ b/media/filters/video_decoder_selector_unittest.cc |
@@ -45,9 +45,6 @@ class VideoDecoderSelectorTest : public ::testing::Test { |
} |
~VideoDecoderSelectorTest() { |
- if (selected_decoder_) |
- selected_decoder_->Stop(); |
- |
message_loop_.RunUntilIdle(); |
} |
@@ -149,11 +146,6 @@ class VideoDecoderSelectorTest : public ::testing::Test { |
DISALLOW_COPY_AND_ASSIGN(VideoDecoderSelectorTest); |
}; |
-// Note: |
-// In all the tests, Stop() is expected to be called on a decoder if a decoder: |
-// - is pending initialization and DecoderSelector::Abort() is called, or |
-// - has been successfully initialized. |
- |
// The stream is not encrypted but we have no clear decoder. No decoder can be |
// selected. |
TEST_F(VideoDecoderSelectorTest, ClearStream_NoDecryptor_NoClearDecoder) { |
@@ -174,7 +166,6 @@ TEST_F(VideoDecoderSelectorTest, ClearStream_NoDecryptor_OneClearDecoder) { |
EXPECT_CALL(*decoder_1_, Initialize(_, _, _, _)) |
.WillOnce(RunCallback<2>(PIPELINE_OK)); |
EXPECT_CALL(*this, OnDecoderSelected(decoder_1_, IsNull())); |
- EXPECT_CALL(*decoder_1_, Stop()); |
SelectDecoder(); |
} |
@@ -185,7 +176,6 @@ TEST_F(VideoDecoderSelectorTest, |
InitializeDecoderSelector(kNoDecryptor, 1); |
EXPECT_CALL(*decoder_1_, Initialize(_, _, _, _)); |
- EXPECT_CALL(*decoder_1_, Stop()); |
SelectDecoderAndAbort(); |
} |
@@ -201,7 +191,6 @@ TEST_F(VideoDecoderSelectorTest, ClearStream_NoDecryptor_MultipleClearDecoder) { |
EXPECT_CALL(*decoder_2_, Initialize(_, _, _, _)) |
.WillOnce(RunCallback<2>(PIPELINE_OK)); |
EXPECT_CALL(*this, OnDecoderSelected(decoder_2_, IsNull())); |
- EXPECT_CALL(*decoder_2_, Stop()); |
SelectDecoder(); |
} |
@@ -214,7 +203,6 @@ TEST_F(VideoDecoderSelectorTest, |
EXPECT_CALL(*decoder_1_, Initialize(_, _, _, _)) |
.WillOnce(RunCallback<2>(DECODER_ERROR_NOT_SUPPORTED)); |
EXPECT_CALL(*decoder_2_, Initialize(_, _, _, _)); |
- EXPECT_CALL(*decoder_2_, Stop()); |
SelectDecoderAndAbort(); |
} |
@@ -228,7 +216,6 @@ TEST_F(VideoDecoderSelectorTest, ClearStream_HasDecryptor) { |
EXPECT_CALL(*decoder_1_, Initialize(_, _, _, _)) |
.WillOnce(RunCallback<2>(PIPELINE_OK)); |
EXPECT_CALL(*this, OnDecoderSelected(decoder_1_, IsNull())); |
- EXPECT_CALL(*decoder_1_, Stop()); |
SelectDecoder(); |
} |
@@ -238,7 +225,6 @@ TEST_F(VideoDecoderSelectorTest, Abort_ClearStream_HasDecryptor) { |
InitializeDecoderSelector(kDecryptOnly, 1); |
EXPECT_CALL(*decoder_1_, Initialize(_, _, _, _)); |
- EXPECT_CALL(*decoder_1_, Stop()); |
SelectDecoderAndAbort(); |
} |
@@ -281,7 +267,6 @@ TEST_F(VideoDecoderSelectorTest, EncryptedStream_DecryptOnly_OneClearDecoder) { |
EXPECT_CALL(*decoder_1_, Initialize(_, _, _, _)) |
.WillOnce(RunCallback<2>(PIPELINE_OK)); |
EXPECT_CALL(*this, OnDecoderSelected(decoder_1_, NotNull())); |
- EXPECT_CALL(*decoder_1_, Stop()); |
SelectDecoder(); |
} |
@@ -292,7 +277,6 @@ TEST_F(VideoDecoderSelectorTest, |
InitializeDecoderSelector(kDecryptOnly, 1); |
EXPECT_CALL(*decoder_1_, Initialize(_, _, _, _)); |
- EXPECT_CALL(*decoder_1_, Stop()); |
SelectDecoderAndAbort(); |
} |
@@ -310,7 +294,6 @@ TEST_F(VideoDecoderSelectorTest, |
EXPECT_CALL(*decoder_2_, Initialize(_, _, _, _)) |
.WillOnce(RunCallback<2>(PIPELINE_OK)); |
EXPECT_CALL(*this, OnDecoderSelected(decoder_2_, NotNull())); |
- EXPECT_CALL(*decoder_2_, Stop()); |
SelectDecoder(); |
} |
@@ -323,7 +306,6 @@ TEST_F(VideoDecoderSelectorTest, |
EXPECT_CALL(*decoder_1_, Initialize(_, _, _, _)) |
.WillOnce(RunCallback<2>(DECODER_ERROR_NOT_SUPPORTED)); |
EXPECT_CALL(*decoder_2_, Initialize(_, _, _, _)); |
- EXPECT_CALL(*decoder_2_, Stop()); |
SelectDecoderAndAbort(); |
} |