| 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" | 11 #include "chrome/browser/extensions/extension_test_message_listener.h" |
| 12 #include "chrome/browser/sessions/session_tab_helper.h" | 12 #include "chrome/browser/sessions/session_tab_helper.h" |
| 13 #include "chrome/browser/ui/browser.h" | 13 #include "chrome/browser/ui/browser.h" |
| 14 #include "chrome/browser/ui/browser_commands.h" | 14 #include "chrome/browser/ui/browser_commands.h" |
| 15 #include "chrome/browser/ui/browser_finder.h" | 15 #include "chrome/browser/ui/browser_finder.h" |
| 16 #include "chrome/browser/ui/browser_list.h" | 16 #include "chrome/browser/ui/browser_list.h" |
| 17 #include "chrome/browser/ui/browser_window.h" | 17 #include "chrome/browser/ui/browser_window.h" |
| 18 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 18 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
| 19 #include "chrome/test/base/interactive_test_utils.h" | 19 #include "chrome/test/base/interactive_test_utils.h" |
| 20 #include "chrome/test/base/ui_test_utils.h" | 20 #include "chrome/test/base/ui_test_utils.h" |
| 21 #include "content/public/browser/notification_service.h" | 21 #include "content/public/browser/notification_service.h" |
| 22 #include "extensions/browser/extension_registry.h" | 22 #include "extensions/browser/extension_registry.h" |
| 23 #include "extensions/browser/extension_system.h" | 23 #include "extensions/browser/extension_system.h" |
| 24 #include "extensions/common/extension.h" | 24 #include "extensions/common/extension.h" |
| 25 #include "extensions/common/extension_set.h" | 25 #include "extensions/common/extension_set.h" |
| 26 #include "extensions/common/permissions/permissions_data.h" | 26 #include "extensions/common/permissions/permissions_data.h" |
| 27 #include "extensions/test/result_catcher.h" |
| 27 | 28 |
| 28 #if defined(OS_WIN) | 29 #if defined(OS_WIN) |
| 29 #include "ui/views/win/hwnd_util.h" | 30 #include "ui/views/win/hwnd_util.h" |
| 30 #endif | 31 #endif |
| 31 | 32 |
| 32 namespace extensions { | 33 namespace extensions { |
| 33 namespace { | 34 namespace { |
| 34 | 35 |
| 35 // 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 |
| 36 // they cannot be run concurrently (i.e. openPopup API tests that require the | 37 // they cannot be run concurrently (i.e. openPopup API tests that require the |
| (...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 | 343 |
| 343 // Forcibly closing the browser HWND should not cause a crash. | 344 // Forcibly closing the browser HWND should not cause a crash. |
| 344 EXPECT_EQ(TRUE, ::CloseWindow(hwnd)); | 345 EXPECT_EQ(TRUE, ::CloseWindow(hwnd)); |
| 345 EXPECT_EQ(TRUE, ::DestroyWindow(hwnd)); | 346 EXPECT_EQ(TRUE, ::DestroyWindow(hwnd)); |
| 346 EXPECT_EQ(FALSE, ::IsWindow(hwnd)); | 347 EXPECT_EQ(FALSE, ::IsWindow(hwnd)); |
| 347 } | 348 } |
| 348 #endif // OS_WIN | 349 #endif // OS_WIN |
| 349 | 350 |
| 350 } // namespace | 351 } // namespace |
| 351 } // namespace extensions | 352 } // namespace extensions |
| OLD | NEW |