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

Side by Side Diff: extensions/browser/process_manager_unittest.cc

Issue 204703002: Rename NOTIFICATION_EXTENSION_UNLOADED to (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: maybe upload wont do something bizarre this time Created 6 years, 9 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
« no previous file with comments | « extensions/browser/process_manager.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "extensions/browser/process_manager.h" 5 #include "extensions/browser/process_manager.h"
6 6
7 #include "chrome/browser/chrome_notification_types.h" 7 #include "chrome/browser/chrome_notification_types.h"
8 #include "content/public/browser/content_browser_client.h" 8 #include "content/public/browser/content_browser_client.h"
9 #include "content/public/browser/notification_service.h" 9 #include "content/public/browser/notification_service.h"
10 #include "content/public/browser/site_instance.h" 10 #include "content/public/browser/site_instance.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 EXPECT_EQ(0u, manager1->background_hosts().size()); 76 EXPECT_EQ(0u, manager1->background_hosts().size());
77 77
78 // It observes other notifications from this context. 78 // It observes other notifications from this context.
79 EXPECT_TRUE(IsRegistered(manager1.get(), 79 EXPECT_TRUE(IsRegistered(manager1.get(),
80 chrome::NOTIFICATION_EXTENSIONS_READY, 80 chrome::NOTIFICATION_EXTENSIONS_READY,
81 original_context())); 81 original_context()));
82 EXPECT_TRUE(IsRegistered(manager1.get(), 82 EXPECT_TRUE(IsRegistered(manager1.get(),
83 chrome::NOTIFICATION_EXTENSION_LOADED, 83 chrome::NOTIFICATION_EXTENSION_LOADED,
84 original_context())); 84 original_context()));
85 EXPECT_TRUE(IsRegistered(manager1.get(), 85 EXPECT_TRUE(IsRegistered(manager1.get(),
86 chrome::NOTIFICATION_EXTENSION_UNLOADED, 86 chrome::NOTIFICATION_EXTENSION_UNLOADED_DEPRECATED,
87 original_context())); 87 original_context()));
88 EXPECT_TRUE(IsRegistered(manager1.get(), 88 EXPECT_TRUE(IsRegistered(manager1.get(),
89 chrome::NOTIFICATION_EXTENSION_HOST_DESTROYED, 89 chrome::NOTIFICATION_EXTENSION_HOST_DESTROYED,
90 original_context())); 90 original_context()));
91 91
92 // Test for an incognito context ProcessManager. 92 // Test for an incognito context ProcessManager.
93 scoped_ptr<ProcessManager> manager2(ProcessManager::CreateIncognitoForTesting( 93 scoped_ptr<ProcessManager> manager2(ProcessManager::CreateIncognitoForTesting(
94 incognito_context(), original_context(), manager1.get())); 94 incognito_context(), original_context(), manager1.get()));
95 95
96 EXPECT_EQ(incognito_context(), manager2->GetBrowserContext()); 96 EXPECT_EQ(incognito_context(), manager2->GetBrowserContext());
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 scoped_refptr<SiteInstance> site21 = 155 scoped_refptr<SiteInstance> site21 =
156 manager1->GetSiteInstanceForURL(ext2_url1); 156 manager1->GetSiteInstanceForURL(ext2_url1);
157 EXPECT_NE(site11, site21); 157 EXPECT_NE(site11, site21);
158 158
159 scoped_refptr<SiteInstance> other_profile_site = 159 scoped_refptr<SiteInstance> other_profile_site =
160 manager2->GetSiteInstanceForURL(ext1_url1); 160 manager2->GetSiteInstanceForURL(ext1_url1);
161 EXPECT_NE(site11, other_profile_site); 161 EXPECT_NE(site11, other_profile_site);
162 } 162 }
163 163
164 } // namespace extensions 164 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/browser/process_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698