summaryrefslogtreecommitdiffstats
path: root/chrome/browser/sync/test/integration/extension_settings_helper.h
diff options
context:
space:
mode:
authorkalman@chromium.org <kalman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-16 09:37:10 +0000
committerkalman@chromium.org <kalman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-16 09:37:10 +0000
commitdeb16806c9991b694052b4a6a34336bb261ccda3 (patch)
treee2b37f2afe9336f3724da7671d5254d0288f056d /chrome/browser/sync/test/integration/extension_settings_helper.h
parentb426e737a866aa08b258cc45d8bb7355fd284644 (diff)
downloadchromium_src-deb16806c9991b694052b4a6a34336bb261ccda3.zip
chromium_src-deb16806c9991b694052b4a6a34336bb261ccda3.tar.gz
chromium_src-deb16806c9991b694052b4a6a34336bb261ccda3.tar.bz2
Add sync integration tests for extension settings.
R=akalin@chromium.org BUG= TEST=sync_integrations_tests --gtest_filter=TwoClientExtensionSettingsSyncTest.* Review URL: http://codereview.chromium.org/9347014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122256 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/sync/test/integration/extension_settings_helper.h')
-rw-r--r--chrome/browser/sync/test/integration/extension_settings_helper.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/chrome/browser/sync/test/integration/extension_settings_helper.h b/chrome/browser/sync/test/integration/extension_settings_helper.h
new file mode 100644
index 0000000..7e92697
--- /dev/null
+++ b/chrome/browser/sync/test/integration/extension_settings_helper.h
@@ -0,0 +1,33 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_EXTENSION_SETTINGS_HELPER_H_
+#define CHROME_BROWSER_SYNC_TEST_INTEGRATION_EXTENSION_SETTINGS_HELPER_H_
+#pragma once
+
+#include <string>
+
+class Profile;
+namespace base {
+class DictionaryValue;
+}
+
+namespace extension_settings_helper {
+
+// Calls Set() with |settings| for |profile| and the extension with ID |id|.
+void SetExtensionSettings(
+ Profile* profile,
+ const std::string& id,
+ const base::DictionaryValue& settings);
+
+// Calls Set() with |settings| for all profiles the extension with ID |id|.
+void SetExtensionSettingsForAllProfiles(
+ const std::string& id, const base::DictionaryValue& settings);
+
+// Returns whether the extension settings are the same across all profiles.
+bool AllExtensionSettingsSameAsVerifier();
+
+} // namespace extension_settings_helper
+
+#endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_EXTENSION_SETTINGS_HELPER_H_