| 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 | |
| 65 private: | 60 private: |
| 66 InvalidatorRegistrar registrar_; | 61 InvalidatorRegistrar registrar_; |
| 67 | 62 |
| 68 DISALLOW_COPY_AND_ASSIGN(RegistrarInvalidator); | 63 DISALLOW_COPY_AND_ASSIGN(RegistrarInvalidator); |
| 69 }; | 64 }; |
| 70 | 65 |
| 71 class RegistrarInvalidatorTestDelegate { | 66 class RegistrarInvalidatorTestDelegate { |
| 72 public: | 67 public: |
| 73 RegistrarInvalidatorTestDelegate() {} | 68 RegistrarInvalidatorTestDelegate() {} |
| 74 | 69 |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 EXPECT_DEATH({ registrar.UpdateRegisteredIds(&handler2, ids); }, ""); | 155 EXPECT_DEATH({ registrar.UpdateRegisteredIds(&handler2, ids); }, ""); |
| 161 | 156 |
| 162 registrar.UnregisterHandler(&handler2); | 157 registrar.UnregisterHandler(&handler2); |
| 163 registrar.UnregisterHandler(&handler1); | 158 registrar.UnregisterHandler(&handler1); |
| 164 } | 159 } |
| 165 #endif // GTEST_HAS_DEATH_TEST | 160 #endif // GTEST_HAS_DEATH_TEST |
| 166 | 161 |
| 167 } // namespace | 162 } // namespace |
| 168 | 163 |
| 169 } // namespace syncer | 164 } // namespace syncer |
| OLD | NEW |