| 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 "base/bind.h" | 5 #include "base/bind.h" |
| 6 #include "base/callback_helpers.h" | 6 #include "base/callback_helpers.h" |
| 7 #include "base/macros.h" |
| 7 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
| 8 #include "media/base/fake_demuxer_stream.h" | 9 #include "media/base/fake_demuxer_stream.h" |
| 9 #include "media/base/gmock_callback_support.h" | 10 #include "media/base/gmock_callback_support.h" |
| 10 #include "media/base/mock_filters.h" | 11 #include "media/base/mock_filters.h" |
| 11 #include "media/base/test_helpers.h" | 12 #include "media/base/test_helpers.h" |
| 12 #include "media/base/timestamp_constants.h" | 13 #include "media/base/timestamp_constants.h" |
| 13 #include "media/filters/decoder_stream.h" | 14 #include "media/filters/decoder_stream.h" |
| 14 #include "media/filters/fake_video_decoder.h" | 15 #include "media/filters/fake_video_decoder.h" |
| 15 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
| 16 | 17 |
| (...skipping 847 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 864 | 865 |
| 865 TEST_P(VideoFrameStreamTest, Destroy_DuringFallbackDecoderSelection) { | 866 TEST_P(VideoFrameStreamTest, Destroy_DuringFallbackDecoderSelection) { |
| 866 Initialize(); | 867 Initialize(); |
| 867 decoder1_->SimulateFailureToInit(); | 868 decoder1_->SimulateFailureToInit(); |
| 868 EnterPendingState(DECODER_REINIT); | 869 EnterPendingState(DECODER_REINIT); |
| 869 decoder2_->HoldNextInit(); | 870 decoder2_->HoldNextInit(); |
| 870 SatisfyPendingCallback(DECODER_REINIT); | 871 SatisfyPendingCallback(DECODER_REINIT); |
| 871 } | 872 } |
| 872 | 873 |
| 873 } // namespace media | 874 } // namespace media |
| OLD | NEW |