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

Unified Diff: chrome/test/live_sync/live_sync_test.h

Issue 7259005: Allow sync integration tests to operate on multiple datatypes: Preferences + Bookmarks (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Actual patch set. (Moves show up as adds / deletes. Hard to review) Created 9 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/test/live_sync/live_sync_test.h
diff --git a/chrome/test/live_sync/live_sync_test.h b/chrome/test/live_sync/live_sync_test.h
index 1946be7ca87d9ab604928e29ecc906daff768492..309850b76cba4bbe09fda9d6a71e3c878bdb45f6 100644
--- a/chrome/test/live_sync/live_sync_test.h
+++ b/chrome/test/live_sync/live_sync_test.h
@@ -106,6 +106,14 @@ class LiveSyncTest : public InProcessBrowserTest {
// individual sync profiles. Callee owns the object and manages its lifetime.
Profile* verifier() WARN_UNUSED_RESULT;
+ // Used to determine whether the verifier profile should be updated or not.
+ bool use_verifier_prefs() WARN_UNUSED_RESULT { return use_verifier_prefs_; }
+
+ // After calling this method, changes made to a profile will no longer be
+ // reflected in the verifier profile. Note: Not all datatypes use this.
+ // TODO(rsimha): Hook up all datatypes to this mechanism.
+ void DisableVerifier();
ncarter (slow) 2011/07/06 17:48:52 Best to avoid per-datatype methods in LiveSyncTest
Raghu Simha 2011/07/07 02:14:04 It may not be readily evident yet, but this should
+
// Initializes sync clients and profiles but does not sync any of them.
virtual bool SetupClients() WARN_UNUSED_RESULT;
@@ -232,6 +240,10 @@ class LiveSyncTest : public InProcessBrowserTest {
// verifier profile are strictly local, and are not meant to be synced.
scoped_ptr<Profile> verifier_;
+ // Indicates whether changes to a profile should also change the verifier
+ // profile or not.
+ bool use_verifier_prefs_;
+
// Sync integration tests need to make live DNS requests for access to
// GAIA and sync server URLs under google.com. We use a scoped version
// to override the default resolver while the test is active.

Powered by Google App Engine
This is Rietveld 408576698