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

Unified Diff: ui/display/chromeos/x11/native_display_event_dispatcher_x11_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 | « ui/chromeos/touch_exploration_controller_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/display/chromeos/x11/native_display_event_dispatcher_x11_unittest.cc
diff --git a/ui/display/chromeos/x11/native_display_event_dispatcher_x11_unittest.cc b/ui/display/chromeos/x11/native_display_event_dispatcher_x11_unittest.cc
index c37185856cd0a51af59f00c09ebfba2b2e9d7aaa..fab778f3b454f3e59ca0027fbcd59a9f068201fa 100644
--- a/ui/display/chromeos/x11/native_display_event_dispatcher_x11_unittest.cc
+++ b/ui/display/chromeos/x11/native_display_event_dispatcher_x11_unittest.cc
@@ -136,8 +136,8 @@ NativeDisplayEventDispatcherX11Test::NativeDisplayEventDispatcherX11Test()
helper_delegate_(new TestHelperDelegate()),
dispatcher_(new NativeDisplayEventDispatcherX11(helper_delegate_.get(),
xrandr_event_base_)),
- test_tick_clock_(new base::SimpleTestTickClock) {
- test_tick_clock_->Advance(base::TimeDelta::FromMilliseconds(1));
+ test_tick_clock_(new base::SimpleTestTickClock(
+ base::TimeTicks() + base::TimeDelta::FromMilliseconds(1))) {
dispatcher_->SetTickClockForTest(
scoped_ptr<base::TickClock>(test_tick_clock_));
}
« no previous file with comments | « ui/chromeos/touch_exploration_controller_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698