OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/memory/ref_counted.h" | 5 #include "base/memory/ref_counted.h" |
6 #include "base/stringprintf.h" | 6 #include "base/stringprintf.h" |
7 #include "chrome/browser/extensions/extension_devtools_browsertest.h" | 7 #include "chrome/browser/extensions/extension_devtools_browsertest.h" |
8 #include "chrome/browser/extensions/extension_error_reporter.h" | 8 #include "chrome/browser/extensions/extension_error_reporter.h" |
9 #include "chrome/browser/extensions/extension_host.h" | 9 #include "chrome/browser/extensions/extension_host.h" |
10 #include "chrome/browser/extensions/extension_process_manager.h" | 10 #include "chrome/browser/extensions/extension_process_manager.h" |
11 #include "chrome/browser/extensions/extension_service.h" | 11 #include "chrome/browser/extensions/extension_service.h" |
12 #include "chrome/browser/extensions/extension_tab_util.h" | 12 #include "chrome/browser/extensions/extension_tab_util.h" |
13 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
| 14 #include "chrome/browser/ui/browser.h" |
14 #include "chrome/browser/ui/browser_list.h" | 15 #include "chrome/browser/ui/browser_list.h" |
15 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 16 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
16 #include "chrome/common/chrome_paths.h" | 17 #include "chrome/common/chrome_paths.h" |
17 #include "chrome/common/url_constants.h" | 18 #include "chrome/common/url_constants.h" |
18 #include "chrome/test/base/ui_test_utils.h" | 19 #include "chrome/test/base/ui_test_utils.h" |
19 #include "content/public/browser/devtools_agent_host_registry.h" | 20 #include "content/public/browser/devtools_agent_host_registry.h" |
20 #include "content/public/browser/devtools_client_host.h" | 21 #include "content/public/browser/devtools_client_host.h" |
21 #include "content/public/browser/devtools_manager.h" | 22 #include "content/public/browser/devtools_manager.h" |
22 #include "content/public/browser/render_view_host.h" | 23 #include "content/public/browser/render_view_host.h" |
23 #include "content/public/browser/web_contents.h" | 24 #include "content/public/browser/web_contents.h" |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 // Removing the listeners from the second extension should tear the bridge | 166 // Removing the listeners from the second extension should tear the bridge |
166 // down. | 167 // down. |
167 result = false; | 168 result = false; |
168 ASSERT_TRUE(ui_test_utils::ExecuteJavaScriptAndExtractBool( | 169 ASSERT_TRUE(ui_test_utils::ExecuteJavaScriptAndExtractBool( |
169 host_two->render_view_host(), L"", L"unregisterListeners()", &result)); | 170 host_two->render_view_host(), L"", L"unregisterListeners()", &result)); |
170 EXPECT_TRUE(result); | 171 EXPECT_TRUE(result); |
171 ASSERT_FALSE(devtools_manager->GetDevToolsClientHostFor( | 172 ASSERT_FALSE(devtools_manager->GetDevToolsClientHostFor( |
172 DevToolsAgentHostRegistry::GetDevToolsAgentHost( | 173 DevToolsAgentHostRegistry::GetDevToolsAgentHost( |
173 web_contents->GetRenderViewHost()))); | 174 web_contents->GetRenderViewHost()))); |
174 } | 175 } |
OLD | NEW |