| 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 <list> | 5 #include <list> |
| 6 #include <vector> | 6 #include <vector> |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/threading/thread.h" | 12 #include "base/threading/thread.h" |
| 13 #include "base/time/time.h" | 13 #include "base/time/time.h" |
| 14 #include "chromecast/media/cma/base/decoder_buffer_base.h" | 14 #include "chromecast/media/cma/base/decoder_buffer_base.h" |
| 15 #include "chromecast/media/cma/base/frame_generator_for_test.h" | |
| 16 #include "chromecast/media/cma/base/mock_frame_consumer.h" | |
| 17 #include "chromecast/media/cma/base/mock_frame_provider.h" | |
| 18 #include "chromecast/media/cma/ipc/media_memory_chunk.h" | 15 #include "chromecast/media/cma/ipc/media_memory_chunk.h" |
| 19 #include "chromecast/media/cma/ipc/media_message_fifo.h" | 16 #include "chromecast/media/cma/ipc/media_message_fifo.h" |
| 20 #include "chromecast/media/cma/ipc_streamer/av_streamer_proxy.h" | 17 #include "chromecast/media/cma/ipc_streamer/av_streamer_proxy.h" |
| 21 #include "chromecast/media/cma/ipc_streamer/coded_frame_provider_host.h" | 18 #include "chromecast/media/cma/ipc_streamer/coded_frame_provider_host.h" |
| 19 #include "chromecast/media/cma/test/frame_generator_for_test.h" |
| 20 #include "chromecast/media/cma/test/mock_frame_consumer.h" |
| 21 #include "chromecast/media/cma/test/mock_frame_provider.h" |
| 22 #include "media/base/audio_decoder_config.h" | 22 #include "media/base/audio_decoder_config.h" |
| 23 #include "media/base/decoder_buffer.h" | 23 #include "media/base/decoder_buffer.h" |
| 24 #include "media/base/video_decoder_config.h" | 24 #include "media/base/video_decoder_config.h" |
| 25 #include "testing/gtest/include/gtest/gtest.h" | 25 #include "testing/gtest/include/gtest/gtest.h" |
| 26 | 26 |
| 27 namespace chromecast { | 27 namespace chromecast { |
| 28 namespace media { | 28 namespace media { |
| 29 | 29 |
| 30 namespace { | 30 namespace { |
| 31 | 31 |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 | 244 |
| 245 scoped_ptr<base::MessageLoop> message_loop(new base::MessageLoop()); | 245 scoped_ptr<base::MessageLoop> message_loop(new base::MessageLoop()); |
| 246 message_loop->PostTask( | 246 message_loop->PostTask( |
| 247 FROM_HERE, | 247 FROM_HERE, |
| 248 base::Bind(&AvStreamerTest::Start, base::Unretained(this))); | 248 base::Bind(&AvStreamerTest::Start, base::Unretained(this))); |
| 249 message_loop->Run(); | 249 message_loop->Run(); |
| 250 }; | 250 }; |
| 251 | 251 |
| 252 } // namespace media | 252 } // namespace media |
| 253 } // namespace chromecast | 253 } // namespace chromecast |
| OLD | NEW |