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

Unified Diff: ui/chromeos/touch_exploration_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
Index: ui/chromeos/touch_exploration_controller_unittest.cc
diff --git a/ui/chromeos/touch_exploration_controller_unittest.cc b/ui/chromeos/touch_exploration_controller_unittest.cc
index 556b618959dea5c50d4548199ead2d8e9c04e0e8..71e51cb5573c6875700ca679d9293b85037d4de3 100644
--- a/ui/chromeos/touch_exploration_controller_unittest.cc
+++ b/ui/chromeos/touch_exploration_controller_unittest.cc
@@ -192,10 +192,10 @@ class TouchExplorationControllerTestApi {
class TouchExplorationTest : public aura::test::AuraTestBase {
public:
- TouchExplorationTest() : simulated_clock_(new base::SimpleTestTickClock()) {
- // Tests fail if time is ever 0.
- simulated_clock_->Advance(base::TimeDelta::FromMilliseconds(10));
- }
+ TouchExplorationTest()
+ : // Tests fail if time is ever 0.
+ simulated_clock_(new base::SimpleTestTickClock(
+ base::TimeTicks() + base::TimeDelta::FromMilliseconds(10))) {}
~TouchExplorationTest() override {}
void SetUp() override {

Powered by Google App Engine
This is Rietveld 408576698