Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: chrome/browser/extensions/extension_devtools_browsertests.cc

Issue 10391158: Moves methods for finding browsers to browser_finder. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Include fixs Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698