OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/browser/profile.h" | 5 #include "chrome/browser/profiles/profile.h" |
6 #include "chrome/browser/renderer_host/site_instance.h" | 6 #include "chrome/browser/renderer_host/site_instance.h" |
7 #include "chrome/browser/tab_contents/tab_contents.h" | 7 #include "chrome/browser/tab_contents/tab_contents.h" |
8 #include "chrome/browser/renderer_host/render_process_host.h" | 8 #include "chrome/browser/renderer_host/render_process_host.h" |
9 #include "chrome/browser/ui/browser.h" | 9 #include "chrome/browser/ui/browser.h" |
10 #include "chrome/common/url_constants.h" | 10 #include "chrome/common/url_constants.h" |
11 #include "chrome/test/in_process_browser_test.h" | 11 #include "chrome/test/in_process_browser_test.h" |
12 #include "chrome/test/ui_test_utils.h" | 12 #include "chrome/test/ui_test_utils.h" |
13 | 13 |
14 class RenderProcessHostTest : public InProcessBrowserTest { | 14 class RenderProcessHostTest : public InProcessBrowserTest { |
15 public: | 15 public: |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 tab_count++; | 106 tab_count++; |
107 host_count++; | 107 host_count++; |
108 EXPECT_EQ(tab_count, browser()->tab_count()); | 108 EXPECT_EQ(tab_count, browser()->tab_count()); |
109 tab1 = browser()->GetTabContentsAt(tab_count - 1); | 109 tab1 = browser()->GetTabContentsAt(tab_count - 1); |
110 rph3 = tab1->GetRenderProcessHost(); | 110 rph3 = tab1->GetRenderProcessHost(); |
111 EXPECT_EQ(tab1->GetURL(), bookmarks); | 111 EXPECT_EQ(tab1->GetURL(), bookmarks); |
112 EXPECT_EQ(host_count, RenderProcessHostCount()); | 112 EXPECT_EQ(host_count, RenderProcessHostCount()); |
113 EXPECT_NE(rph1, rph3); | 113 EXPECT_NE(rph1, rph3); |
114 EXPECT_NE(rph2, rph3); | 114 EXPECT_NE(rph2, rph3); |
115 } | 115 } |
OLD | NEW |