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

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

Issue 11231077: Move a bunch more code into the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 1 month 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/stl_util.h" 7 #include "base/stl_util.h"
8 #include "base/string16.h" 8 #include "base/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 18 matching lines...) Expand all
29 #include "testing/gtest/include/gtest/gtest.h" 29 #include "testing/gtest/include/gtest/gtest.h"
30 30
31 using content::BrowserContext; 31 using content::BrowserContext;
32 using content::BrowserThread; 32 using content::BrowserThread;
33 using content::BrowserThreadImpl; 33 using content::BrowserThreadImpl;
34 using content::MockRenderProcessHost; 34 using content::MockRenderProcessHost;
35 using content::MockRenderProcessHostFactory; 35 using content::MockRenderProcessHostFactory;
36 using content::NavigationEntry; 36 using content::NavigationEntry;
37 using content::NavigationEntryImpl; 37 using content::NavigationEntryImpl;
38 using content::SiteInstance; 38 using content::SiteInstance;
39 using content::WebContentsImpl;
39 using content::WebUI; 40 using content::WebUI;
40 using content::WebUIController; 41 using content::WebUIController;
41 42
42 namespace { 43 namespace {
43 44
44 const char kSameAsAnyInstanceURL[] = "about:internets"; 45 const char kSameAsAnyInstanceURL[] = "about:internets";
45 46
46 const char kPrivilegedScheme[] = "privileged"; 47 const char kPrivilegedScheme[] = "privileged";
47 48
48 class SiteInstanceTestWebUIControllerFactory 49 class SiteInstanceTestWebUIControllerFactory
(...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after
678 EXPECT_TRUE(instance->HasProcess()); 679 EXPECT_TRUE(instance->HasProcess());
679 680
680 EXPECT_FALSE(instance->HasWrongProcessForURL(GURL("http://evernote.com"))); 681 EXPECT_FALSE(instance->HasWrongProcessForURL(GURL("http://evernote.com")));
681 EXPECT_FALSE(instance->HasWrongProcessForURL( 682 EXPECT_FALSE(instance->HasWrongProcessForURL(
682 GURL("javascript:alert(document.location.href);"))); 683 GURL("javascript:alert(document.location.href);")));
683 684
684 EXPECT_TRUE(instance->HasWrongProcessForURL(GURL("chrome://settings"))); 685 EXPECT_TRUE(instance->HasWrongProcessForURL(GURL("chrome://settings")));
685 686
686 DrainMessageLoops(); 687 DrainMessageLoops();
687 } 688 }
OLDNEW
« no previous file with comments | « content/browser/renderer_host/resource_dispatcher_host_impl.cc ('k') | content/browser/ssl/ssl_error_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698