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

Unified Diff: ash/wm/maximize_mode/maximize_mode_controller_unittest.cc

Issue 1178423008: Provision to start base::SimpleTestTickClock at initial ticks Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 5 years 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 | « ash/test/task_switch_time_tracker_test_api.cc ('k') | base/test/simple_test_tick_clock.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/maximize_mode/maximize_mode_controller_unittest.cc
diff --git a/ash/wm/maximize_mode/maximize_mode_controller_unittest.cc b/ash/wm/maximize_mode/maximize_mode_controller_unittest.cc
index fe94cc0d234bfb8f14c75cca12cae0fb5e3f3618..e336b79ef6589cd6616ed00289e888650bc863e3 100644
--- a/ash/wm/maximize_mode/maximize_mode_controller_unittest.cc
+++ b/ash/wm/maximize_mode/maximize_mode_controller_unittest.cc
@@ -118,8 +118,8 @@ class MaximizeModeControllerTest : public test::AshTestBase {
// null value initial value.
void AttachTickClockForTest() {
scoped_ptr<base::TickClock> tick_clock(
- test_tick_clock_ = new base::SimpleTestTickClock());
- test_tick_clock_->Advance(base::TimeDelta::FromSeconds(1));
+ test_tick_clock_ = new base::SimpleTestTickClock(
+ base::TimeTicks() + base::TimeDelta::FromSeconds(1)));
maximize_mode_controller()->SetTickClockForTest(tick_clock.Pass());
}
« no previous file with comments | « ash/test/task_switch_time_tracker_test_api.cc ('k') | base/test/simple_test_tick_clock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698