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

Unified Diff: chrome/browser/chromeos/accessibility/touch_exploration_controller_browsertest.cc

Issue 1975533002: Change ui::Event::time_stamp from TimeDelta to TimeTicks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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 | « base/time/time.cc ('k') | chrome/browser/chromeos/events/event_rewriter_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/accessibility/touch_exploration_controller_browsertest.cc
diff --git a/chrome/browser/chromeos/accessibility/touch_exploration_controller_browsertest.cc b/chrome/browser/chromeos/accessibility/touch_exploration_controller_browsertest.cc
index 9178cc6205aeef774b05110a339e861040c2b808..8d729eccfc853cf04a718a789a5488b8d651db13 100644
--- a/chrome/browser/chromeos/accessibility/touch_exploration_controller_browsertest.cc
+++ b/chrome/browser/chromeos/accessibility/touch_exploration_controller_browsertest.cc
@@ -63,10 +63,7 @@ class TouchExplorationTest : public InProcessBrowserTest {
ad->ToggleSpokenFeedback(ui::A11Y_NOTIFICATION_NONE);
}
- base::TimeDelta Now() {
- return base::TimeDelta::FromInternalValue(
- simulated_clock_->NowTicks().ToInternalValue());
- }
+ base::TimeTicks Now() { return simulated_clock_->NowTicks(); }
ui::GestureDetector::Config gesture_detector_config_;
base::SimpleTestTickClock* simulated_clock_;
@@ -90,7 +87,7 @@ IN_PROC_BROWSER_TEST_F(TouchExplorationTest, MAYBE_NoRewritingEventsWhenOff) {
SwitchTouchExplorationMode(false);
ui::test::EventGenerator generator(root_window_);
- base::TimeDelta initial_time = Now();
+ base::TimeTicks initial_time = Now();
ui::TouchEvent initial_press(
ui::ET_TOUCH_PRESSED, gfx::Point(99, 200), 1, initial_time);
generator.Dispatch(&initial_press);
@@ -139,7 +136,7 @@ IN_PROC_BROWSER_TEST_F(TouchExplorationTest, DISABLED_RewritesEventsWhenOn) {
SwitchTouchExplorationMode(true);
ui::test::EventGenerator generator(root_window_);
- base::TimeDelta initial_time = Now();
+ base::TimeTicks initial_time = Now();
ui::TouchEvent initial_press(
ui::ET_TOUCH_PRESSED, gfx::Point(100, 200), 1, initial_time);
generator.Dispatch(&initial_press);
@@ -209,7 +206,7 @@ IN_PROC_BROWSER_TEST_F(TouchExplorationTest, DISABLED_SplitTapExplore) {
// The cursor should be shown immediately after the press, and hidden
// after the move.
- base::TimeDelta initial_time = Now();
+ base::TimeTicks initial_time = Now();
ui::TouchEvent initial_press(
ui::ET_TOUCH_PRESSED, gfx::Point(100, 200), 1, initial_time);
generator.Dispatch(&initial_press);
« no previous file with comments | « base/time/time.cc ('k') | chrome/browser/chromeos/events/event_rewriter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698