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

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: rebase 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
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 04ee8f747cbaed68a1ce7839cb1891fb04bb7e56..c1d59d44e346415778f83dc9bfde48f1168eed01 100644
--- a/media/base/time_delta_interpolator_unittest.cc
+++ b/media/base/time_delta_interpolator_unittest.cc
@@ -127,9 +127,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());
}
@@ -145,7 +147,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());
}

Powered by Google App Engine
This is Rietveld 408576698