| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |