Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(191)

Side by Side Diff: media/base/fake_demuxer_stream.h

Issue 1137263002: Chromecast: adds CmaRenderer test coverage. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: revert chromium.fyi.json change Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « media/base/BUILD.gn ('k') | media/base/fake_demuxer_stream.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 MEDIA_FILTERS_FAKE_DEMUXER_STREAM_H_ 5 #ifndef MEDIA_BASE_FAKE_DEMUXER_STREAM_H_
6 #define MEDIA_FILTERS_FAKE_DEMUXER_STREAM_H_ 6 #define MEDIA_BASE_FAKE_DEMUXER_STREAM_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "media/base/audio_decoder_config.h" 10 #include "media/base/audio_decoder_config.h"
11 #include "media/base/demuxer_stream.h" 11 #include "media/base/demuxer_stream.h"
12 #include "media/base/demuxer_stream_provider.h"
12 #include "media/base/video_decoder_config.h" 13 #include "media/base/video_decoder_config.h"
13 14
14 namespace base { 15 namespace base {
15 class SingleThreadTaskRunner; 16 class SingleThreadTaskRunner;
16 } // namespace base 17 } // namespace base
17 18
18 namespace media { 19 namespace media {
19 20
20 class FakeDemuxerStream : public DemuxerStream { 21 class FakeDemuxerStream : public DemuxerStream {
21 public: 22 public:
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 ReadCB read_cb_; 96 ReadCB read_cb_;
96 97
97 int next_read_num_; 98 int next_read_num_;
98 // Zero-based number indicating which read operation should be held. -1 means 99 // Zero-based number indicating which read operation should be held. -1 means
99 // no read shall be held. 100 // no read shall be held.
100 int read_to_hold_; 101 int read_to_hold_;
101 102
102 DISALLOW_COPY_AND_ASSIGN(FakeDemuxerStream); 103 DISALLOW_COPY_AND_ASSIGN(FakeDemuxerStream);
103 }; 104 };
104 105
106 class FakeDemuxerStreamProvider : public DemuxerStreamProvider {
107 public:
108 // Note: FakeDemuxerStream currently only supports a fake video DemuxerStream.
109 FakeDemuxerStreamProvider(int num_video_configs,
110 int num_video_buffers_in_one_config,
111 bool is_video_encrypted);
112 ~FakeDemuxerStreamProvider() override;
113
114 // DemuxerStreamProvider implementation.
115 DemuxerStream* GetStream(DemuxerStream::Type type) override;
116
117 private:
118 FakeDemuxerStream fake_video_stream_;
119
120 DISALLOW_COPY_AND_ASSIGN(FakeDemuxerStreamProvider);
121 };
122
105 } // namespace media 123 } // namespace media
106 124
107 #endif // MEDIA_FILTERS_FAKE_DEMUXER_STREAM_H_ 125 #endif // MEDIA_BASE_FAKE_DEMUXER_STREAM_H_
OLDNEW
« no previous file with comments | « media/base/BUILD.gn ('k') | media/base/fake_demuxer_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698