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

Side by Side Diff: chrome/browser/invalidation/fake_invalidation_service.h

Issue 1146533005: [Sync] InvalidationService shouldn't CHECK when registering ObjectId for more than one handler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments from Bartosz. Created 5 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_INVALIDATION_FAKE_INVALIDATION_SERVICE_H_ 5 #ifndef CHROME_BROWSER_INVALIDATION_FAKE_INVALIDATION_SERVICE_H_
6 #define CHROME_BROWSER_INVALIDATION_FAKE_INVALIDATION_SERVICE_H_ 6 #define CHROME_BROWSER_INVALIDATION_FAKE_INVALIDATION_SERVICE_H_
7 7
8 #include <list> 8 #include <list>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 15 matching lines...) Expand all
26 26
27 // An InvalidationService that emits invalidations only when 27 // An InvalidationService that emits invalidations only when
28 // its EmitInvalidationForTest method is called. 28 // its EmitInvalidationForTest method is called.
29 class FakeInvalidationService : public InvalidationService { 29 class FakeInvalidationService : public InvalidationService {
30 public: 30 public:
31 FakeInvalidationService(); 31 FakeInvalidationService();
32 ~FakeInvalidationService() override; 32 ~FakeInvalidationService() override;
33 33
34 void RegisterInvalidationHandler( 34 void RegisterInvalidationHandler(
35 syncer::InvalidationHandler* handler) override; 35 syncer::InvalidationHandler* handler) override;
36 void UpdateRegisteredInvalidationIds(syncer::InvalidationHandler* handler, 36 bool UpdateRegisteredInvalidationIds(syncer::InvalidationHandler* handler,
37 const syncer::ObjectIdSet& ids) override; 37 const syncer::ObjectIdSet& ids) override;
38 void UnregisterInvalidationHandler( 38 void UnregisterInvalidationHandler(
39 syncer::InvalidationHandler* handler) override; 39 syncer::InvalidationHandler* handler) override;
40 40
41 syncer::InvalidatorState GetInvalidatorState() const override; 41 syncer::InvalidatorState GetInvalidatorState() const override;
42 std::string GetInvalidatorClientId() const override; 42 std::string GetInvalidatorClientId() const override;
43 InvalidationLogger* GetInvalidationLogger() override; 43 InvalidationLogger* GetInvalidationLogger() override;
44 void RequestDetailedStatus( 44 void RequestDetailedStatus(
45 base::Callback<void(const base::DictionaryValue&)> caller) const override; 45 base::Callback<void(const base::DictionaryValue&)> caller) const override;
46 IdentityProvider* GetIdentityProvider() override; 46 IdentityProvider* GetIdentityProvider() override;
(...skipping 16 matching lines...) Expand all
63 syncer::MockAckHandler mock_ack_handler_; 63 syncer::MockAckHandler mock_ack_handler_;
64 FakeProfileOAuth2TokenService token_service_; 64 FakeProfileOAuth2TokenService token_service_;
65 FakeIdentityProvider identity_provider_; 65 FakeIdentityProvider identity_provider_;
66 66
67 DISALLOW_COPY_AND_ASSIGN(FakeInvalidationService); 67 DISALLOW_COPY_AND_ASSIGN(FakeInvalidationService);
68 }; 68 };
69 69
70 } // namespace invalidation 70 } // namespace invalidation
71 71
72 #endif // CHROME_BROWSER_INVALIDATION_FAKE_INVALIDATION_SERVICE_H_ 72 #endif // CHROME_BROWSER_INVALIDATION_FAKE_INVALIDATION_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/drive/drive_notification_manager.cc ('k') | chrome/browser/invalidation/fake_invalidation_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698