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

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

Issue 177333003: Add support for midstream audio configuration changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ABS
Patch Set: disable fifo, add <cmath> to fix compile error Created 6 years, 8 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/filters/audio_renderer_impl.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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 public: 90 public:
91 MockAudioDecoder(); 91 MockAudioDecoder();
92 virtual ~MockAudioDecoder(); 92 virtual ~MockAudioDecoder();
93 93
94 // AudioDecoder implementation. 94 // AudioDecoder implementation.
95 MOCK_METHOD2(Initialize, void(const AudioDecoderConfig& config, 95 MOCK_METHOD2(Initialize, void(const AudioDecoderConfig& config,
96 const PipelineStatusCB&)); 96 const PipelineStatusCB&));
97 MOCK_METHOD2(Decode, 97 MOCK_METHOD2(Decode,
98 void(const scoped_refptr<DecoderBuffer>& buffer, 98 void(const scoped_refptr<DecoderBuffer>& buffer,
99 const DecodeCB&)); 99 const DecodeCB&));
100 MOCK_METHOD0(bits_per_channel, int(void));
101 MOCK_METHOD0(channel_layout, ChannelLayout(void));
102 MOCK_METHOD0(samples_per_second, int(void));
103 MOCK_METHOD1(Reset, void(const base::Closure&)); 100 MOCK_METHOD1(Reset, void(const base::Closure&));
104 MOCK_METHOD1(Stop, void(const base::Closure&)); 101 MOCK_METHOD1(Stop, void(const base::Closure&));
105 102
106 private: 103 private:
107 DISALLOW_COPY_AND_ASSIGN(MockAudioDecoder); 104 DISALLOW_COPY_AND_ASSIGN(MockAudioDecoder);
108 }; 105 };
109 106
110 class MockVideoRenderer : public VideoRenderer { 107 class MockVideoRenderer : public VideoRenderer {
111 public: 108 public:
112 MockVideoRenderer(); 109 MockVideoRenderer();
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 public: 206 public:
210 MockStatisticsCB(); 207 MockStatisticsCB();
211 ~MockStatisticsCB(); 208 ~MockStatisticsCB();
212 209
213 MOCK_METHOD1(OnStatistics, void(const media::PipelineStatistics& statistics)); 210 MOCK_METHOD1(OnStatistics, void(const media::PipelineStatistics& statistics));
214 }; 211 };
215 212
216 } // namespace media 213 } // namespace media
217 214
218 #endif // MEDIA_BASE_MOCK_FILTERS_H_ 215 #endif // MEDIA_BASE_MOCK_FILTERS_H_
OLDNEW
« no previous file with comments | « media/base/audio_decoder.h ('k') | media/filters/audio_renderer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698