| 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" |
| 11 #include "sync/notifier/invalidator_test_template.h" | 11 #include "sync/notifier/invalidator_test_template.h" |
| 12 #include "sync/notifier/object_id_invalidation_map_test_util.h" | |
| 13 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
| 14 | 13 |
| 15 namespace syncer { | 14 namespace syncer { |
| 16 | 15 |
| 17 namespace { | 16 namespace { |
| 18 | 17 |
| 19 // We test InvalidatorRegistrar by wrapping it in an Invalidator and | 18 // We test InvalidatorRegistrar by wrapping it in an Invalidator and |
| 20 // running the usual Invalidator tests. | 19 // running the usual Invalidator tests. |
| 21 | 20 |
| 22 // Thin Invalidator wrapper around InvalidatorRegistrar. | 21 // Thin Invalidator wrapper around InvalidatorRegistrar. |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 EXPECT_DEATH({ registrar.UpdateRegisteredIds(&handler2, ids); }, ""); | 154 EXPECT_DEATH({ registrar.UpdateRegisteredIds(&handler2, ids); }, ""); |
| 156 | 155 |
| 157 registrar.UnregisterHandler(&handler2); | 156 registrar.UnregisterHandler(&handler2); |
| 158 registrar.UnregisterHandler(&handler1); | 157 registrar.UnregisterHandler(&handler1); |
| 159 } | 158 } |
| 160 #endif // GTEST_HAS_DEATH_TEST | 159 #endif // GTEST_HAS_DEATH_TEST |
| 161 | 160 |
| 162 } // namespace | 161 } // namespace |
| 163 | 162 |
| 164 } // namespace syncer | 163 } // namespace syncer |
| OLD | NEW |