OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef UI_EVENTS_EAGER_GESTURE_RECOGNIZER_TEST_BASE_H_ |
| 6 #define UI_EVENTS_EAGER_GESTURE_RECOGNIZER_TEST_BASE_H_ |
| 7 |
| 8 #include "testing/gtest/include/gtest/gtest.h" |
| 9 #include "ui/events/event.h" |
| 10 #include "ui/events/gestures/gesture_event_queue.h" |
| 11 |
| 12 namespace ui { |
| 13 namespace test { |
| 14 |
| 15 class EagerGestureRecognitionTestBase : public testing::Test { |
| 16 public: |
| 17 EagerGestureRecognitionTestBase(); |
| 18 virtual ~EagerGestureRecognitionTestBase(); |
| 19 |
| 20 protected: |
| 21 const TouchEvent Press(int id); |
| 22 const TouchEvent Move(int id); |
| 23 const TouchEvent Release(int id); |
| 24 GestureEvent* Gesture(ui::EventType eventType); |
| 25 |
| 26 private: |
| 27 int simulated_now_; |
| 28 DISALLOW_COPY_AND_ASSIGN(EagerGestureRecognitionTestBase); |
| 29 }; |
| 30 |
| 31 } // namespace test |
| 32 } // namespace ui |
| 33 |
| 34 #endif // UI_EVENTS_EAGER_GESTURE_RECOGNIZER_TEST_BASE_H_ |
OLD | NEW |