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 #ifndef CHROMECAST_MEDIA_CMA_TEST_DUMMY_DEMUXER_STREAM_H_ | 5 #ifndef CHROMECAST_RENDERER_MEDIA_DEMUXER_STREAM_FOR_TEST_H_ |
6 #define CHROMECAST_MEDIA_CMA_TEST_DUMMY_DEMUXER_STREAM_H_ | 6 #define CHROMECAST_RENDERER_MEDIA_DEMUXER_STREAM_FOR_TEST_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/thread_task_runner_handle.h" | 11 #include "base/thread_task_runner_handle.h" |
12 #include "chromecast/media/cma/filters/demuxer_stream_adapter.h" | 12 #include "chromecast/renderer/media/demuxer_stream_adapter.h" |
13 #include "media/base/decoder_buffer.h" | 13 #include "media/base/decoder_buffer.h" |
14 #include "media/base/demuxer_stream.h" | 14 #include "media/base/demuxer_stream.h" |
15 | 15 |
16 namespace chromecast { | 16 namespace chromecast { |
17 namespace media { | 17 namespace media { |
18 | 18 |
19 class DemuxerStreamForTest : public ::media::DemuxerStream { | 19 class DemuxerStreamForTest : public ::media::DemuxerStream { |
20 public: | 20 public: |
21 // Creates a demuxer stream which provides frames either with a delay | 21 // Creates a demuxer stream which provides frames either with a delay |
22 // or instantly. | 22 // or instantly. |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 // Number of frames sent so far. | 64 // Number of frames sent so far. |
65 int frame_count_; | 65 int frame_count_; |
66 | 66 |
67 bool has_pending_read_; | 67 bool has_pending_read_; |
68 | 68 |
69 DISALLOW_COPY_AND_ASSIGN(DemuxerStreamForTest); | 69 DISALLOW_COPY_AND_ASSIGN(DemuxerStreamForTest); |
70 }; | 70 }; |
71 | 71 |
72 } // namespace media | 72 } // namespace media |
73 } // namespace chromecast | 73 } // namespace chromecast |
74 #endif | 74 |
| 75 #endif // CHROMECAST_RENDERER_MEDIA_DEMUXER_STREAM_FOR_TEST_H_ |
OLD | NEW |