Index: media/remoting/fake_demuxer_stream_provider.h |
diff --git a/media/remoting/fake_demuxer_stream_provider.h b/media/remoting/fake_demuxer_stream_provider.h |
deleted file mode 100644 |
index dfebff96b1b5c3990bc1e8701dc113f8178ae31d..0000000000000000000000000000000000000000 |
--- a/media/remoting/fake_demuxer_stream_provider.h |
+++ /dev/null |
@@ -1,69 +0,0 @@ |
-// Copyright 2016 The Chromium Authors. All rights reserved. |
-// Use of this source code is governed by a BSD-style license that can be |
-// found in the LICENSE file. |
- |
-#ifndef MEDIA_REMOTING_FAKE_DEMUXER_STREAM_PROVIDER_H_ |
-#define MEDIA_REMOTING_FAKE_DEMUXER_STREAM_PROVIDER_H_ |
- |
-#include <deque> |
- |
-#include "media/base/audio_decoder_config.h" |
-#include "media/base/demuxer_stream.h" |
-#include "media/base/demuxer_stream_provider.h" |
-#include "media/base/video_decoder_config.h" |
-#include "testing/gmock/include/gmock/gmock.h" |
- |
-namespace media { |
-namespace remoting { |
- |
-class FakeDemuxerStream : public DemuxerStream { |
- public: |
- explicit FakeDemuxerStream(bool is_audio); |
- ~FakeDemuxerStream() override; |
- |
- // DemuxerStream implementation. |
- MOCK_METHOD1(Read, void(const ReadCB& read_cb)); |
- void FakeRead(const ReadCB& read_cb); |
- AudioDecoderConfig audio_decoder_config() override; |
- VideoDecoderConfig video_decoder_config() override; |
- Type type() const override; |
- Liveness liveness() const override; |
- void EnableBitstreamConverter() override {} |
- bool SupportsConfigChanges() override; |
- VideoRotation video_rotation() override; |
- bool enabled() const override; |
- void set_enabled(bool enabled, base::TimeDelta timestamp) override {} |
- void SetStreamStatusChangeCB(const StreamStatusChangeCB& cb) override {} |
- |
- void CreateFakeFrame(size_t size, bool key_frame, int pts_ms); |
- |
- private: |
- using BufferQueue = std::deque<scoped_refptr<DecoderBuffer>>; |
- BufferQueue buffer_queue_; |
- ReadCB pending_read_cb_; |
- Type type_; |
- AudioDecoderConfig audio_config_; |
- VideoDecoderConfig video_config_; |
- |
- DISALLOW_COPY_AND_ASSIGN(FakeDemuxerStream); |
-}; |
- |
-// Audio only demuxer stream provider |
-class FakeDemuxerStreamProvider : public DemuxerStreamProvider { |
- public: |
- FakeDemuxerStreamProvider(); |
- ~FakeDemuxerStreamProvider() final; |
- |
- // DemuxerStreamProvider implementation. |
- DemuxerStream* GetStream(DemuxerStream::Type type) override; |
- |
- private: |
- std::unique_ptr<FakeDemuxerStream> demuxer_stream_; |
- |
- DISALLOW_COPY_AND_ASSIGN(FakeDemuxerStreamProvider); |
-}; |
- |
-} // namespace remoting |
-} // namespace media |
- |
-#endif // MEDIA_REMOTING_FAKE_DEMUXER_STREAM_PROVIDER_H_ |