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

Unified Diff: media/base/time_delta_interpolator_unittest.cc

Issue 2239243002: Interpolate media time for mojo rendering pipeline. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moves media-time clamping to PipelineImpl Created 4 years, 3 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/base/time_delta_interpolator.cc ('k') | media/mojo/clients/mojo_renderer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/time_delta_interpolator_unittest.cc
diff --git a/media/base/time_delta_interpolator_unittest.cc b/media/base/time_delta_interpolator_unittest.cc
index f8bf51fa6e14a5f73b7bb306021b9ec219bb59b7..8f7122b46e0dc4272864737377c8de0143633d1f 100644
--- a/media/base/time_delta_interpolator_unittest.cc
+++ b/media/base/time_delta_interpolator_unittest.cc
@@ -129,9 +129,11 @@ TEST_F(TimeDeltaInterpolatorTest, SetBounds_Stopped) {
const base::TimeDelta kSecondTime = base::TimeDelta::FromSeconds(16);
const base::TimeDelta kArbitraryMaxTime = base::TimeDelta::FromSeconds(100);
- interpolator_.SetBounds(kFirstTime, kArbitraryMaxTime);
+ interpolator_.SetBounds(kFirstTime, kArbitraryMaxTime,
+ test_tick_clock_.NowTicks());
EXPECT_EQ(kFirstTime, interpolator_.GetInterpolatedTime());
- interpolator_.SetBounds(kSecondTime, kArbitraryMaxTime);
+ interpolator_.SetBounds(kSecondTime, kArbitraryMaxTime,
+ test_tick_clock_.NowTicks());
EXPECT_EQ(kSecondTime, interpolator_.GetInterpolatedTime());
}
@@ -147,7 +149,8 @@ TEST_F(TimeDeltaInterpolatorTest, SetBounds_Started) {
EXPECT_EQ(kZero, interpolator_.StartInterpolating());
AdvanceSystemTime(kPlayDuration);
- interpolator_.SetBounds(kUpdatedTime, kArbitraryMaxTime);
+ interpolator_.SetBounds(kUpdatedTime, kArbitraryMaxTime,
+ test_tick_clock_.NowTicks());
AdvanceSystemTime(kPlayDuration);
EXPECT_EQ(kExpected, interpolator_.GetInterpolatedTime());
}
« no previous file with comments | « media/base/time_delta_interpolator.cc ('k') | media/mojo/clients/mojo_renderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698