| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <stddef.h> |
| 6 |
| 5 #include <vector> | 7 #include <vector> |
| 6 | 8 |
| 7 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/macros.h" |
| 8 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
| 12 #include "build/build_config.h" |
| 9 #include "media/base/gmock_callback_support.h" | 13 #include "media/base/gmock_callback_support.h" |
| 10 #include "media/base/mock_filters.h" | 14 #include "media/base/mock_filters.h" |
| 11 #include "media/base/test_helpers.h" | 15 #include "media/base/test_helpers.h" |
| 12 #include "media/filters/decoder_selector.h" | 16 #include "media/filters/decoder_selector.h" |
| 13 #include "media/filters/decrypting_demuxer_stream.h" | 17 #include "media/filters/decrypting_demuxer_stream.h" |
| 14 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
| 15 | 19 |
| 16 using ::testing::_; | 20 using ::testing::_; |
| 17 using ::testing::IsNull; | 21 using ::testing::IsNull; |
| 18 using ::testing::NiceMock; | 22 using ::testing::NiceMock; |
| (...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 416 } | 420 } |
| 417 | 421 |
| 418 TEST_F(VideoDecoderSelectorTest, Destroy_EncryptedStream_DecryptAndDecode) { | 422 TEST_F(VideoDecoderSelectorTest, Destroy_EncryptedStream_DecryptAndDecode) { |
| 419 UseEncryptedStream(); | 423 UseEncryptedStream(); |
| 420 InitializeDecoderSelector(kHoldSetDecryptor, 1); | 424 InitializeDecoderSelector(kHoldSetDecryptor, 1); |
| 421 | 425 |
| 422 SelectDecoderAndDestroy(); | 426 SelectDecoderAndDestroy(); |
| 423 } | 427 } |
| 424 | 428 |
| 425 } // namespace media | 429 } // namespace media |
| OLD | NEW |