Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "media/base/filter_collection.h" | 5 #include "media/base/filter_collection.h" |
| 6 | |
| 6 #include "media/base/mock_filters.h" | 7 #include "media/base/mock_filters.h" |
| 7 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
| 8 | 9 |
| 9 namespace media { | 10 namespace media { |
| 10 | 11 |
| 11 class FilterCollectionTest : public ::testing::Test { | 12 class FilterCollectionTest : public ::testing::Test { |
|
Ami GONE FROM CHROMIUM
2012/07/21 05:02:35
FilterCollection is a strange name for a collectio
scherkus (not reviewing)
2012/07/23 03:21:12
Agreed -- updated FilterCollection header to point
| |
| 12 public: | 13 public: |
| 13 FilterCollectionTest() {} | 14 FilterCollectionTest() {} |
| 14 virtual ~FilterCollectionTest() {} | 15 virtual ~FilterCollectionTest() {} |
| 15 | 16 |
| 16 protected: | 17 protected: |
| 17 FilterCollection collection_; | 18 FilterCollection collection_; |
| 18 MockFilterCollection mock_filters_; | 19 MockFilterCollection mock_filters_; |
| 19 | 20 |
| 20 DISALLOW_COPY_AND_ASSIGN(FilterCollectionTest); | 21 DISALLOW_COPY_AND_ASSIGN(FilterCollectionTest); |
| 21 }; | 22 }; |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 90 EXPECT_TRUE(audio_decoder); | 91 EXPECT_TRUE(audio_decoder); |
| 91 EXPECT_EQ(audio_decoder, audio_decoder_b); | 92 EXPECT_EQ(audio_decoder, audio_decoder_b); |
| 92 EXPECT_TRUE(collection_.IsEmpty()); | 93 EXPECT_TRUE(collection_.IsEmpty()); |
| 93 | 94 |
| 94 // Verify that third SelectAudioDecoder() returns nothing. | 95 // Verify that third SelectAudioDecoder() returns nothing. |
| 95 collection_.SelectAudioDecoder(&audio_decoder); | 96 collection_.SelectAudioDecoder(&audio_decoder); |
| 96 EXPECT_FALSE(audio_decoder); | 97 EXPECT_FALSE(audio_decoder); |
| 97 } | 98 } |
| 98 | 99 |
| 99 } // namespace media | 100 } // namespace media |
| OLD | NEW |