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

Unified Diff: media/renderers/renderer_impl_unittest.cc

Issue 2237243002: CL for perf tryjob on linux (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/renderers/renderer_impl.cc ('k') | tools/run-perf-test.cfg » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/renderers/renderer_impl_unittest.cc
diff --git a/media/renderers/renderer_impl_unittest.cc b/media/renderers/renderer_impl_unittest.cc
index 1a280e19fcbb4164c1804fa78159a389954fcfd8..f424cab793f3d7e3f932a4aa4f42cd5b4a5f0319 100644
--- a/media/renderers/renderer_impl_unittest.cc
+++ b/media/renderers/renderer_impl_unittest.cc
@@ -173,6 +173,8 @@ class RendererImplTest : public ::testing::Test {
base::TimeDelta::FromMilliseconds(kStartPlayingTimeInMs));
EXPECT_CALL(time_source_, SetMediaTime(start_time));
EXPECT_CALL(time_source_, StartTicking());
+ EXPECT_CALL(time_source_, CurrentMediaTime(_)).Times(::testing::AtLeast(1));
+ EXPECT_CALL(callbacks_, OnTimeUpdate(_, _, _)).Times(::testing::AtLeast(1));
if (audio_stream_) {
EXPECT_CALL(*audio_renderer_, StartPlaying())
@@ -628,6 +630,7 @@ TEST_F(RendererImplTest, VideoUnderflowWithAudio) {
video_renderer_client_->OnBufferingStateChange(BUFFERING_HAVE_NOTHING);
Mock::VerifyAndClearExpectations(&time_source_);
+ EXPECT_CALL(time_source_, CurrentMediaTime(_));
EXPECT_CALL(time_source_, StopTicking());
base::RunLoop().RunUntilIdle();
}
@@ -668,6 +671,7 @@ TEST_F(RendererImplTest, VideoAndAudioUnderflow) {
Mock::VerifyAndClearExpectations(&time_source_);
EXPECT_CALL(callbacks_, OnBufferingStateChange(BUFFERING_HAVE_NOTHING));
+ EXPECT_CALL(time_source_, CurrentMediaTime(_));
EXPECT_CALL(time_source_, StopTicking());
audio_renderer_client_->OnBufferingStateChange(BUFFERING_HAVE_NOTHING);
« no previous file with comments | « media/renderers/renderer_impl.cc ('k') | tools/run-perf-test.cfg » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698