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

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

Issue 267723012: Use FakeServer-based invalidations for Sync tests (try #2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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 b9e734d5dcaa63bbda414204fc9d92f360614f28..6c32d8372a8f611a3cffd55905ee3d4db96b736f 100644
--- a/chrome/browser/sync/test/integration/sync_test.h
+++ b/chrome/browser/sync/test/integration/sync_test.h
@@ -32,6 +32,7 @@ class CommandLine;
namespace fake_server {
class FakeServer;
+class FakeServerInvalidationService;
}
namespace net {
@@ -363,6 +364,10 @@ class SyncTest : public InProcessBrowserTest {
// of test being run and command line args passed in.
void DecideServerType();
+ // Sets up the client-side invalidations infrastructure depending on the
+ // value of |server_type_|.
+ void InitializeInvalidations(int index);
+
// Python sync test server, started on demand.
syncer::LocalSyncTestServer sync_server_;
@@ -399,6 +404,10 @@ class SyncTest : public InProcessBrowserTest {
// of this activity to its peer sync clients.
ScopedVector<P2PInvalidationForwarder> invalidation_forwarders_;
+ // Collection of pointers to FakeServerInvalidation objects for each profile.
+ std::vector<fake_server::FakeServerInvalidationService*>
+ fake_server_invalidation_services_;
+
// Sync profile against which changes to individual profiles are verified. We
// don't need a corresponding verifier sync client because the contents of the
// verifier profile are strictly local, and are not meant to be synced.

Powered by Google App Engine
This is Rietveld 408576698