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

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

Issue 139513007: Revert of Add Stop() to AudioDecoder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 11 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_decoder_selector.cc » ('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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 92
93 // AudioDecoder implementation. 93 // AudioDecoder implementation.
94 MOCK_METHOD3(Initialize, void(DemuxerStream*, 94 MOCK_METHOD3(Initialize, void(DemuxerStream*,
95 const PipelineStatusCB&, 95 const PipelineStatusCB&,
96 const StatisticsCB&)); 96 const StatisticsCB&));
97 MOCK_METHOD1(Read, void(const ReadCB&)); 97 MOCK_METHOD1(Read, void(const ReadCB&));
98 MOCK_METHOD0(bits_per_channel, int(void)); 98 MOCK_METHOD0(bits_per_channel, int(void));
99 MOCK_METHOD0(channel_layout, ChannelLayout(void)); 99 MOCK_METHOD0(channel_layout, ChannelLayout(void));
100 MOCK_METHOD0(samples_per_second, int(void)); 100 MOCK_METHOD0(samples_per_second, int(void));
101 MOCK_METHOD1(Reset, void(const base::Closure&)); 101 MOCK_METHOD1(Reset, void(const base::Closure&));
102 MOCK_METHOD1(Stop, void(const base::Closure&));
103 102
104 private: 103 private:
105 DISALLOW_COPY_AND_ASSIGN(MockAudioDecoder); 104 DISALLOW_COPY_AND_ASSIGN(MockAudioDecoder);
106 }; 105 };
107 106
108 class MockVideoRenderer : public VideoRenderer { 107 class MockVideoRenderer : public VideoRenderer {
109 public: 108 public:
110 MockVideoRenderer(); 109 MockVideoRenderer();
111 virtual ~MockVideoRenderer(); 110 virtual ~MockVideoRenderer();
112 111
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 public: 207 public:
209 MockStatisticsCB(); 208 MockStatisticsCB();
210 ~MockStatisticsCB(); 209 ~MockStatisticsCB();
211 210
212 MOCK_METHOD1(OnStatistics, void(const media::PipelineStatistics& statistics)); 211 MOCK_METHOD1(OnStatistics, void(const media::PipelineStatistics& statistics));
213 }; 212 };
214 213
215 } // namespace media 214 } // namespace media
216 215
217 #endif // MEDIA_BASE_MOCK_FILTERS_H_ 216 #endif // MEDIA_BASE_MOCK_FILTERS_H_
OLDNEW
« no previous file with comments | « media/base/audio_decoder.h ('k') | media/filters/audio_decoder_selector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698