OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 #import "chrome/browser/ui/cocoa/location_bar/zoom_decoration.h" | 5 #import "chrome/browser/ui/cocoa/location_bar/zoom_decoration.h" |
6 | 6 |
7 #include "base/auto_reset.h" | 7 #include "base/auto_reset.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/message_loop/message_loop.h" |
10 #include "base/threading/thread_task_runner_handle.h" | 11 #include "base/threading/thread_task_runner_handle.h" |
11 #include "chrome/browser/profiles/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
12 #include "chrome/browser/ui/browser_window.h" | 13 #include "chrome/browser/ui/browser_window.h" |
13 #import "chrome/browser/ui/cocoa/browser/zoom_bubble_controller.h" | 14 #import "chrome/browser/ui/cocoa/browser/zoom_bubble_controller.h" |
14 #import "chrome/browser/ui/cocoa/browser_window_controller.h" | 15 #import "chrome/browser/ui/cocoa/browser_window_controller.h" |
15 #import "chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h" | 16 #import "chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h" |
16 #include "chrome/browser/ui/cocoa/test/run_loop_testing.h" | 17 #include "chrome/browser/ui/cocoa/test/run_loop_testing.h" |
17 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 18 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
18 #include "chrome/test/base/in_process_browser_test.h" | 19 #include "chrome/test/base/in_process_browser_test.h" |
19 #include "components/toolbar/test_toolbar_model.h" | 20 #include "components/toolbar/test_toolbar_model.h" |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 zoom_decoration->ShowBubble(true); | 176 zoom_decoration->ShowBubble(true); |
176 | 177 |
177 // Test shouldn't crash. | 178 // Test shouldn't crash. |
178 browser2->window()->Close(); | 179 browser2->window()->Close(); |
179 content::RunAllPendingInMessageLoop(); | 180 content::RunAllPendingInMessageLoop(); |
180 } | 181 } |
181 | 182 |
182 // Prefix for test instantiations intentionally left blank since the test | 183 // Prefix for test instantiations intentionally left blank since the test |
183 // fixture class has a single parameterization. | 184 // fixture class has a single parameterization. |
184 INSTANTIATE_TEST_CASE_P(, ZoomDecorationTest, testing::Bool()); | 185 INSTANTIATE_TEST_CASE_P(, ZoomDecorationTest, testing::Bool()); |
OLD | NEW |