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_ |