OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 #include "chrome/browser/extensions/browser_action_test_util.h" | 5 #include "chrome/browser/extensions/browser_action_test_util.h" |
6 #include "chrome/browser/extensions/extension_action.h" | 6 #include "chrome/browser/extensions/extension_action.h" |
7 #include "chrome/browser/extensions/extension_action_manager.h" | 7 #include "chrome/browser/extensions/extension_action_manager.h" |
8 #include "chrome/browser/extensions/extension_apitest.h" | 8 #include "chrome/browser/extensions/extension_apitest.h" |
9 #include "chrome/browser/extensions/extension_service.h" | 9 #include "chrome/browser/extensions/extension_service.h" |
10 #include "chrome/browser/extensions/extension_tab_util.h" | 10 #include "chrome/browser/extensions/extension_tab_util.h" |
11 #include "chrome/browser/extensions/extension_test_message_listener.h" | |
12 #include "chrome/browser/sessions/session_tab_helper.h" | 11 #include "chrome/browser/sessions/session_tab_helper.h" |
13 #include "chrome/browser/ui/browser.h" | 12 #include "chrome/browser/ui/browser.h" |
14 #include "chrome/browser/ui/browser_commands.h" | 13 #include "chrome/browser/ui/browser_commands.h" |
15 #include "chrome/browser/ui/browser_finder.h" | 14 #include "chrome/browser/ui/browser_finder.h" |
16 #include "chrome/browser/ui/browser_list.h" | 15 #include "chrome/browser/ui/browser_list.h" |
17 #include "chrome/browser/ui/browser_window.h" | 16 #include "chrome/browser/ui/browser_window.h" |
18 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 17 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
19 #include "chrome/test/base/interactive_test_utils.h" | 18 #include "chrome/test/base/interactive_test_utils.h" |
20 #include "chrome/test/base/ui_test_utils.h" | 19 #include "chrome/test/base/ui_test_utils.h" |
21 #include "content/public/browser/notification_service.h" | 20 #include "content/public/browser/notification_service.h" |
22 #include "extensions/browser/extension_registry.h" | 21 #include "extensions/browser/extension_registry.h" |
23 #include "extensions/browser/extension_system.h" | 22 #include "extensions/browser/extension_system.h" |
24 #include "extensions/common/extension.h" | 23 #include "extensions/common/extension.h" |
25 #include "extensions/common/extension_set.h" | 24 #include "extensions/common/extension_set.h" |
26 #include "extensions/common/permissions/permissions_data.h" | 25 #include "extensions/common/permissions/permissions_data.h" |
| 26 #include "extensions/test/extension_test_message_listener.h" |
27 #include "extensions/test/result_catcher.h" | 27 #include "extensions/test/result_catcher.h" |
28 | 28 |
29 #if defined(OS_WIN) | 29 #if defined(OS_WIN) |
30 #include "ui/views/win/hwnd_util.h" | 30 #include "ui/views/win/hwnd_util.h" |
31 #endif | 31 #endif |
32 | 32 |
33 namespace extensions { | 33 namespace extensions { |
34 namespace { | 34 namespace { |
35 | 35 |
36 // chrome.browserAction API tests that interact with the UI in such a way that | 36 // chrome.browserAction API tests that interact with the UI in such a way that |
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
343 | 343 |
344 // Forcibly closing the browser HWND should not cause a crash. | 344 // Forcibly closing the browser HWND should not cause a crash. |
345 EXPECT_EQ(TRUE, ::CloseWindow(hwnd)); | 345 EXPECT_EQ(TRUE, ::CloseWindow(hwnd)); |
346 EXPECT_EQ(TRUE, ::DestroyWindow(hwnd)); | 346 EXPECT_EQ(TRUE, ::DestroyWindow(hwnd)); |
347 EXPECT_EQ(FALSE, ::IsWindow(hwnd)); | 347 EXPECT_EQ(FALSE, ::IsWindow(hwnd)); |
348 } | 348 } |
349 #endif // OS_WIN | 349 #endif // OS_WIN |
350 | 350 |
351 } // namespace | 351 } // namespace |
352 } // namespace extensions | 352 } // namespace extensions |
OLD | NEW |