OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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/shelf/app_list_button.h" | 5 #include "ash/shelf/app_list_button.h" |
6 | 6 |
| 7 #include "ash/shelf/shelf.h" |
7 #include "ash/shelf/shelf_view.h" | 8 #include "ash/shelf/shelf_view.h" |
8 #include "ash/shelf/wm_shelf.h" | |
9 #include "ash/shell.h" | 9 #include "ash/shell.h" |
10 #include "ash/test/ash_test_base.h" | 10 #include "ash/test/ash_test_base.h" |
11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
12 #include "chromeos/chromeos_switches.h" | 12 #include "chromeos/chromeos_switches.h" |
13 #include "ui/app_list/presenter/app_list.h" | 13 #include "ui/app_list/presenter/app_list.h" |
14 #include "ui/app_list/presenter/test/test_app_list_presenter.h" | 14 #include "ui/app_list/presenter/test/test_app_list_presenter.h" |
15 #include "ui/events/event_constants.h" | 15 #include "ui/events/event_constants.h" |
16 | 16 |
17 namespace ash { | 17 namespace ash { |
18 namespace test { | 18 namespace test { |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 | 67 |
68 ui::GestureEvent long_press = | 68 ui::GestureEvent long_press = |
69 CreateGestureEvent(ui::GestureEventDetails(ui::ET_GESTURE_LONG_PRESS)); | 69 CreateGestureEvent(ui::GestureEventDetails(ui::ET_GESTURE_LONG_PRESS)); |
70 SendGestureEvent(&long_press); | 70 SendGestureEvent(&long_press); |
71 RunAllPendingInMessageLoop(); | 71 RunAllPendingInMessageLoop(); |
72 EXPECT_EQ(1u, test_app_list_presenter.voice_session_count()); | 72 EXPECT_EQ(1u, test_app_list_presenter.voice_session_count()); |
73 } | 73 } |
74 | 74 |
75 } // namespace test | 75 } // namespace test |
76 } // namespace ash | 76 } // namespace ash |
OLD | NEW |