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

Side by Side Diff: chrome/browser/extensions/extension_process_manager_unittest.cc

Issue 9146028: Define the public interface for content browser SiteInstance. This interface is implemented by th... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 8 years, 11 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 "chrome/browser/extensions/extension_process_manager.h" 5 #include "chrome/browser/extensions/extension_process_manager.h"
6 #include "chrome/browser/extensions/extension_error_reporter.h" 6 #include "chrome/browser/extensions/extension_error_reporter.h"
7 #include "chrome/test/base/testing_profile.h" 7 #include "chrome/test/base/testing_profile.h"
8 #include "content/browser/site_instance.h" 8 #include "content/public/browser/render_process_host.h"
9 #include "content/public/browser/site_instance.h"
9 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
10 #include "testing/platform_test.h" 11 #include "testing/platform_test.h"
11 12
13 using content::SiteInstance;
14
12 namespace { 15 namespace {
13 16
14 // make the test a PlatformTest to setup autorelease pools properly on mac 17 // make the test a PlatformTest to setup autorelease pools properly on mac
15 class ExtensionProcessManagerTest : public testing::Test { 18 class ExtensionProcessManagerTest : public testing::Test {
16 public: 19 public:
17 static void SetUpTestCase() { 20 static void SetUpTestCase() {
18 ExtensionErrorReporter::Init(false); // no noisy errors 21 ExtensionErrorReporter::Init(false); // no noisy errors
19 } 22 }
20 23
21 virtual void SetUp() { 24 virtual void SetUp() {
(...skipping 30 matching lines...) Expand all
52 EXPECT_EQ(site11, site12); 55 EXPECT_EQ(site11, site12);
53 56
54 scoped_refptr<SiteInstance> site21 = 57 scoped_refptr<SiteInstance> site21 =
55 manager1->GetSiteInstanceForURL(ext2_url1); 58 manager1->GetSiteInstanceForURL(ext2_url1);
56 EXPECT_NE(site11, site21); 59 EXPECT_NE(site11, site21);
57 60
58 scoped_refptr<SiteInstance> other_profile_site = 61 scoped_refptr<SiteInstance> other_profile_site =
59 manager2->GetSiteInstanceForURL(ext1_url1); 62 manager2->GetSiteInstanceForURL(ext1_url1);
60 EXPECT_NE(site11, other_profile_site); 63 EXPECT_NE(site11, other_profile_site);
61 } 64 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_process_manager.cc ('k') | chrome/browser/extensions/isolated_app_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698