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

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

Issue 6575009: Move files out of chrome\browser\renderer_host\test alongside their source. ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/stl_util-inl.h" 5 #include "base/stl_util-inl.h"
6 #include "base/string16.h" 6 #include "base/string16.h"
7 #include "chrome/browser/browsing_instance.h"
8 #include "chrome/browser/child_process_security_policy.h"
9 #include "chrome/browser/renderer_host/browser_render_process_host.h" 7 #include "chrome/browser/renderer_host/browser_render_process_host.h"
10 #include "chrome/browser/renderer_host/site_instance.h"
11 #include "chrome/browser/renderer_host/render_view_host.h"
12 #include "chrome/browser/renderer_host/test/test_render_view_host.h"
13 #include "chrome/browser/tab_contents/navigation_entry.h"
14 #include "chrome/browser/tab_contents/tab_contents.h"
15 #include "chrome/common/chrome_constants.h" 8 #include "chrome/common/chrome_constants.h"
16 #include "chrome/common/url_constants.h" 9 #include "chrome/common/url_constants.h"
17 #include "chrome/common/render_messages.h" 10 #include "chrome/common/render_messages.h"
18 #include "chrome/test/testing_profile.h" 11 #include "chrome/test/testing_profile.h"
19 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
13 #include "content/browser/browsing_instance.h"
14 #include "content/browser/child_process_security_policy.h"
15 #include "content/browser/renderer_host/render_view_host.h"
16 #include "content/browser/site_instance.h"
17 #include "content/browser/renderer_host/test_render_view_host.h"
18 #include "content/browser/tab_contents/navigation_entry.h"
19 #include "content/browser/tab_contents/tab_contents.h"
20 20
21 class SiteInstanceTest : public testing::Test { 21 class SiteInstanceTest : public testing::Test {
22 private: 22 private:
23 MessageLoopForUI message_loop_; 23 MessageLoopForUI message_loop_;
24 }; 24 };
25 25
26 namespace { 26 namespace {
27 27
28 class TestBrowsingInstance : public BrowsingInstance { 28 class TestBrowsingInstance : public BrowsingInstance {
29 public: 29 public:
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after
520 GURL("chrome-extension://baz/bar"))); 520 GURL("chrome-extension://baz/bar")));
521 EXPECT_EQ(s5a, s5b); 521 EXPECT_EQ(s5a, s5b);
522 522
523 // The derived profiles with the different sites. 523 // The derived profiles with the different sites.
524 scoped_refptr<SiteInstance> s6a(instance1->GetSiteInstanceForURL( 524 scoped_refptr<SiteInstance> s6a(instance1->GetSiteInstanceForURL(
525 GURL("chrome-extension://baz/bar"))); 525 GURL("chrome-extension://baz/bar")));
526 scoped_refptr<SiteInstance> s6b(instance3->GetSiteInstanceForURL( 526 scoped_refptr<SiteInstance> s6b(instance3->GetSiteInstanceForURL(
527 GURL("chrome-extension://foo/boo"))); 527 GURL("chrome-extension://foo/boo")));
528 EXPECT_NE(s6a, s6b); 528 EXPECT_NE(s6a, s6b);
529 } 529 }
OLDNEW
« no previous file with comments | « content/browser/renderer_host/test_render_view_host.cc ('k') | content/browser/tab_contents/navigation_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698