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

Unified Diff: media/base/wall_clock_time_source_unittest.cc

Issue 1129323003: Allow callers of TimeSource::GetWallClockTime() to suspend time. (Closed) Base URL: http://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments. Created 5 years, 7 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/wall_clock_time_source.cc ('k') | media/filters/video_renderer_algorithm.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/wall_clock_time_source_unittest.cc
diff --git a/media/base/wall_clock_time_source_unittest.cc b/media/base/wall_clock_time_source_unittest.cc
index fe8e04c1e82ad4460fa9c625106f13b39cb663bf..391fdfc88e7e9eeec7e1b6460e552953caa83974 100644
--- a/media/base/wall_clock_time_source_unittest.cc
+++ b/media/base/wall_clock_time_source_unittest.cc
@@ -31,11 +31,13 @@ class WallClockTimeSourceTest : public testing::Test {
bool IsWallClockNowForMediaTimeInSeconds(int seconds) {
return tick_clock_->NowTicks() ==
- time_source_.GetWallClockTime(base::TimeDelta::FromSeconds(seconds));
+ time_source_.GetWallClockTime(base::TimeDelta::FromSeconds(seconds),
+ TimeSource::SINGLE_TIMESTAMP);
}
bool IsWallClockNullForMediaTimeInSeconds(int seconds) {
- return time_source_.GetWallClockTime(base::TimeDelta::FromSeconds(seconds))
+ return time_source_.GetWallClockTime(base::TimeDelta::FromSeconds(seconds),
+ TimeSource::SINGLE_TIMESTAMP)
.is_null();
}
« no previous file with comments | « media/base/wall_clock_time_source.cc ('k') | media/filters/video_renderer_algorithm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698