| 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/views/controls/menu/menu_controller.h" | 5 #include "ui/views/controls/menu/menu_controller.h" |
| 6 | 6 |
| 7 #include "base/run_loop.h" | 7 #include "base/run_loop.h" |
| 8 #include "ui/aura/window.h" | 8 #include "ui/aura/window.h" |
| 9 #include "ui/events/platform/platform_event_source.h" | 9 #include "ui/events/platform/platform_event_source.h" |
| 10 #include "ui/views/test/views_test_base.h" | 10 #include "ui/views/test/views_test_base.h" |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 | 144 |
| 145 TEST_F(MenuControllerTest, Basic) { | 145 TEST_F(MenuControllerTest, Basic) { |
| 146 base::MessageLoop::ScopedNestableTaskAllower allow_nested( | 146 base::MessageLoop::ScopedNestableTaskAllower allow_nested( |
| 147 base::MessageLoop::current()); | 147 base::MessageLoop::current()); |
| 148 message_loop()->PostTask( | 148 message_loop()->PostTask( |
| 149 FROM_HERE, | 149 FROM_HERE, |
| 150 base::Bind(&MenuControllerTest::Step1_RunMenu, base::Unretained(this))); | 150 base::Bind(&MenuControllerTest::Step1_RunMenu, base::Unretained(this))); |
| 151 } | 151 } |
| 152 | 152 |
| 153 } // namespace views | 153 } // namespace views |
| OLD | NEW |