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

Unified Diff: ash/wm/system_gesture_event_filter_unittest.cc

Issue 1355063004: Template methods on Timer classes instead of the classes themselves. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: timer: fixcaller Created 5 years, 3 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 | « ash/wm/lock_state_controller.h ('k') | ash/wm/workspace/multi_window_resize_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/system_gesture_event_filter_unittest.cc
diff --git a/ash/wm/system_gesture_event_filter_unittest.cc b/ash/wm/system_gesture_event_filter_unittest.cc
index 0cbb027a779b3520e45bc3f5afe1f21ca29b1dce..fc7934faef0ea3bd78e74b537bf69bd5eb8d15bb 100644
--- a/ash/wm/system_gesture_event_filter_unittest.cc
+++ b/ash/wm/system_gesture_event_filter_unittest.cc
@@ -116,8 +116,7 @@ class SystemGestureEventFilterTest : public AshTestBase {
long_press_affordance_.get();
}
- base::OneShotTimer<LongPressAffordanceHandler>*
- GetLongPressAffordanceTimer() {
+ base::OneShotTimer* GetLongPressAffordanceTimer() {
return &GetLongPressAffordance()->timer_;
}
@@ -199,8 +198,7 @@ TEST_F(SystemGestureEventFilterTest, LongPressAffordanceStateOnCaptureLoss) {
ASSERT_FALSE(details.dispatcher_destroyed);
EXPECT_TRUE(window1->HasCapture());
- base::OneShotTimer<LongPressAffordanceHandler>* timer =
- GetLongPressAffordanceTimer();
+ base::OneShotTimer* timer = GetLongPressAffordanceTimer();
EXPECT_TRUE(timer->IsRunning());
EXPECT_EQ(window1, GetLongPressAffordanceTarget());
« no previous file with comments | « ash/wm/lock_state_controller.h ('k') | ash/wm/workspace/multi_window_resize_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698