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

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

Issue 296743005: sync: Implement fake server reflection blocking (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Split enable and disable methods 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.cc
diff --git a/chrome/browser/sync/test/integration/sync_test.cc b/chrome/browser/sync/test/integration/sync_test.cc
index c965b7db229e1a70cf853aee21f2eb075a2cde64..aeb6416f532b3d7555a9da6f6254355f9fe7c680 100644
--- a/chrome/browser/sync/test/integration/sync_test.cc
+++ b/chrome/browser/sync/test/integration/sync_test.cc
@@ -405,6 +405,11 @@ void SyncTest::InitializeInvalidations(int index) {
GetProfile(index),
fake_server::FakeServerInvalidationService::Build));
fake_server_->AddObserver(invalidation_service);
+ if (TestUsesSelfNotifications()) {
+ invalidation_service->EnableSelfNotifications();
+ } else {
+ invalidation_service->DisableSelfNotifications();
+ }
fake_server_invalidation_services_[index] = invalidation_service;
} else {
invalidation::P2PInvalidationService* p2p_invalidation_service =
« no previous file with comments | « chrome/browser/sync/test/integration/fake_server_invalidation_service.cc ('k') | sync/test/fake_server/fake_server.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698