| 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/buffering_frame_provider.h" | 14 #include "chromecast/media/cma/base/buffering_frame_provider.h" |
| 15 #include "chromecast/media/cma/base/decoder_buffer_base.h" | |
| 16 #include "chromecast/media/cma/test/frame_generator_for_test.h" | 15 #include "chromecast/media/cma/test/frame_generator_for_test.h" |
| 17 #include "chromecast/media/cma/test/mock_frame_consumer.h" | 16 #include "chromecast/media/cma/test/mock_frame_consumer.h" |
| 18 #include "chromecast/media/cma/test/mock_frame_provider.h" | 17 #include "chromecast/media/cma/test/mock_frame_provider.h" |
| 18 #include "chromecast/public/media/cast_decoder_buffer.h" |
| 19 #include "media/base/audio_decoder_config.h" | 19 #include "media/base/audio_decoder_config.h" |
| 20 #include "media/base/decoder_buffer.h" | 20 #include "media/base/decoder_buffer.h" |
| 21 #include "media/base/video_decoder_config.h" | 21 #include "media/base/video_decoder_config.h" |
| 22 #include "testing/gtest/include/gtest/gtest.h" | 22 #include "testing/gtest/include/gtest/gtest.h" |
| 23 | 23 |
| 24 namespace chromecast { | 24 namespace chromecast { |
| 25 namespace media { | 25 namespace media { |
| 26 | 26 |
| 27 class BufferingFrameProviderTest : public testing::Test { | 27 class BufferingFrameProviderTest : public testing::Test { |
| 28 public: | 28 public: |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 | 178 |
| 179 scoped_ptr<base::MessageLoop> message_loop(new base::MessageLoop()); | 179 scoped_ptr<base::MessageLoop> message_loop(new base::MessageLoop()); |
| 180 message_loop->PostTask( | 180 message_loop->PostTask( |
| 181 FROM_HERE, | 181 FROM_HERE, |
| 182 base::Bind(&BufferingFrameProviderTest::Start, base::Unretained(this))); | 182 base::Bind(&BufferingFrameProviderTest::Start, base::Unretained(this))); |
| 183 message_loop->Run(); | 183 message_loop->Run(); |
| 184 }; | 184 }; |
| 185 | 185 |
| 186 } // namespace media | 186 } // namespace media |
| 187 } // namespace chromecast | 187 } // namespace chromecast |
| OLD | NEW |