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

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

Issue 1146913008: Revert of media: Simplify {Audio|Video}Decoder initialization callback. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « media/base/audio_decoder.h ('k') | media/base/test_helpers.h » ('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) 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 DISALLOW_COPY_AND_ASSIGN(MockDemuxerStream); 75 DISALLOW_COPY_AND_ASSIGN(MockDemuxerStream);
76 }; 76 };
77 77
78 class MockVideoDecoder : public VideoDecoder { 78 class MockVideoDecoder : public VideoDecoder {
79 public: 79 public:
80 MockVideoDecoder(); 80 MockVideoDecoder();
81 virtual ~MockVideoDecoder(); 81 virtual ~MockVideoDecoder();
82 82
83 // VideoDecoder implementation. 83 // VideoDecoder implementation.
84 virtual std::string GetDisplayName() const; 84 virtual std::string GetDisplayName() const;
85 MOCK_METHOD4(Initialize, 85 MOCK_METHOD4(Initialize, void(const VideoDecoderConfig& config,
86 void(const VideoDecoderConfig& config, 86 bool low_delay,
87 bool low_delay, 87 const PipelineStatusCB& status_cb,
88 const InitCB& init_cb, 88 const OutputCB& output_cb));
89 const OutputCB& output_cb));
90 MOCK_METHOD2(Decode, void(const scoped_refptr<DecoderBuffer>& buffer, 89 MOCK_METHOD2(Decode, void(const scoped_refptr<DecoderBuffer>& buffer,
91 const DecodeCB&)); 90 const DecodeCB&));
92 MOCK_METHOD1(Reset, void(const base::Closure&)); 91 MOCK_METHOD1(Reset, void(const base::Closure&));
93 MOCK_CONST_METHOD0(HasAlpha, bool()); 92 MOCK_CONST_METHOD0(HasAlpha, bool());
94 93
95 private: 94 private:
96 DISALLOW_COPY_AND_ASSIGN(MockVideoDecoder); 95 DISALLOW_COPY_AND_ASSIGN(MockVideoDecoder);
97 }; 96 };
98 97
99 class MockAudioDecoder : public AudioDecoder { 98 class MockAudioDecoder : public AudioDecoder {
100 public: 99 public:
101 MockAudioDecoder(); 100 MockAudioDecoder();
102 virtual ~MockAudioDecoder(); 101 virtual ~MockAudioDecoder();
103 102
104 // AudioDecoder implementation. 103 // AudioDecoder implementation.
105 virtual std::string GetDisplayName() const; 104 virtual std::string GetDisplayName() const;
106 MOCK_METHOD3(Initialize, 105 MOCK_METHOD3(Initialize,
107 void(const AudioDecoderConfig& config, 106 void(const AudioDecoderConfig& config,
108 const InitCB& init_cb, 107 const PipelineStatusCB& status_cb,
109 const OutputCB& output_cb)); 108 const OutputCB& output_cb));
110 MOCK_METHOD2(Decode, 109 MOCK_METHOD2(Decode,
111 void(const scoped_refptr<DecoderBuffer>& buffer, 110 void(const scoped_refptr<DecoderBuffer>& buffer,
112 const DecodeCB&)); 111 const DecodeCB&));
113 MOCK_METHOD1(Reset, void(const base::Closure&)); 112 MOCK_METHOD1(Reset, void(const base::Closure&));
114 113
115 private: 114 private:
116 DISALLOW_COPY_AND_ASSIGN(MockAudioDecoder); 115 DISALLOW_COPY_AND_ASSIGN(MockAudioDecoder);
117 }; 116 };
118 117
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 MOCK_METHOD1(ResetDecoder, void(StreamType stream_type)); 252 MOCK_METHOD1(ResetDecoder, void(StreamType stream_type));
254 MOCK_METHOD1(DeinitializeDecoder, void(StreamType stream_type)); 253 MOCK_METHOD1(DeinitializeDecoder, void(StreamType stream_type));
255 254
256 private: 255 private:
257 DISALLOW_COPY_AND_ASSIGN(MockDecryptor); 256 DISALLOW_COPY_AND_ASSIGN(MockDecryptor);
258 }; 257 };
259 258
260 } // namespace media 259 } // namespace media
261 260
262 #endif // MEDIA_BASE_MOCK_FILTERS_H_ 261 #endif // MEDIA_BASE_MOCK_FILTERS_H_
OLDNEW
« no previous file with comments | « media/base/audio_decoder.h ('k') | media/base/test_helpers.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698