diff options
author | kalman@chromium.org <kalman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-21 02:12:06 +0000 |
---|---|---|
committer | kalman@chromium.org <kalman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-21 02:12:06 +0000 |
commit | 87474c1a9db80986fab7aeea49b72dd3bb74f159 (patch) | |
tree | fa3bf3d067bc0c557cb69da55de8e6eef21fd590 /chrome/browser/extensions/extension_settings_frontend_unittest.cc | |
parent | 7baf2a59aed93553893350b24660c931c97a5796 (diff) | |
download | chromium_src-87474c1a9db80986fab7aeea49b72dd3bb74f159.zip chromium_src-87474c1a9db80986fab7aeea49b72dd3bb74f159.tar.gz chromium_src-87474c1a9db80986fab7aeea49b72dd3bb74f159.tar.bz2 |
Add onChanged events to the extension settings API, both from sync and between
split mode background pages.
BUG=97545
TEST=Updated ExtensionSettingsStorageUnittest, ExtensionSettingsSyncUnittest, ExtensionSettingsApitest
Review URL: http://codereview.chromium.org/8177022
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106660 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_settings_frontend_unittest.cc')
-rw-r--r-- | chrome/browser/extensions/extension_settings_frontend_unittest.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/extensions/extension_settings_frontend_unittest.cc b/chrome/browser/extensions/extension_settings_frontend_unittest.cc index 076eda3..d245850 100644 --- a/chrome/browser/extensions/extension_settings_frontend_unittest.cc +++ b/chrome/browser/extensions/extension_settings_frontend_unittest.cc @@ -23,13 +23,13 @@ class ExtensionSettingsFrontendTest : public testing::Test { virtual void SetUp() OVERRIDE { ASSERT_TRUE(temp_dir_.CreateUniqueTempDir()); - frontend_.reset(new ExtensionSettingsFrontend(temp_dir_.path())); profile_.reset(new TestingProfile(temp_dir_.path())); + frontend_.reset(new ExtensionSettingsFrontend(profile_.get())); } virtual void TearDown() OVERRIDE { - profile_.reset(); frontend_.reset(); + profile_.reset(); } protected: @@ -45,8 +45,8 @@ class ExtensionSettingsFrontendTest : public testing::Test { } ScopedTempDir temp_dir_; - scoped_ptr<ExtensionSettingsFrontend> frontend_; scoped_ptr<TestingProfile> profile_; + scoped_ptr<ExtensionSettingsFrontend> frontend_; private: // Intended as a ExtensionSettingsFrontend::BackendCallback from GetBackend. @@ -77,7 +77,7 @@ TEST_F(ExtensionSettingsFrontendTest, SettingsPreservedAcrossReconstruction) { ASSERT_FALSE(result.HasError()); EXPECT_FALSE(result.GetSettings()->empty()); - frontend_.reset(new ExtensionSettingsFrontend(temp_dir_.path())); + frontend_.reset(new ExtensionSettingsFrontend(profile_.get())); GetBackend(&backend); storage = backend->GetStorage(id); |