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

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

Issue 296743005: sync: Implement fake server reflection blocking (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
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
« no previous file with comments | « no previous file | chrome/browser/sync/test/integration/fake_server_invalidation_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/test/integration/fake_server_invalidation_service.h
diff --git a/chrome/browser/sync/test/integration/fake_server_invalidation_service.h b/chrome/browser/sync/test/integration/fake_server_invalidation_service.h
index d164c14d87f60541f93780d0060c5d6ebc6814d2..dd51877302866c63ffbe027f525d76f06125e365 100644
--- a/chrome/browser/sync/test/integration/fake_server_invalidation_service.h
+++ b/chrome/browser/sync/test/integration/fake_server_invalidation_service.h
@@ -50,11 +50,19 @@ class FakeServerInvalidationService : public invalidation::InvalidationService,
base::Callback<void(const base::DictionaryValue&)> caller) const OVERRIDE;
virtual IdentityProvider* GetIdentityProvider() OVERRIDE;
+ // When true, this flag enables the sending of notifications to all clients,
+ // including the one responsible for the commit.
+ void SetSelfNotificationsEnabled(bool enabled);
pval...(no longer on Chromium) 2014/05/21 17:37:03 How about two methods: EnableSelfNotifications() a
rlarocque 2014/05/21 17:50:36 Yes, I was mainly concerned about the call site wh
pval...(no longer on Chromium) 2014/05/21 19:46:58 separate methods sgtm
+
// FakeServer::Observer:
- virtual void OnCommit(syncer::ModelTypeSet committed_model_types) OVERRIDE;
+ virtual void OnCommit(
+ const std::string& committer_id,
+ syncer::ModelTypeSet committed_model_types) OVERRIDE;
private:
std::string client_id_;
+ bool self_notify_;
+
syncer::InvalidatorRegistrar invalidator_registrar_;
FakeProfileOAuth2TokenService token_service_;
FakeIdentityProvider identity_provider_;
« no previous file with comments | « no previous file | chrome/browser/sync/test/integration/fake_server_invalidation_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698