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

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

Issue 16274005: Separate DemuxerStream and VideoDecoder. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: VideoFrameStream ready for review. Created 7 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_BASE_MOCK_FILTERS_H_ 5 #ifndef MEDIA_BASE_MOCK_FILTERS_H_
6 #define MEDIA_BASE_MOCK_FILTERS_H_ 6 #define MEDIA_BASE_MOCK_FILTERS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 64
65 DISALLOW_COPY_AND_ASSIGN(MockDemuxerStream); 65 DISALLOW_COPY_AND_ASSIGN(MockDemuxerStream);
66 }; 66 };
67 67
68 class MockVideoDecoder : public VideoDecoder { 68 class MockVideoDecoder : public VideoDecoder {
69 public: 69 public:
70 MockVideoDecoder(); 70 MockVideoDecoder();
71 virtual ~MockVideoDecoder(); 71 virtual ~MockVideoDecoder();
72 72
73 // VideoDecoder implementation. 73 // VideoDecoder implementation.
74 MOCK_METHOD3(Initialize, void(DemuxerStream*, 74 MOCK_METHOD3(Initialize, void(const VideoDecoderConfig& config,
75 const PipelineStatusCB&, 75 const PipelineStatusCB&,
76 const StatisticsCB&)); 76 const StatisticsCB&));
77 MOCK_METHOD1(Read, void(const ReadCB&)); 77 MOCK_METHOD2(Decode, void(const scoped_refptr<DecoderBuffer>& buffer,
78 const ReadCB&));
78 MOCK_METHOD1(Reset, void(const base::Closure&)); 79 MOCK_METHOD1(Reset, void(const base::Closure&));
79 MOCK_METHOD1(Stop, void(const base::Closure&)); 80 MOCK_METHOD1(Stop, void(const base::Closure&));
80 MOCK_CONST_METHOD0(HasAlpha, bool()); 81 MOCK_CONST_METHOD0(HasAlpha, bool());
81 82
82 private: 83 private:
83 DISALLOW_COPY_AND_ASSIGN(MockVideoDecoder); 84 DISALLOW_COPY_AND_ASSIGN(MockVideoDecoder);
84 }; 85 };
85 86
86 class MockAudioDecoder : public AudioDecoder { 87 class MockAudioDecoder : public AudioDecoder {
87 public: 88 public:
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 public: 193 public:
193 MockStatisticsCB(); 194 MockStatisticsCB();
194 ~MockStatisticsCB(); 195 ~MockStatisticsCB();
195 196
196 MOCK_METHOD1(OnStatistics, void(const media::PipelineStatistics& statistics)); 197 MOCK_METHOD1(OnStatistics, void(const media::PipelineStatistics& statistics));
197 }; 198 };
198 199
199 } // namespace media 200 } // namespace media
200 201
201 #endif // MEDIA_BASE_MOCK_FILTERS_H_ 202 #endif // MEDIA_BASE_MOCK_FILTERS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698