OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_INVALIDATION_FAKE_INVALIDATOR_H_ | 5 #ifndef COMPONENTS_INVALIDATION_IMPL_FAKE_INVALIDATOR_H_ |
6 #define COMPONENTS_INVALIDATION_FAKE_INVALIDATOR_H_ | 6 #define COMPONENTS_INVALIDATION_IMPL_FAKE_INVALIDATOR_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "components/invalidation/invalidation_util.h" | 12 #include "components/invalidation/impl/invalidator.h" |
13 #include "components/invalidation/invalidator.h" | 13 #include "components/invalidation/impl/invalidator_registrar.h" |
14 #include "components/invalidation/invalidator_registrar.h" | 14 #include "components/invalidation/public/invalidation_util.h" |
15 | 15 |
16 namespace syncer { | 16 namespace syncer { |
17 | 17 |
18 class FakeInvalidator : public Invalidator { | 18 class FakeInvalidator : public Invalidator { |
19 public: | 19 public: |
20 FakeInvalidator(); | 20 FakeInvalidator(); |
21 ~FakeInvalidator() override; | 21 ~FakeInvalidator() override; |
22 | 22 |
23 bool IsHandlerRegistered(InvalidationHandler* handler) const; | 23 bool IsHandlerRegistered(InvalidationHandler* handler) const; |
24 ObjectIdSet GetRegisteredIds(InvalidationHandler* handler) const; | 24 ObjectIdSet GetRegisteredIds(InvalidationHandler* handler) const; |
(...skipping 17 matching lines...) Expand all Loading... |
42 | 42 |
43 private: | 43 private: |
44 InvalidatorRegistrar registrar_; | 44 InvalidatorRegistrar registrar_; |
45 std::string state_; | 45 std::string state_; |
46 std::string email_; | 46 std::string email_; |
47 std::string token_; | 47 std::string token_; |
48 }; | 48 }; |
49 | 49 |
50 } // namespace syncer | 50 } // namespace syncer |
51 | 51 |
52 #endif // COMPONENTS_INVALIDATION_FAKE_INVALIDATOR_H_ | 52 #endif // COMPONENTS_INVALIDATION_IMPL_FAKE_INVALIDATOR_H_ |
OLD | NEW |