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

Side by Side Diff: components/invalidation/p2p_invalidator_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 "sync/notifier/p2p_invalidator.h" 5 #include "components/invalidation/p2p_invalidator.h"
6 6
7 #include <cstddef> 7 #include <cstddef>
8 8
9 #include "components/invalidation/fake_invalidation_handler.h"
10 #include "components/invalidation/invalidator_test_template.h"
11 #include "components/invalidation/notifier_reason_util.h"
9 #include "jingle/notifier/listener/fake_push_client.h" 12 #include "jingle/notifier/listener/fake_push_client.h"
13 #include "sync/internal_api/public/base/invalidator_state.h"
10 #include "sync/internal_api/public/base/model_type.h" 14 #include "sync/internal_api/public/base/model_type.h"
11 #include "sync/notifier/fake_invalidation_handler.h"
12 #include "sync/notifier/invalidator_test_template.h"
13 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
14 16
15 namespace syncer { 17 namespace syncer {
16 18
17 namespace { 19 namespace {
18 20
19 class P2PInvalidatorTestDelegate { 21 class P2PInvalidatorTestDelegate {
20 public: 22 public:
21 P2PInvalidatorTestDelegate() : fake_push_client_(NULL) {} 23 P2PInvalidatorTestDelegate() : fake_push_client_(NULL) {}
22 24
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 EXPECT_EQ(5, fake_handler_.GetInvalidationCount()); 348 EXPECT_EQ(5, fake_handler_.GetInvalidationCount());
347 } 349 }
348 350
349 INSTANTIATE_TYPED_TEST_CASE_P( 351 INSTANTIATE_TYPED_TEST_CASE_P(
350 P2PInvalidatorTest, InvalidatorTest, 352 P2PInvalidatorTest, InvalidatorTest,
351 P2PInvalidatorTestDelegate); 353 P2PInvalidatorTestDelegate);
352 354
353 } // namespace 355 } // namespace
354 356
355 } // namespace syncer 357 } // namespace syncer
OLDNEW
« no previous file with comments | « components/invalidation/p2p_invalidator.cc ('k') | components/invalidation/push_client_channel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698