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/test/mock_frame_provider.h" | 5 #include "chromecast/media/cma/test/mock_frame_provider.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/location.h" | 8 #include "base/location.h" |
9 #include "base/message_loop/message_loop_proxy.h" | 9 #include "base/message_loop/message_loop_proxy.h" |
10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
11 #include "chromecast/media/cma/base/decoder_buffer_base.h" | 11 #include "chromecast/media/cma/base/decoder_buffer_base.h" |
12 #include "chromecast/media/cma/test/frame_generator_for_test.h" | 12 #include "chromecast/media/cma/test/frame_generator_for_test.h" |
13 #include "media/base/audio_decoder_config.h" | 13 #include "media/base/audio_decoder_config.h" |
14 #include "media/base/decoder_buffer.h" | 14 #include "media/base/decoder_buffer.h" |
15 #include "media/base/video_decoder_config.h" | 15 #include "media/base/video_decoder_config.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
17 #include "ui/gfx/rect.h" | 17 #include "ui/gfx/geometry/rect.h" |
18 #include "ui/gfx/size.h" | 18 #include "ui/gfx/size.h" |
19 | 19 |
20 namespace chromecast { | 20 namespace chromecast { |
21 namespace media { | 21 namespace media { |
22 | 22 |
23 MockFrameProvider::MockFrameProvider() { | 23 MockFrameProvider::MockFrameProvider() { |
24 } | 24 } |
25 | 25 |
26 MockFrameProvider::~MockFrameProvider() { | 26 MockFrameProvider::~MockFrameProvider() { |
27 } | 27 } |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 44100, | 86 44100, |
87 NULL, 0, | 87 NULL, 0, |
88 false); | 88 false); |
89 } | 89 } |
90 | 90 |
91 read_cb.Run(buffer, audio_config, video_config); | 91 read_cb.Run(buffer, audio_config, video_config); |
92 } | 92 } |
93 | 93 |
94 } // namespace media | 94 } // namespace media |
95 } // namespace chromecast | 95 } // namespace chromecast |
OLD | NEW |