Index: media/base/filter_collection_unittest.cc |
diff --git a/media/base/filter_collection_unittest.cc b/media/base/filter_collection_unittest.cc |
index 70624a1c86ff328eaaf58be8b4bf95f590612f12..990d6a733864bb8755e2577a153db734b62bcf49 100644 |
--- a/media/base/filter_collection_unittest.cc |
+++ b/media/base/filter_collection_unittest.cc |
@@ -34,39 +34,25 @@ TEST_F(FilterCollectionTest, TestIsEmptyAndClear) { |
TEST_F(FilterCollectionTest, SelectXXXMethods) { |
scoped_refptr<AudioDecoder> audio_decoder; |
- scoped_refptr<VideoDecoder> video_decoder; |
- collection_.AddVideoDecoder(mock_filters_.video_decoder()); |
- EXPECT_FALSE(collection_.IsEmpty()); |
+ EXPECT_TRUE(collection_.IsEmpty()); |
- // Verify that the video decoder will not be returned if we |
- // ask for a different type. |
collection_.SelectAudioDecoder(&audio_decoder); |
EXPECT_FALSE(audio_decoder); |
- EXPECT_FALSE(collection_.IsEmpty()); |
- |
- // Verify that we can actually retrieve the video decoder |
- // and that it is removed from the collection. |
- collection_.SelectVideoDecoder(&video_decoder); |
- EXPECT_TRUE(video_decoder); |
EXPECT_TRUE(collection_.IsEmpty()); |
- // Add a video decoder and audio decoder. |
- collection_.AddVideoDecoder(mock_filters_.video_decoder()); |
+ // Add an audio decoder. |
collection_.AddAudioDecoder(mock_filters_.audio_decoder()); |
+ EXPECT_FALSE(collection_.IsEmpty()); |
// Verify that we can select the audio decoder. |
collection_.SelectAudioDecoder(&audio_decoder); |
EXPECT_TRUE(audio_decoder); |
- EXPECT_FALSE(collection_.IsEmpty()); |
+ EXPECT_TRUE(collection_.IsEmpty()); |
// Verify that we can't select it again since only one has been added. |
collection_.SelectAudioDecoder(&audio_decoder); |
EXPECT_FALSE(audio_decoder); |
- |
- // Verify that we can select the video decoder and that doing so will |
- // empty the collection again. |
- collection_.SelectVideoDecoder(&video_decoder); |
EXPECT_TRUE(collection_.IsEmpty()); |
} |