OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "base/basictypes.h" | 5 #include "base/basictypes.h" |
6 #include "base/compiler_specific.h" | 6 #include "base/compiler_specific.h" |
7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
8 #include "google/cacheinvalidation/types.pb.h" | 8 #include "google/cacheinvalidation/types.pb.h" |
9 #include "sync/notifier/fake_invalidation_handler.h" | 9 #include "sync/notifier/fake_invalidation_handler.h" |
10 #include "sync/notifier/invalidator_registrar.h" | 10 #include "sync/notifier/invalidator_registrar.h" |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 | 50 |
51 virtual InvalidatorState GetInvalidatorState() const OVERRIDE { | 51 virtual InvalidatorState GetInvalidatorState() const OVERRIDE { |
52 return registrar_.GetInvalidatorState(); | 52 return registrar_.GetInvalidatorState(); |
53 } | 53 } |
54 | 54 |
55 virtual void UpdateCredentials( | 55 virtual void UpdateCredentials( |
56 const std::string& email, const std::string& token) OVERRIDE { | 56 const std::string& email, const std::string& token) OVERRIDE { |
57 // Do nothing. | 57 // Do nothing. |
58 } | 58 } |
59 | 59 |
| 60 virtual void SendInvalidation( |
| 61 const ObjectIdInvalidationMap& invalidation_map) OVERRIDE { |
| 62 // Do nothing. |
| 63 } |
| 64 |
60 private: | 65 private: |
61 InvalidatorRegistrar registrar_; | 66 InvalidatorRegistrar registrar_; |
62 | 67 |
63 DISALLOW_COPY_AND_ASSIGN(RegistrarInvalidator); | 68 DISALLOW_COPY_AND_ASSIGN(RegistrarInvalidator); |
64 }; | 69 }; |
65 | 70 |
66 class RegistrarInvalidatorTestDelegate { | 71 class RegistrarInvalidatorTestDelegate { |
67 public: | 72 public: |
68 RegistrarInvalidatorTestDelegate() {} | 73 RegistrarInvalidatorTestDelegate() {} |
69 | 74 |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 EXPECT_DEATH({ registrar.UpdateRegisteredIds(&handler2, ids); }, ""); | 160 EXPECT_DEATH({ registrar.UpdateRegisteredIds(&handler2, ids); }, ""); |
156 | 161 |
157 registrar.UnregisterHandler(&handler2); | 162 registrar.UnregisterHandler(&handler2); |
158 registrar.UnregisterHandler(&handler1); | 163 registrar.UnregisterHandler(&handler1); |
159 } | 164 } |
160 #endif // GTEST_HAS_DEATH_TEST | 165 #endif // GTEST_HAS_DEATH_TEST |
161 | 166 |
162 } // namespace | 167 } // namespace |
163 | 168 |
164 } // namespace syncer | 169 } // namespace syncer |
OLD | NEW |