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

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

Issue 1129323003: Allow callers of TimeSource::GetWallClockTime() to suspend time. (Closed) Base URL: http://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments. Created 5 years, 7 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 | « no previous file | media/base/time_source.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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 122
123 // VideoRenderer implementation. 123 // VideoRenderer implementation.
124 MOCK_METHOD9(Initialize, 124 MOCK_METHOD9(Initialize,
125 void(DemuxerStream* stream, 125 void(DemuxerStream* stream,
126 const PipelineStatusCB& init_cb, 126 const PipelineStatusCB& init_cb,
127 const SetDecryptorReadyCB& set_decryptor_ready_cb, 127 const SetDecryptorReadyCB& set_decryptor_ready_cb,
128 const StatisticsCB& statistics_cb, 128 const StatisticsCB& statistics_cb,
129 const BufferingStateCB& buffering_state_cb, 129 const BufferingStateCB& buffering_state_cb,
130 const base::Closure& ended_cb, 130 const base::Closure& ended_cb,
131 const PipelineStatusCB& error_cb, 131 const PipelineStatusCB& error_cb,
132 const WallClockTimeCB& wall_clock_time_cb, 132 const TimeSource::WallClockTimeCB& wall_clock_time_cb,
133 const base::Closure& waiting_for_decryption_key_cb)); 133 const base::Closure& waiting_for_decryption_key_cb));
134 MOCK_METHOD1(Flush, void(const base::Closure& callback)); 134 MOCK_METHOD1(Flush, void(const base::Closure& callback));
135 MOCK_METHOD1(StartPlayingFrom, void(base::TimeDelta)); 135 MOCK_METHOD1(StartPlayingFrom, void(base::TimeDelta));
136 MOCK_METHOD1(OnTimeStateChanged, void(bool)); 136 MOCK_METHOD1(OnTimeStateChanged, void(bool));
137 137
138 private: 138 private:
139 DISALLOW_COPY_AND_ASSIGN(MockVideoRenderer); 139 DISALLOW_COPY_AND_ASSIGN(MockVideoRenderer);
140 }; 140 };
141 141
142 class MockAudioRenderer : public AudioRenderer { 142 class MockAudioRenderer : public AudioRenderer {
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 public: 196 public:
197 MockTimeSource(); 197 MockTimeSource();
198 virtual ~MockTimeSource(); 198 virtual ~MockTimeSource();
199 199
200 // TimeSource implementation. 200 // TimeSource implementation.
201 MOCK_METHOD0(StartTicking, void()); 201 MOCK_METHOD0(StartTicking, void());
202 MOCK_METHOD0(StopTicking, void()); 202 MOCK_METHOD0(StopTicking, void());
203 MOCK_METHOD1(SetPlaybackRate, void(double)); 203 MOCK_METHOD1(SetPlaybackRate, void(double));
204 MOCK_METHOD1(SetMediaTime, void(base::TimeDelta)); 204 MOCK_METHOD1(SetMediaTime, void(base::TimeDelta));
205 MOCK_METHOD0(CurrentMediaTime, base::TimeDelta()); 205 MOCK_METHOD0(CurrentMediaTime, base::TimeDelta());
206 MOCK_METHOD1(GetWallClockTime, base::TimeTicks(base::TimeDelta)); 206 MOCK_METHOD2(GetWallClockTime, base::TimeTicks(base::TimeDelta, int));
207 207
208 private: 208 private:
209 DISALLOW_COPY_AND_ASSIGN(MockTimeSource); 209 DISALLOW_COPY_AND_ASSIGN(MockTimeSource);
210 }; 210 };
211 211
212 class MockTextTrack : public TextTrack { 212 class MockTextTrack : public TextTrack {
213 public: 213 public:
214 MockTextTrack(); 214 MockTextTrack();
215 virtual ~MockTextTrack(); 215 virtual ~MockTextTrack();
216 216
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 MOCK_METHOD1(ResetDecoder, void(StreamType stream_type)); 250 MOCK_METHOD1(ResetDecoder, void(StreamType stream_type));
251 MOCK_METHOD1(DeinitializeDecoder, void(StreamType stream_type)); 251 MOCK_METHOD1(DeinitializeDecoder, void(StreamType stream_type));
252 252
253 private: 253 private:
254 DISALLOW_COPY_AND_ASSIGN(MockDecryptor); 254 DISALLOW_COPY_AND_ASSIGN(MockDecryptor);
255 }; 255 };
256 256
257 } // namespace media 257 } // namespace media
258 258
259 #endif // MEDIA_BASE_MOCK_FILTERS_H_ 259 #endif // MEDIA_BASE_MOCK_FILTERS_H_
OLDNEW
« no previous file with comments | « no previous file | media/base/time_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698