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

Unified Diff: chrome/browser/sync/test/integration/sync_test.h

Issue 2716413003: Initial clear server data impl (Closed)
Patch Set: Responding to Pavel's comments. Created 3 years, 9 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/browser/sync/test/integration/sync_test.h
diff --git a/chrome/browser/sync/test/integration/sync_test.h b/chrome/browser/sync/test/integration/sync_test.h
index 818fecd361f33e05cae599675906f49fcea027fd..d23d1310a9844c89f5e8831a71f9b31a6662e9b0 100644
--- a/chrome/browser/sync/test/integration/sync_test.h
+++ b/chrome/browser/sync/test/integration/sync_test.h
@@ -174,6 +174,9 @@ class SyncTest : public InProcessBrowserTest {
// Initializes sync clients and profiles if required and syncs each of them.
virtual bool SetupSync() WARN_UNUSED_RESULT;
+ // Initialize, and clear data for given client.
+ bool SetupAndClearClient(size_t index);
+
// Sets whether or not the sync clients in this test should respond to
// notifications of their own commits. Real sync clients do not do this, but
// many test assertions require this behavior.
@@ -370,6 +373,9 @@ class SyncTest : public InProcessBrowserTest {
// value of |server_type_|.
void InitializeInvalidations(int index);
+ // Clear server data, and restart sync.
+ bool ClearServerData(ProfileSyncServiceHarness* harness);
+
// Python sync test server, started on demand.
syncer::LocalSyncTestServer sync_server_;

Powered by Google App Engine
This is Rietveld 408576698