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

Unified Diff: cc/test/begin_frame_args_test.cc

Issue 1132753008: Replaced TestNowSource with SimpleTestTickClock. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 5 years, 6 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 | « cc/test/begin_frame_args_test.h ('k') | cc/test/ordered_simple_task_runner.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/begin_frame_args_test.cc
diff --git a/cc/test/begin_frame_args_test.cc b/cc/test/begin_frame_args_test.cc
index c176a0e6ee877333bc6e20511b1b768ad72f58fd..977dc41bb9680b530abdde409f765623a49a5490 100644
--- a/cc/test/begin_frame_args_test.cc
+++ b/cc/test/begin_frame_args_test.cc
@@ -56,8 +56,8 @@ BeginFrameArgs CreateExpiredBeginFrameArgsForTesting(
BeginFrameArgs CreateBeginFrameArgsForTesting(
BeginFrameArgs::CreationLocation location,
- scoped_refptr<TestNowSource> now_src) {
- base::TimeTicks now = now_src->Now();
+ base::SimpleTestTickClock* now_src) {
+ base::TimeTicks now = now_src->NowTicks();
return BeginFrameArgs::Create(
location, now, now + (BeginFrameArgs::DefaultInterval() / 2),
BeginFrameArgs::DefaultInterval(), BeginFrameArgs::NORMAL);
@@ -65,8 +65,8 @@ BeginFrameArgs CreateBeginFrameArgsForTesting(
BeginFrameArgs CreateExpiredBeginFrameArgsForTesting(
BeginFrameArgs::CreationLocation location,
- scoped_refptr<TestNowSource> now_src) {
- base::TimeTicks now = now_src->Now();
+ base::SimpleTestTickClock* now_src) {
+ base::TimeTicks now = now_src->NowTicks();
return BeginFrameArgs::Create(
location, now, now - BeginFrameArgs::DefaultInterval(),
BeginFrameArgs::DefaultInterval(), BeginFrameArgs::NORMAL);
« no previous file with comments | « cc/test/begin_frame_args_test.h ('k') | cc/test/ordered_simple_task_runner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698