| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 <memory> | 5 #include <memory> |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 11 #include "base/memory/scoped_vector.h" | 11 #include "base/memory/scoped_vector.h" |
| 12 #include "base/thread_task_runner_handle.h" | |
| 13 #include "base/threading/thread.h" | 12 #include "base/threading/thread.h" |
| 13 #include "base/threading/thread_task_runner_handle.h" |
| 14 #include "base/time/time.h" | 14 #include "base/time/time.h" |
| 15 #include "chromecast/media/cma/base/balanced_media_task_runner_factory.h" | 15 #include "chromecast/media/cma/base/balanced_media_task_runner_factory.h" |
| 16 #include "chromecast/media/cma/base/decoder_buffer_base.h" | 16 #include "chromecast/media/cma/base/decoder_buffer_base.h" |
| 17 #include "chromecast/media/cma/base/demuxer_stream_adapter.h" | 17 #include "chromecast/media/cma/base/demuxer_stream_adapter.h" |
| 18 #include "chromecast/media/cma/base/demuxer_stream_for_test.h" | 18 #include "chromecast/media/cma/base/demuxer_stream_for_test.h" |
| 19 #include "chromecast/public/media/cast_decoder_buffer.h" | 19 #include "chromecast/public/media/cast_decoder_buffer.h" |
| 20 #include "media/base/audio_decoder_config.h" | 20 #include "media/base/audio_decoder_config.h" |
| 21 #include "media/base/decoder_buffer.h" | 21 #include "media/base/decoder_buffer.h" |
| 22 #include "media/base/demuxer_stream.h" | 22 #include "media/base/demuxer_stream.h" |
| 23 #include "media/base/video_decoder_config.h" | 23 #include "media/base/video_decoder_config.h" |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 total_expected_frames_ = frame_count_short + frame_count_long; | 159 total_expected_frames_ = frame_count_short + frame_count_long; |
| 160 | 160 |
| 161 std::unique_ptr<base::MessageLoop> message_loop(new base::MessageLoop()); | 161 std::unique_ptr<base::MessageLoop> message_loop(new base::MessageLoop()); |
| 162 message_loop->PostTask(FROM_HERE, | 162 message_loop->PostTask(FROM_HERE, |
| 163 base::Bind(&MultiDemuxerStreamAdaptersTest::Start, | 163 base::Bind(&MultiDemuxerStreamAdaptersTest::Start, |
| 164 base::Unretained(this))); | 164 base::Unretained(this))); |
| 165 message_loop->Run(); | 165 message_loop->Run(); |
| 166 } | 166 } |
| 167 } // namespace media | 167 } // namespace media |
| 168 } // namespace chromecast | 168 } // namespace chromecast |
| OLD | NEW |