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

Side by Side Diff: content/browser/renderer_host/render_process_host_browsertest.cc

Issue 214823006: Move ContentBrowserTest class to content/public, since it's used by components_browsertests for bro… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: remove other files Created 6 years, 8 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 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 "content/browser/renderer_host/render_process_host_impl.h" 5 #include "content/browser/renderer_host/render_process_host_impl.h"
6 #include "content/common/child_process_messages.h" 6 #include "content/common/child_process_messages.h"
7 #include "content/public/browser/render_process_host.h" 7 #include "content/public/browser/render_process_host.h"
8 #include "content/public/browser/render_process_host_observer.h" 8 #include "content/public/browser/render_process_host_observer.h"
9 #include "content/public/browser/render_view_host.h" 9 #include "content/public/browser/render_view_host.h"
10 #include "content/public/browser/web_contents.h" 10 #include "content/public/browser/web_contents.h"
11 #include "content/public/common/url_constants.h" 11 #include "content/public/common/url_constants.h"
12 #include "content/public/test/content_browser_test.h"
13 #include "content/public/test/content_browser_test_utils.h"
12 #include "content/shell/browser/shell.h" 14 #include "content/shell/browser/shell.h"
13 #include "content/test/content_browser_test.h"
14 #include "content/test/content_browser_test_utils.h"
15 #include "net/test/embedded_test_server/embedded_test_server.h" 15 #include "net/test/embedded_test_server/embedded_test_server.h"
16 16
17 namespace content { 17 namespace content {
18 namespace { 18 namespace {
19 19
20 int RenderProcessHostCount() { 20 int RenderProcessHostCount() {
21 content::RenderProcessHost::iterator hosts = 21 content::RenderProcessHost::iterator hosts =
22 content::RenderProcessHost::AllHostsIterator(); 22 content::RenderProcessHost::AllHostsIterator();
23 int count = 0; 23 int count = 0;
24 while (!hosts.IsAtEnd()) { 24 while (!hosts.IsAtEnd()) {
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 // If the test fails, and somehow the RPH is still alive somehow, at least 186 // If the test fails, and somehow the RPH is still alive somehow, at least
187 // deregister the observers so that the test fails and doesn't also crash. 187 // deregister the observers so that the test fails and doesn't also crash.
188 if (!observer_logger.host_destroyed()) { 188 if (!observer_logger.host_destroyed()) {
189 rph->RemoveObserver(&shell_closer); 189 rph->RemoveObserver(&shell_closer);
190 rph->RemoveObserver(&observer_logger); 190 rph->RemoveObserver(&observer_logger);
191 } 191 }
192 } 192 }
193 193
194 } // namespace 194 } // namespace
195 } // namespace content 195 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698