Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(302)

Side by Side Diff: content/browser/site_instance_impl_unittest.cc

Issue 24649002: Clean up a few more unused globals. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: thestig comment Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698