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

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

Issue 671763002: Extract ProcessManager from ExtensionSystem. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 6 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
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 "chrome/browser/extensions/extension_apitest.h" 5 #include "chrome/browser/extensions/extension_apitest.h"
6 6
7 #include "chrome/browser/extensions/lazy_background_page_test_util.h" 7 #include "chrome/browser/extensions/lazy_background_page_test_util.h"
8 #include "chrome/browser/notifications/desktop_notification_profile_util.h" 8 #include "chrome/browser/notifications/desktop_notification_profile_util.h"
9 #include "chrome/browser/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/browser/ui/browser.h" 10 #include "chrome/browser/ui/browser.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 #else 49 #else
50 #define MAYBE_NotificationsAllowUnload DISABLED_NotificationsAllowUnload 50 #define MAYBE_NotificationsAllowUnload DISABLED_NotificationsAllowUnload
51 #endif 51 #endif
52 52
53 IN_PROC_BROWSER_TEST_F(NotificationIdleTest, MAYBE_NotificationsAllowUnload) { 53 IN_PROC_BROWSER_TEST_F(NotificationIdleTest, MAYBE_NotificationsAllowUnload) {
54 const extensions::Extension* extension = 54 const extensions::Extension* extension =
55 LoadExtensionAndWait("notifications/api/unload"); 55 LoadExtensionAndWait("notifications/api/unload");
56 ASSERT_TRUE(extension) << message_; 56 ASSERT_TRUE(extension) << message_;
57 57
58 // Lazy Background Page has been shut down. 58 // Lazy Background Page has been shut down.
59 extensions::ProcessManager* pm = 59 extensions::ProcessManager* pm = extensions::ProcessManager::Get(profile());
60 extensions::ExtensionSystem::Get(profile())->process_manager();
61 EXPECT_FALSE(pm->GetBackgroundHostForExtension(last_loaded_extension_id())); 60 EXPECT_FALSE(pm->GetBackgroundHostForExtension(last_loaded_extension_id()));
62 } 61 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/lazy_background_page_apitest.cc ('k') | chrome/browser/extensions/permission_messages_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698