OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ash/common/wm_shell.h" | |
6 #include "ash/test/ash_test_base.h" | 5 #include "ash/test/ash_test_base.h" |
| 6 #include "ash/wm_shell.h" |
7 #include "ui/events/base_event_utils.h" | 7 #include "ui/events/base_event_utils.h" |
8 #include "ui/events/event.h" | 8 #include "ui/events/event.h" |
9 #include "ui/events/test/event_generator.h" | 9 #include "ui/events/test/event_generator.h" |
10 #include "ui/views/pointer_watcher.h" | 10 #include "ui/views/pointer_watcher.h" |
11 #include "ui/views/widget/widget.h" | 11 #include "ui/views/widget/widget.h" |
12 | 12 |
13 namespace ash { | 13 namespace ash { |
14 | 14 |
15 using PointerWatcherAdapterTest = test::AshTestBase; | 15 using PointerWatcherAdapterTest = test::AshTestBase; |
16 | 16 |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 GetEventGenerator().MoveTouchId(gfx::Point(20, 30), touch_id); | 201 GetEventGenerator().MoveTouchId(gfx::Point(20, 30), touch_id); |
202 helper.ExpectCallCount(NONE, NONE, DRAG); | 202 helper.ExpectCallCount(NONE, NONE, DRAG); |
203 | 203 |
204 // Release: both (contrary to mouse above, touch does not implicitly generate | 204 // Release: both (contrary to mouse above, touch does not implicitly generate |
205 // capture). | 205 // capture). |
206 GetEventGenerator().ReleaseTouchId(touch_id); | 206 GetEventGenerator().ReleaseTouchId(touch_id); |
207 helper.ExpectCallCount(PRESS_OR_RELEASE, PRESS_OR_RELEASE, PRESS_OR_RELEASE); | 207 helper.ExpectCallCount(PRESS_OR_RELEASE, PRESS_OR_RELEASE, PRESS_OR_RELEASE); |
208 } | 208 } |
209 | 209 |
210 } // namespace ash | 210 } // namespace ash |
OLD | NEW |