| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |