| 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 "base/utf_string_conversions.h" |
| 5 #include "chrome/browser/browser.h" | 6 #include "chrome/browser/browser.h" |
| 6 #include "chrome/browser/extensions/extension_apitest.h" | 7 #include "chrome/browser/extensions/extension_apitest.h" |
| 7 #include "chrome/browser/extensions/extension_host.h" | 8 #include "chrome/browser/extensions/extension_host.h" |
| 8 #include "chrome/browser/extensions/extension_process_manager.h" | 9 #include "chrome/browser/extensions/extension_process_manager.h" |
| 9 #include "chrome/browser/profile.h" | 10 #include "chrome/browser/profile.h" |
| 10 #include "chrome/browser/renderer_host/render_view_host.h" | 11 #include "chrome/browser/renderer_host/render_view_host.h" |
| 11 #include "chrome/browser/tab_contents/tab_contents.h" | 12 #include "chrome/browser/tab_contents/tab_contents.h" |
| 12 #include "chrome/common/chrome_switches.h" | 13 #include "chrome/common/chrome_switches.h" |
| 13 #include "chrome/test/ui_test_utils.h" | 14 #include "chrome/test/ui_test_utils.h" |
| 14 #include "net/base/mock_host_resolver.h" | 15 #include "net/base/mock_host_resolver.h" |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 // Navigate the app tab into the browse extent. It should stay in the app | 109 // Navigate the app tab into the browse extent. It should stay in the app |
| 109 // process. | 110 // process. |
| 110 const GURL& browse_url(base_url.Resolve("path4/empty.html")); | 111 const GURL& browse_url(base_url.Resolve("path4/empty.html")); |
| 111 NavigateTabHelper(browser()->GetTabContentsAt(1), browse_url); | 112 NavigateTabHelper(browser()->GetTabContentsAt(1), browse_url); |
| 112 NavigateTabHelper(browser()->GetTabContentsAt(3), browse_url); | 113 NavigateTabHelper(browser()->GetTabContentsAt(3), browse_url); |
| 113 EXPECT_NE(host->render_process_host(), | 114 EXPECT_NE(host->render_process_host(), |
| 114 browser()->GetTabContentsAt(1)->render_view_host()->process()); | 115 browser()->GetTabContentsAt(1)->render_view_host()->process()); |
| 115 EXPECT_EQ(host->render_process_host(), | 116 EXPECT_EQ(host->render_process_host(), |
| 116 browser()->GetTabContentsAt(3)->render_view_host()->process()); | 117 browser()->GetTabContentsAt(3)->render_view_host()->process()); |
| 117 } | 118 } |
| OLD | NEW |