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

Unified Diff: chrome/browser/extensions/settings/settings_frontend_unittest.cc

Issue 8477005: Add policies to specify an enterprise web store. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebasse. Created 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/settings/settings_frontend_unittest.cc
diff --git a/chrome/browser/extensions/settings/settings_frontend_unittest.cc b/chrome/browser/extensions/settings/settings_frontend_unittest.cc
index e4a143393049d4e2860e7c2c10d1cc73190c0db3..7b2345fd3ed9273b24f17d450f31fc7098d793c0 100644
--- a/chrome/browser/extensions/settings/settings_frontend_unittest.cc
+++ b/chrome/browser/extensions/settings/settings_frontend_unittest.cc
@@ -80,7 +80,7 @@ class ExtensionSettingsFrontendTest : public testing::Test {
TEST_F(ExtensionSettingsFrontendTest, SettingsPreservedAcrossReconstruction) {
const std::string id = "ext";
- profile_->GetMockExtensionService()->AddExtension(
+ profile_->GetMockExtensionService()->AddExtensionWithId(
id, Extension::TYPE_EXTENSION);
SettingsStorage* storage = GetStorage(id, frontend_.get());
@@ -111,7 +111,7 @@ TEST_F(ExtensionSettingsFrontendTest, SettingsPreservedAcrossReconstruction) {
TEST_F(ExtensionSettingsFrontendTest, SettingsClearedOnUninstall) {
const std::string id = "ext";
- profile_->GetMockExtensionService()->AddExtension(
+ profile_->GetMockExtensionService()->AddExtensionWithId(
id, Extension::TYPE_PACKAGED_APP);
SettingsStorage* storage = GetStorage(id, frontend_.get());
@@ -137,7 +137,7 @@ TEST_F(ExtensionSettingsFrontendTest, SettingsClearedOnUninstall) {
TEST_F(ExtensionSettingsFrontendTest, LeveldbDatabaseDeletedFromDiskOnClear) {
const std::string id = "ext";
- profile_->GetMockExtensionService()->AddExtension(
+ profile_->GetMockExtensionService()->AddExtensionWithId(
id, Extension::TYPE_EXTENSION);
SettingsStorage* storage = GetStorage(id, frontend_.get());
@@ -169,7 +169,7 @@ TEST_F(ExtensionSettingsFrontendTest,
LeveldbCreationFailureFailsAllOperations) {
const StringValue bar("bar");
const std::string id = "ext";
- profile_->GetMockExtensionService()->AddExtension(
+ profile_->GetMockExtensionService()->AddExtensionWithId(
id, Extension::TYPE_EXTENSION);
storage_factory_->Reset(new NullSettingsStorageFactory());

Powered by Google App Engine
This is Rietveld 408576698