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