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

Unified Diff: media/base/mock_filters.h

Issue 9155003: Fix media timeline so that thumb never exceeds buffered data (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 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 side-by-side diff with in-line comments
Download patch
Index: media/base/mock_filters.h
diff --git a/media/base/mock_filters.h b/media/base/mock_filters.h
index 6ccbc3262fa95b2f6d705e2d085dfd1b65ae9b2a..d912a3eeb4d038a2ad6e405e2e447d99764cea53 100644
--- a/media/base/mock_filters.h
+++ b/media/base/mock_filters.h
@@ -237,9 +237,11 @@ class MockVideoRenderer : public VideoRenderer {
MOCK_METHOD0(OnAudioRendererDisabled, void());
// VideoRenderer implementation.
- MOCK_METHOD3(Initialize, void(VideoDecoder* decoder,
- const base::Closure& callback,
- const StatisticsCallback& stats_callback));
+ MOCK_METHOD4(Initialize, void(VideoDecoder* decoder,
+ const base::Closure& init_callback,
+ const StatisticsCallback& stats_callback,
+ const VideoTimeCB& time_cb));
+
MOCK_METHOD0(HasEnded, bool());
// TODO(scherkus): although VideoRendererBase defines this method, this really
@@ -264,9 +266,10 @@ class MockAudioRenderer : public AudioRenderer {
MOCK_METHOD0(OnAudioRendererDisabled, void());
// AudioRenderer implementation.
- MOCK_METHOD3(Initialize, void(AudioDecoder* decoder,
+ MOCK_METHOD4(Initialize, void(AudioDecoder* decoder,
const base::Closure& init_callback,
- const base::Closure& underflow_callback));
+ const base::Closure& underflow_callback,
+ const AudioTimeCB& time_cb));
MOCK_METHOD0(HasEnded, bool());
MOCK_METHOD1(SetVolume, void(float volume));
@@ -319,6 +322,8 @@ void RunFilterStatusCB(::testing::Unused, const FilterStatusCB& cb);
void RunPipelineStatusCB(PipelineStatus status, const PipelineStatusCB& cb);
void RunFilterCallback3(::testing::Unused, const base::Closure& callback,
::testing::Unused);
+void RunFilterCallback4(::testing::Unused, const base::Closure& callback,
+ ::testing::Unused, ::testing::Unused);
// Helper gmock function that immediately executes the Closure on behalf of the
// provided filter. Can be used when mocking the Stop() method.

Powered by Google App Engine
This is Rietveld 408576698