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

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: Finally. 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 18a97bc9852a2e4e117f7c7fc6aaf8b68d54297b..823df68f8bc10ad6ffc355272b5470d1e9ce9d79 100644
--- a/chrome/browser/extensions/settings/settings_frontend_unittest.cc
+++ b/chrome/browser/extensions/settings/settings_frontend_unittest.cc
@@ -105,7 +105,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());
@@ -136,7 +136,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());
@@ -162,7 +162,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());
@@ -194,7 +194,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