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

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

Issue 2075303002: [DO NOT COMMIT] Initial MediaPlayerRenderer plumbing and basic features (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 ~MockRendererClient(); 206 ~MockRendererClient();
207 207
208 // RendererClient implementation. 208 // RendererClient implementation.
209 MOCK_METHOD1(OnError, void(PipelineStatus)); 209 MOCK_METHOD1(OnError, void(PipelineStatus));
210 MOCK_METHOD0(OnEnded, void()); 210 MOCK_METHOD0(OnEnded, void());
211 MOCK_METHOD1(OnStatisticsUpdate, void(const PipelineStatistics&)); 211 MOCK_METHOD1(OnStatisticsUpdate, void(const PipelineStatistics&));
212 MOCK_METHOD1(OnBufferingStateChange, void(BufferingState)); 212 MOCK_METHOD1(OnBufferingStateChange, void(BufferingState));
213 MOCK_METHOD0(OnWaitingForDecryptionKey, void()); 213 MOCK_METHOD0(OnWaitingForDecryptionKey, void());
214 MOCK_METHOD1(OnVideoNaturalSizeChange, void(const gfx::Size&)); 214 MOCK_METHOD1(OnVideoNaturalSizeChange, void(const gfx::Size&));
215 MOCK_METHOD1(OnVideoOpacityChange, void(bool)); 215 MOCK_METHOD1(OnVideoOpacityChange, void(bool));
216 MOCK_METHOD1(OnDurationChange, void(base::TimeDelta));
216 }; 217 };
217 218
218 class MockVideoRenderer : public VideoRenderer { 219 class MockVideoRenderer : public VideoRenderer {
219 public: 220 public:
220 MockVideoRenderer(); 221 MockVideoRenderer();
221 virtual ~MockVideoRenderer(); 222 virtual ~MockVideoRenderer();
222 223
223 // VideoRenderer implementation. 224 // VideoRenderer implementation.
224 MOCK_METHOD5(Initialize, 225 MOCK_METHOD5(Initialize,
225 void(DemuxerStream* stream, 226 void(DemuxerStream* stream,
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 MOCK_METHOD0(GetDecryptor, Decryptor*()); 353 MOCK_METHOD0(GetDecryptor, Decryptor*());
353 int GetCdmId() const override; 354 int GetCdmId() const override;
354 355
355 private: 356 private:
356 DISALLOW_COPY_AND_ASSIGN(MockCdmContext); 357 DISALLOW_COPY_AND_ASSIGN(MockCdmContext);
357 }; 358 };
358 359
359 } // namespace media 360 } // namespace media
360 361
361 #endif // MEDIA_BASE_MOCK_FILTERS_H_ 362 #endif // MEDIA_BASE_MOCK_FILTERS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698