| 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 "base/utf_string_conversions.h" |
| 6 #include "chrome/browser/browser_list.h" | 6 #include "chrome/browser/browser_list.h" |
| 7 #include "chrome/browser/extensions/extension_apitest.h" | 7 #include "chrome/browser/extensions/extension_apitest.h" |
| 8 #include "chrome/browser/extensions/extension_host.h" | 8 #include "chrome/browser/extensions/extension_host.h" |
| 9 #include "chrome/browser/extensions/extension_process_manager.h" | 9 #include "chrome/browser/extensions/extension_process_manager.h" |
| 10 #include "chrome/browser/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
| 11 #include "chrome/browser/renderer_host/render_view_host.h" | 11 #include "chrome/browser/renderer_host/render_view_host.h" |
| 12 #include "chrome/browser/tab_contents/tab_contents.h" | 12 #include "chrome/browser/tab_contents/tab_contents.h" |
| 13 #include "chrome/browser/ui/browser.h" | 13 #include "chrome/browser/ui/browser.h" |
| 14 #include "chrome/common/chrome_switches.h" | 14 #include "chrome/common/chrome_switches.h" |
| 15 #include "chrome/test/ui_test_utils.h" | 15 #include "chrome/test/ui_test_utils.h" |
| 16 #include "net/base/mock_host_resolver.h" | 16 #include "net/base/mock_host_resolver.h" |
| 17 | 17 |
| 18 class AppApiTest : public ExtensionApiTest { | 18 class AppApiTest : public ExtensionApiTest { |
| 19 }; | 19 }; |
| 20 | 20 |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 // extent. They should switch processes. | 118 // extent. They should switch processes. |
| 119 const GURL& app_url(base_url.Resolve("path1/empty.html")); | 119 const GURL& app_url(base_url.Resolve("path1/empty.html")); |
| 120 const GURL& non_app_url(base_url.Resolve("path3/empty.html")); | 120 const GURL& non_app_url(base_url.Resolve("path3/empty.html")); |
| 121 NavigateTabHelper(browser()->GetTabContentsAt(2), non_app_url); | 121 NavigateTabHelper(browser()->GetTabContentsAt(2), non_app_url); |
| 122 NavigateTabHelper(browser()->GetTabContentsAt(3), app_url); | 122 NavigateTabHelper(browser()->GetTabContentsAt(3), app_url); |
| 123 EXPECT_NE(host->process(), | 123 EXPECT_NE(host->process(), |
| 124 browser()->GetTabContentsAt(2)->render_view_host()->process()); | 124 browser()->GetTabContentsAt(2)->render_view_host()->process()); |
| 125 EXPECT_EQ(host->process(), | 125 EXPECT_EQ(host->process(), |
| 126 browser()->GetTabContentsAt(3)->render_view_host()->process()); | 126 browser()->GetTabContentsAt(3)->render_view_host()->process()); |
| 127 } | 127 } |
| OLD | NEW |