OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "ui/chromeos/touch_exploration_controller.h" | 5 #include "ui/chromeos/touch_exploration_controller.h" |
6 | 6 |
7 #include "ash/accessibility_delegate.h" | 7 #include "ash/accessibility_delegate.h" |
8 #include "ash/shell.h" | 8 #include "ash/shell.h" |
9 #include "ash/test/ash_test_base.h" | 9 #include "ash/test/ash_test_base.h" |
| 10 #include "base/macros.h" |
10 #include "base/test/simple_test_tick_clock.h" | 11 #include "base/test/simple_test_tick_clock.h" |
11 #include "base/time/time.h" | 12 #include "base/time/time.h" |
| 13 #include "build/build_config.h" |
12 #include "chrome/browser/ui/browser.h" | 14 #include "chrome/browser/ui/browser.h" |
13 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 15 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
14 #include "chrome/test/base/in_process_browser_test.h" | 16 #include "chrome/test/base/in_process_browser_test.h" |
15 #include "content/public/test/browser_test_utils.h" | 17 #include "content/public/test/browser_test_utils.h" |
16 #include "ui/aura/client/cursor_client.h" | 18 #include "ui/aura/client/cursor_client.h" |
17 #include "ui/aura/window_tree_host.h" | 19 #include "ui/aura/window_tree_host.h" |
18 #include "ui/compositor/compositor.h" | 20 #include "ui/compositor/compositor.h" |
19 #include "ui/compositor/test/draw_waiter_for_test.h" | 21 #include "ui/compositor/test/draw_waiter_for_test.h" |
20 #include "ui/events/event.h" | 22 #include "ui/events/event.h" |
21 #include "ui/events/event_utils.h" | 23 #include "ui/events/event_utils.h" |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 | 245 |
244 // Continuing to move the touch exploration finger should send more mouse | 246 // Continuing to move the touch exploration finger should send more mouse |
245 // events. | 247 // events. |
246 generator.MoveTouchId(gfx::Point(509, 609), 1); | 248 generator.MoveTouchId(gfx::Point(509, 609), 1); |
247 EXPECT_EQ(0, event_handler_->num_touch_events()); | 249 EXPECT_EQ(0, event_handler_->num_touch_events()); |
248 EXPECT_TRUE(cursor_client->IsMouseEventsEnabled()); | 250 EXPECT_TRUE(cursor_client->IsMouseEventsEnabled()); |
249 EXPECT_FALSE(cursor_client->IsCursorVisible()); | 251 EXPECT_FALSE(cursor_client->IsCursorVisible()); |
250 } | 252 } |
251 | 253 |
252 } // namespace ui | 254 } // namespace ui |
OLD | NEW |