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

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: Rebase (no code changes) 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
« no previous file with comments | « chrome/test/live_sync/live_preferences_sync_test.cc ('k') | chrome/test/live_sync/live_sync_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..08cd31b650cbb944f247335767f4c2eba4744ba6 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() WARN_UNUSED_RESULT { return use_verifier_; }
+
+ // 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();
+
// 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_;
+
// 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.
« no previous file with comments | « chrome/test/live_sync/live_preferences_sync_test.cc ('k') | chrome/test/live_sync/live_sync_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698