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

Side by Side Diff: chrome/browser/renderer_host/render_process_host_chrome_browsertest.cc

Issue 9600036: Move Render(View|Widget)Host and associated classes to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Respond to review comments. Created 8 years, 9 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 "content/browser/renderer_host/render_process_host_browsertest.h" 5 #include "content/browser/renderer_host/render_process_host_browsertest.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "chrome/browser/debugger/devtools_window.h" 8 #include "chrome/browser/debugger/devtools_window.h"
9 #include "chrome/browser/ui/browser.h" 9 #include "chrome/browser/ui/browser.h"
10 #include "chrome/common/chrome_switches.h" 10 #include "chrome/common/chrome_switches.h"
11 #include "chrome/common/url_constants.h" 11 #include "chrome/common/url_constants.h"
12 #include "chrome/test/base/ui_test_utils.h" 12 #include "chrome/test/base/ui_test_utils.h"
13 #include "content/public/browser/render_process_host.h" 13 #include "content/public/browser/render_process_host.h"
14 #include "content/public/browser/render_view_host.h" 14 #include "content/public/browser/render_view_host.h"
15 #include "content/public/browser/render_view_host_delegate.h" 15 #include "content/public/browser/render_view_host_delegate.h"
16 16
17 using content::RenderViewHost;
18 using content::RenderWidgetHost;
19
17 namespace { 20 namespace {
18 21
19 RenderViewHost* FindFirstDevToolsHost() { 22 RenderViewHost* FindFirstDevToolsHost() {
20 content::RenderProcessHost::iterator hosts = 23 content::RenderProcessHost::iterator hosts =
21 content::RenderProcessHost::AllHostsIterator(); 24 content::RenderProcessHost::AllHostsIterator();
22 for (; !hosts.IsAtEnd(); hosts.Advance()) { 25 for (; !hosts.IsAtEnd(); hosts.Advance()) {
23 content::RenderProcessHost* render_process_host = hosts.GetCurrentValue(); 26 content::RenderProcessHost* render_process_host = hosts.GetCurrentValue();
24 DCHECK(render_process_host); 27 DCHECK(render_process_host);
25 if (!render_process_host->HasConnection()) 28 if (!render_process_host->HasConnection())
26 continue; 29 continue;
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 RenderViewHost* devtools = FindFirstDevToolsHost(); 116 RenderViewHost* devtools = FindFirstDevToolsHost();
114 DCHECK(devtools); 117 DCHECK(devtools);
115 118
116 // DevTools start in a separate process. 119 // DevTools start in a separate process.
117 DevToolsWindow::ToggleDevToolsWindow( 120 DevToolsWindow::ToggleDevToolsWindow(
118 devtools, DEVTOOLS_TOGGLE_ACTION_INSPECT); 121 devtools, DEVTOOLS_TOGGLE_ACTION_INSPECT);
119 host_count++; 122 host_count++;
120 EXPECT_EQ(tab_count, browser()->tab_count()); 123 EXPECT_EQ(tab_count, browser()->tab_count());
121 EXPECT_EQ(host_count, RenderProcessHostCount()); 124 EXPECT_EQ(host_count, RenderProcessHostCount());
122 } 125 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698