OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "chromecast/media/cma/base/buffering_frame_provider.h" | 5 #include "chromecast/media/cma/base/buffering_frame_provider.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <list> | 9 #include <list> |
10 #include <memory> | 10 #include <memory> |
11 #include <utility> | 11 #include <utility> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/bind.h" | 14 #include "base/bind.h" |
15 #include "base/macros.h" | 15 #include "base/macros.h" |
16 #include "base/memory/ref_counted.h" | 16 #include "base/memory/ref_counted.h" |
| 17 #include "base/message_loop/message_loop.h" |
17 #include "base/run_loop.h" | 18 #include "base/run_loop.h" |
18 #include "base/single_thread_task_runner.h" | 19 #include "base/single_thread_task_runner.h" |
19 #include "base/threading/thread.h" | 20 #include "base/threading/thread.h" |
20 #include "base/time/time.h" | 21 #include "base/time/time.h" |
21 #include "chromecast/media/cma/test/frame_generator_for_test.h" | 22 #include "chromecast/media/cma/test/frame_generator_for_test.h" |
22 #include "chromecast/media/cma/test/mock_frame_consumer.h" | 23 #include "chromecast/media/cma/test/mock_frame_consumer.h" |
23 #include "chromecast/media/cma/test/mock_frame_provider.h" | 24 #include "chromecast/media/cma/test/mock_frame_provider.h" |
24 #include "chromecast/public/media/cast_decoder_buffer.h" | 25 #include "chromecast/public/media/cast_decoder_buffer.h" |
25 #include "media/base/audio_decoder_config.h" | 26 #include "media/base/audio_decoder_config.h" |
26 #include "media/base/decoder_buffer.h" | 27 #include "media/base/decoder_buffer.h" |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 | 180 |
180 std::unique_ptr<base::MessageLoop> message_loop(new base::MessageLoop()); | 181 std::unique_ptr<base::MessageLoop> message_loop(new base::MessageLoop()); |
181 message_loop->task_runner()->PostTask( | 182 message_loop->task_runner()->PostTask( |
182 FROM_HERE, | 183 FROM_HERE, |
183 base::Bind(&BufferingFrameProviderTest::Start, base::Unretained(this))); | 184 base::Bind(&BufferingFrameProviderTest::Start, base::Unretained(this))); |
184 base::RunLoop().Run(); | 185 base::RunLoop().Run(); |
185 } | 186 } |
186 | 187 |
187 } // namespace media | 188 } // namespace media |
188 } // namespace chromecast | 189 } // namespace chromecast |
OLD | NEW |