| 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/media_util.h" | 14 #include "media/base/media_util.h" |
| 11 #include "media/base/mock_filters.h" | 15 #include "media/base/mock_filters.h" |
| 12 #include "media/base/test_helpers.h" | 16 #include "media/base/test_helpers.h" |
| 13 #include "media/filters/decoder_selector.h" | 17 #include "media/filters/decoder_selector.h" |
| 14 #include "media/filters/decrypting_demuxer_stream.h" | 18 #include "media/filters/decrypting_demuxer_stream.h" |
| 15 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
| 16 | 20 |
| 17 using ::testing::_; | 21 using ::testing::_; |
| 18 using ::testing::InvokeWithoutArgs; | 22 using ::testing::InvokeWithoutArgs; |
| (...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 417 } | 421 } |
| 418 | 422 |
| 419 TEST_F(AudioDecoderSelectorTest, Destroy_EncryptedStream_DecryptAndDecode) { | 423 TEST_F(AudioDecoderSelectorTest, Destroy_EncryptedStream_DecryptAndDecode) { |
| 420 UseEncryptedStream(); | 424 UseEncryptedStream(); |
| 421 InitializeDecoderSelector(kHoldSetDecryptor, 1); | 425 InitializeDecoderSelector(kHoldSetDecryptor, 1); |
| 422 | 426 |
| 423 SelectDecoderAndDestroy(); | 427 SelectDecoderAndDestroy(); |
| 424 } | 428 } |
| 425 | 429 |
| 426 } // namespace media | 430 } // namespace media |
| OLD | NEW |