| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/command_line.h" | 5 #include "base/command_line.h" |
| 6 #include "base/compiler_specific.h" | 6 #include "base/compiler_specific.h" |
| 7 #include "base/memory/scoped_vector.h" | 7 #include "base/memory/scoped_vector.h" |
| 8 #include "base/strings/string16.h" | 8 #include "base/strings/string16.h" |
| 9 #include "content/browser/browser_thread_impl.h" | 9 #include "content/browser/browser_thread_impl.h" |
| 10 #include "content/browser/browsing_instance.h" | 10 #include "content/browser/browsing_instance.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 #include "content/public/test/test_browser_context.h" | 25 #include "content/public/test/test_browser_context.h" |
| 26 #include "content/public/test/test_browser_thread.h" | 26 #include "content/public/test/test_browser_thread.h" |
| 27 #include "content/test/test_content_browser_client.h" | 27 #include "content/test/test_content_browser_client.h" |
| 28 #include "content/test/test_content_client.h" | 28 #include "content/test/test_content_client.h" |
| 29 #include "testing/gtest/include/gtest/gtest.h" | 29 #include "testing/gtest/include/gtest/gtest.h" |
| 30 #include "url/url_util.h" | 30 #include "url/url_util.h" |
| 31 | 31 |
| 32 namespace content { | 32 namespace content { |
| 33 namespace { | 33 namespace { |
| 34 | 34 |
| 35 const char kSameAsAnyInstanceURL[] = "about:internets"; | |
| 36 | |
| 37 const char kPrivilegedScheme[] = "privileged"; | 35 const char kPrivilegedScheme[] = "privileged"; |
| 38 | 36 |
| 39 class SiteInstanceTestWebUIControllerFactory : public WebUIControllerFactory { | 37 class SiteInstanceTestWebUIControllerFactory : public WebUIControllerFactory { |
| 40 public: | 38 public: |
| 41 virtual WebUIController* CreateWebUIControllerForURL( | 39 virtual WebUIController* CreateWebUIControllerForURL( |
| 42 WebUI* web_ui, const GURL& url) const OVERRIDE { | 40 WebUI* web_ui, const GURL& url) const OVERRIDE { |
| 43 return NULL; | 41 return NULL; |
| 44 } | 42 } |
| 45 virtual WebUI::TypeID GetWebUIType(BrowserContext* browser_context, | 43 virtual WebUI::TypeID GetWebUIType(BrowserContext* browser_context, |
| 46 const GURL& url) const OVERRIDE { | 44 const GURL& url) const OVERRIDE { |
| (...skipping 704 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 751 EXPECT_TRUE(instance->GetSiteURL().is_empty()); | 749 EXPECT_TRUE(instance->GetSiteURL().is_empty()); |
| 752 host.reset(instance->GetProcess()); | 750 host.reset(instance->GetProcess()); |
| 753 | 751 |
| 754 EXPECT_FALSE(RenderProcessHostImpl::GetProcessHostForSite( | 752 EXPECT_FALSE(RenderProcessHostImpl::GetProcessHostForSite( |
| 755 browser_context.get(), GURL())); | 753 browser_context.get(), GURL())); |
| 756 | 754 |
| 757 DrainMessageLoops(); | 755 DrainMessageLoops(); |
| 758 } | 756 } |
| 759 | 757 |
| 760 } // namespace content | 758 } // namespace content |
| OLD | NEW |