OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "base/macros.h" |
5 #include "ui/events/event_utils.h" | 6 #include "ui/events/event_utils.h" |
6 #include "ui/strings/grit/ui_strings.h" | 7 #include "ui/strings/grit/ui_strings.h" |
7 #include "ui/touch_selection/touch_selection_menu_runner.h" | 8 #include "ui/touch_selection/touch_selection_menu_runner.h" |
8 #include "ui/views/controls/button/button.h" | 9 #include "ui/views/controls/button/button.h" |
9 #include "ui/views/test/views_test_base.h" | 10 #include "ui/views/test/views_test_base.h" |
10 #include "ui/views/touchui/touch_selection_menu_runner_views.h" | 11 #include "ui/views/touchui/touch_selection_menu_runner_views.h" |
11 | 12 |
12 namespace views { | 13 namespace views { |
13 namespace { | 14 namespace { |
14 | 15 |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 // Close the menu widget and check that menu runner correctly knows that menu | 167 // Close the menu widget and check that menu runner correctly knows that menu |
167 // is not running anymore. | 168 // is not running anymore. |
168 Widget* widget = test_api.GetWidget(); | 169 Widget* widget = test_api.GetWidget(); |
169 DCHECK(widget); | 170 DCHECK(widget); |
170 widget->Close(); | 171 widget->Close(); |
171 RunPendingMessages(); | 172 RunPendingMessages(); |
172 EXPECT_FALSE(ui::TouchSelectionMenuRunner::GetInstance()->IsRunning()); | 173 EXPECT_FALSE(ui::TouchSelectionMenuRunner::GetInstance()->IsRunning()); |
173 } | 174 } |
174 | 175 |
175 } // namespace views | 176 } // namespace views |
OLD | NEW |