Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(122)

Side by Side Diff: components/invalidation/invalidator_registrar_unittest.cc

Issue 294123004: Move some sync/notifier to components/invalidation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « components/invalidation/invalidator_registrar.cc ('k') | components/invalidation/invalidator_test_template.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698