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

Unified Diff: ui/events/gestures/test/eager_gesture_recognition_test_base.h

Issue 101933004: Eager Gesture Recognizer (WIP) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Starting work on Android. Created 6 years, 11 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 | « ui/events/gestures/gesture_types.h ('k') | ui/events/gestures/test/eager_gesture_recognition_test_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/gestures/test/eager_gesture_recognition_test_base.h
diff --git a/ui/events/gestures/test/eager_gesture_recognition_test_base.h b/ui/events/gestures/test/eager_gesture_recognition_test_base.h
new file mode 100644
index 0000000000000000000000000000000000000000..8233f4f45e3060608d0d711844256fc297b70a4e
--- /dev/null
+++ b/ui/events/gestures/test/eager_gesture_recognition_test_base.h
@@ -0,0 +1,34 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_EVENTS_EAGER_GESTURE_RECOGNIZER_TEST_BASE_H_
+#define UI_EVENTS_EAGER_GESTURE_RECOGNIZER_TEST_BASE_H_
+
+#include "testing/gtest/include/gtest/gtest.h"
+#include "ui/events/event.h"
+#include "ui/events/gestures/gesture_event_queue.h"
+
+namespace ui {
+namespace test {
+
+class EagerGestureRecognitionTestBase : public testing::Test {
+ public:
+ EagerGestureRecognitionTestBase();
+ virtual ~EagerGestureRecognitionTestBase();
+
+ protected:
+ const TouchEvent Press(int id);
+ const TouchEvent Move(int id);
+ const TouchEvent Release(int id);
+ GestureEvent* Gesture(ui::EventType eventType);
+
+ private:
+ int simulated_now_;
+ DISALLOW_COPY_AND_ASSIGN(EagerGestureRecognitionTestBase);
+};
+
+} // namespace test
+} // namespace ui
+
+#endif // UI_EVENTS_EAGER_GESTURE_RECOGNIZER_TEST_BASE_H_
« no previous file with comments | « ui/events/gestures/gesture_types.h ('k') | ui/events/gestures/test/eager_gesture_recognition_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698