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

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

Issue 2243683002: Add OnDurationChange() to RenderClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@media_player_simplified
Patch Set: Fixed typo Created 4 years, 4 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
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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 ~MockRendererClient(); 219 ~MockRendererClient();
220 220
221 // RendererClient implementation. 221 // RendererClient implementation.
222 MOCK_METHOD1(OnError, void(PipelineStatus)); 222 MOCK_METHOD1(OnError, void(PipelineStatus));
223 MOCK_METHOD0(OnEnded, void()); 223 MOCK_METHOD0(OnEnded, void());
224 MOCK_METHOD1(OnStatisticsUpdate, void(const PipelineStatistics&)); 224 MOCK_METHOD1(OnStatisticsUpdate, void(const PipelineStatistics&));
225 MOCK_METHOD1(OnBufferingStateChange, void(BufferingState)); 225 MOCK_METHOD1(OnBufferingStateChange, void(BufferingState));
226 MOCK_METHOD0(OnWaitingForDecryptionKey, void()); 226 MOCK_METHOD0(OnWaitingForDecryptionKey, void());
227 MOCK_METHOD1(OnVideoNaturalSizeChange, void(const gfx::Size&)); 227 MOCK_METHOD1(OnVideoNaturalSizeChange, void(const gfx::Size&));
228 MOCK_METHOD1(OnVideoOpacityChange, void(bool)); 228 MOCK_METHOD1(OnVideoOpacityChange, void(bool));
229 MOCK_METHOD1(OnDurationChange, void(base::TimeDelta));
229 }; 230 };
230 231
231 class MockVideoRenderer : public VideoRenderer { 232 class MockVideoRenderer : public VideoRenderer {
232 public: 233 public:
233 MockVideoRenderer(); 234 MockVideoRenderer();
234 virtual ~MockVideoRenderer(); 235 virtual ~MockVideoRenderer();
235 236
236 // VideoRenderer implementation. 237 // VideoRenderer implementation.
237 MOCK_METHOD5(Initialize, 238 MOCK_METHOD5(Initialize,
238 void(DemuxerStream* stream, 239 void(DemuxerStream* stream,
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 370
370 private: 371 private:
371 int cdm_id_ = CdmContext::kInvalidCdmId; 372 int cdm_id_ = CdmContext::kInvalidCdmId;
372 373
373 DISALLOW_COPY_AND_ASSIGN(MockCdmContext); 374 DISALLOW_COPY_AND_ASSIGN(MockCdmContext);
374 }; 375 };
375 376
376 } // namespace media 377 } // namespace media
377 378
378 #endif // MEDIA_BASE_MOCK_FILTERS_H_ 379 #endif // MEDIA_BASE_MOCK_FILTERS_H_
OLDNEW
« no previous file with comments | « content/renderer/media/android/media_player_renderer_client.cc ('k') | media/base/pipeline_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698