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

Unified Diff: chrome/browser/extensions/extension_message_bubble_controller_unittest.cc

Issue 398083002: Add "UninstallReason" parameter to ExtensionRegistryObserver::OnExtensionUninstalled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix header file. Created 6 years, 5 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: chrome/browser/extensions/extension_message_bubble_controller_unittest.cc
diff --git a/chrome/browser/extensions/extension_message_bubble_controller_unittest.cc b/chrome/browser/extensions/extension_message_bubble_controller_unittest.cc
index 5f206a085b4783e9e2514cf4749a704e49e9c10c..82b87f8a201169e38557f8fa0286efd28f1d4948 100644
--- a/chrome/browser/extensions/extension_message_bubble_controller_unittest.cc
+++ b/chrome/browser/extensions/extension_message_bubble_controller_unittest.cc
@@ -25,6 +25,7 @@
#include "extensions/browser/extension_prefs.h"
#include "extensions/browser/extension_registry.h"
#include "extensions/browser/extension_system.h"
+#include "extensions/browser/uninstall_reason.h"
#include "extensions/common/extension.h"
#include "extensions/common/extension_builder.h"
#include "extensions/common/feature_switch.h"
@@ -721,11 +722,11 @@ TEST_F(ExtensionMessageBubbleTest, MAYBE_SettingsApiControllerTest) {
// Clean up after ourselves.
service_->UninstallExtension(
- kId1, ExtensionService::UNINSTALL_REASON_FOR_TESTING, NULL);
+ kId1, extensions::UNINSTALL_REASON_FOR_TESTING, NULL);
service_->UninstallExtension(
- kId2, ExtensionService::UNINSTALL_REASON_FOR_TESTING, NULL);
+ kId2, extensions::UNINSTALL_REASON_FOR_TESTING, NULL);
service_->UninstallExtension(
- kId3, ExtensionService::UNINSTALL_REASON_FOR_TESTING, NULL);
+ kId3, extensions::UNINSTALL_REASON_FOR_TESTING, NULL);
}
}
@@ -823,11 +824,11 @@ TEST_F(ExtensionMessageBubbleTest, MAYBE_NtpOverriddenControllerTest) {
// Clean up after ourselves.
service_->UninstallExtension(
- kId1, ExtensionService::UNINSTALL_REASON_FOR_TESTING, NULL);
+ kId1, extensions::UNINSTALL_REASON_FOR_TESTING, NULL);
service_->UninstallExtension(
- kId2, ExtensionService::UNINSTALL_REASON_FOR_TESTING, NULL);
+ kId2, extensions::UNINSTALL_REASON_FOR_TESTING, NULL);
service_->UninstallExtension(
- kId3, ExtensionService::UNINSTALL_REASON_FOR_TESTING, NULL);
+ kId3, extensions::UNINSTALL_REASON_FOR_TESTING, NULL);
}
void SetInstallTime(const std::string& extension_id,
@@ -946,11 +947,11 @@ TEST_F(ExtensionMessageBubbleTest, MAYBE_ProxyOverriddenControllerTest) {
// Clean up after ourselves.
service_->UninstallExtension(
- kId1, ExtensionService::UNINSTALL_REASON_FOR_TESTING, NULL);
+ kId1, extensions::UNINSTALL_REASON_FOR_TESTING, NULL);
service_->UninstallExtension(
- kId2, ExtensionService::UNINSTALL_REASON_FOR_TESTING, NULL);
+ kId2, extensions::UNINSTALL_REASON_FOR_TESTING, NULL);
service_->UninstallExtension(
- kId3, ExtensionService::UNINSTALL_REASON_FOR_TESTING, NULL);
+ kId3, extensions::UNINSTALL_REASON_FOR_TESTING, NULL);
}
} // namespace extensions
« no previous file with comments | « chrome/browser/extensions/extension_gcm_app_handler_unittest.cc ('k') | chrome/browser/extensions/extension_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698