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

Unified Diff: extensions/browser/api/idle/idle_api_unittest.cc

Issue 2839373003: struct UnloadedExtensionInfo -> enum UnloadedExtensionInfoReason (Closed)
Patch Set: Rebase Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: extensions/browser/api/idle/idle_api_unittest.cc
diff --git a/extensions/browser/api/idle/idle_api_unittest.cc b/extensions/browser/api/idle/idle_api_unittest.cc
index e5c14fafaedb3c018e6a0ee583ef6021fb671d14..df4668bcf74913c10c7271e94a32e07911c9ca21 100644
--- a/extensions/browser/api/idle/idle_api_unittest.cc
+++ b/extensions/browser/api/idle/idle_api_unittest.cc
@@ -498,8 +498,7 @@ TEST_F(IdleTest, UnloadCleanup) {
// Threshold will reset after unload (and listen count == 0)
ExtensionRegistry* registry = ExtensionRegistry::Get(browser_context());
- registry->TriggerOnUnloaded(extension(),
- UnloadedExtensionInfo::REASON_UNINSTALL);
+ registry->TriggerOnUnloaded(extension(), UnloadedExtensionReason::UNINSTALL);
{
ScopedListen listen(idle_manager_, extension()->id());
@@ -516,8 +515,7 @@ TEST_F(IdleTest, UnloadCleanup) {
// Verifies that unloading an extension with no listeners or threshold works.
TEST_F(IdleTest, UnloadOnly) {
ExtensionRegistry* registry = ExtensionRegistry::Get(browser_context());
- registry->TriggerOnUnloaded(extension(),
- UnloadedExtensionInfo::REASON_UNINSTALL);
+ registry->TriggerOnUnloaded(extension(), UnloadedExtensionReason::UNINSTALL);
}
// Verifies that its ok for the unload notification to happen before all the
@@ -525,8 +523,7 @@ TEST_F(IdleTest, UnloadOnly) {
TEST_F(IdleTest, UnloadWhileListening) {
ScopedListen listen(idle_manager_, extension()->id());
ExtensionRegistry* registry = ExtensionRegistry::Get(browser_context());
- registry->TriggerOnUnloaded(extension(),
- UnloadedExtensionInfo::REASON_UNINSTALL);
+ registry->TriggerOnUnloaded(extension(), UnloadedExtensionReason::UNINSTALL);
}
// Verifies that re-adding a listener after a state change doesn't immediately
« no previous file with comments | « extensions/browser/api/declarative/rules_registry_service.cc ('k') | extensions/browser/api/idle/idle_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698