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

Side by Side Diff: media/remoting/fake_media_resource.h

Issue 2668393002: Rename DemuxerStreamProvider into MediaResource (Closed)
Patch Set: rebase Created 3 years, 10 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_REMOTING_FAKE_DEMUXER_STREAM_PROVIDER_H_ 5 #ifndef MEDIA_REMOTING_FAKE_MEDIA_RESOURCE_H_
6 #define MEDIA_REMOTING_FAKE_DEMUXER_STREAM_PROVIDER_H_ 6 #define MEDIA_REMOTING_FAKE_MEDIA_RESOURCE_H_
7 7
8 #include <deque> 8 #include <deque>
9 9
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/media_resource.h"
13 #include "media/base/video_decoder_config.h" 13 #include "media/base/video_decoder_config.h"
14 #include "testing/gmock/include/gmock/gmock.h" 14 #include "testing/gmock/include/gmock/gmock.h"
15 15
16 namespace media { 16 namespace media {
17 namespace remoting { 17 namespace remoting {
18 18
19 class FakeDemuxerStream : public DemuxerStream { 19 class FakeDemuxerStream : public DemuxerStream {
20 public: 20 public:
21 explicit FakeDemuxerStream(bool is_audio); 21 explicit FakeDemuxerStream(bool is_audio);
22 ~FakeDemuxerStream() override; 22 ~FakeDemuxerStream() override;
(...skipping 19 matching lines...) Expand all
42 BufferQueue buffer_queue_; 42 BufferQueue buffer_queue_;
43 ReadCB pending_read_cb_; 43 ReadCB pending_read_cb_;
44 Type type_; 44 Type type_;
45 AudioDecoderConfig audio_config_; 45 AudioDecoderConfig audio_config_;
46 VideoDecoderConfig video_config_; 46 VideoDecoderConfig video_config_;
47 47
48 DISALLOW_COPY_AND_ASSIGN(FakeDemuxerStream); 48 DISALLOW_COPY_AND_ASSIGN(FakeDemuxerStream);
49 }; 49 };
50 50
51 // Audio only demuxer stream provider 51 // Audio only demuxer stream provider
52 class FakeDemuxerStreamProvider : public DemuxerStreamProvider { 52 class FakeMediaResource : public MediaResource {
53 public: 53 public:
54 FakeDemuxerStreamProvider(); 54 FakeMediaResource();
55 ~FakeDemuxerStreamProvider() final; 55 ~FakeMediaResource() final;
56 56
57 // DemuxerStreamProvider implementation. 57 // MediaResource implementation.
58 DemuxerStream* GetStream(DemuxerStream::Type type) override; 58 DemuxerStream* GetStream(DemuxerStream::Type type) override;
59 59
60 private: 60 private:
61 std::unique_ptr<FakeDemuxerStream> demuxer_stream_; 61 std::unique_ptr<FakeDemuxerStream> demuxer_stream_;
62 62
63 DISALLOW_COPY_AND_ASSIGN(FakeDemuxerStreamProvider); 63 DISALLOW_COPY_AND_ASSIGN(FakeMediaResource);
64 }; 64 };
65 65
66 } // namespace remoting 66 } // namespace remoting
67 } // namespace media 67 } // namespace media
68 68
69 #endif // MEDIA_REMOTING_FAKE_DEMUXER_STREAM_PROVIDER_H_ 69 #endif // MEDIA_REMOTING_FAKE_MEDIA_RESOURCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698