OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/ui/browser.h" | 8 #include "chrome/browser/ui/browser.h" |
9 #include "chrome/test/base/ui_test_utils.h" | 9 #include "chrome/test/base/ui_test_utils.h" |
10 #include "content/browser/renderer_host/render_process_host.h" | 10 #include "content/browser/renderer_host/render_process_host_impl.h" |
11 #include "content/browser/tab_contents/tab_contents.h" | 11 #include "content/browser/tab_contents/tab_contents.h" |
12 #include "content/common/test_url_constants.h" | 12 #include "content/common/test_url_constants.h" |
13 #include "content/public/common/content_switches.h" | 13 #include "content/public/common/content_switches.h" |
14 | 14 |
15 RenderProcessHostTest::RenderProcessHostTest() { | 15 RenderProcessHostTest::RenderProcessHostTest() { |
16 EnableDOMAutomation(); | 16 EnableDOMAutomation(); |
17 } | 17 } |
18 | 18 |
19 int RenderProcessHostTest::RenderProcessHostCount() { | 19 int RenderProcessHostTest::RenderProcessHostCount() { |
20 RenderProcessHost::iterator hosts = RenderProcessHost::AllHostsIterator(); | 20 RenderProcessHost::iterator hosts = RenderProcessHost::AllHostsIterator(); |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 host_count++; | 166 host_count++; |
167 #endif | 167 #endif |
168 EXPECT_EQ(tab_count, browser()->tab_count()); | 168 EXPECT_EQ(tab_count, browser()->tab_count()); |
169 tab1 = browser()->GetTabContentsAt(tab_count - 1); | 169 tab1 = browser()->GetTabContentsAt(tab_count - 1); |
170 rph3 = tab1->GetRenderProcessHost(); | 170 rph3 = tab1->GetRenderProcessHost(); |
171 EXPECT_EQ(tab1->GetURL(), bookmarks); | 171 EXPECT_EQ(tab1->GetURL(), bookmarks); |
172 EXPECT_EQ(host_count, RenderProcessHostCount()); | 172 EXPECT_EQ(host_count, RenderProcessHostCount()); |
173 EXPECT_NE(rph1, rph3); | 173 EXPECT_NE(rph1, rph3); |
174 EXPECT_NE(rph2, rph3); | 174 EXPECT_NE(rph2, rph3); |
175 } | 175 } |
OLD | NEW |