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

Side by Side Diff: sync/notifier/non_blocking_invalidator_unittest.cc

Issue 23441042: Refactor common invalidation framework types (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move DEPS rule Created 7 years, 2 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
« no previous file with comments | « sync/notifier/invalidator_test_template.h ('k') | sync/notifier/object_id_invalidation_map.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/non_blocking_invalidator.h" 5 #include "sync/notifier/non_blocking_invalidator.h"
6 6
7 #include "base/bind_helpers.h" 7 #include "base/bind_helpers.h"
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
11 #include "base/run_loop.h" 11 #include "base/run_loop.h"
12 #include "base/threading/thread.h" 12 #include "base/threading/thread.h"
13 #include "google/cacheinvalidation/types.pb.h" 13 #include "google/cacheinvalidation/types.pb.h"
14 #include "jingle/notifier/base/fake_base_task.h" 14 #include "jingle/notifier/base/fake_base_task.h"
15 #include "net/url_request/url_request_test_util.h" 15 #include "net/url_request/url_request_test_util.h"
16 #include "sync/internal_api/public/util/weak_handle.h" 16 #include "sync/internal_api/public/util/weak_handle.h"
17 #include "sync/notifier/fake_invalidation_handler.h" 17 #include "sync/notifier/fake_invalidation_handler.h"
18 #include "sync/notifier/invalidation_state_tracker.h" 18 #include "sync/notifier/invalidation_state_tracker.h"
19 #include "sync/notifier/invalidator_test_template.h" 19 #include "sync/notifier/invalidator_test_template.h"
20 #include "sync/notifier/object_id_invalidation_map_test_util.h"
21 #include "testing/gtest/include/gtest/gtest.h" 20 #include "testing/gtest/include/gtest/gtest.h"
22 21
23 namespace syncer { 22 namespace syncer {
24 23
25 namespace { 24 namespace {
26 25
27 class NonBlockingInvalidatorTestDelegate { 26 class NonBlockingInvalidatorTestDelegate {
28 public: 27 public:
29 NonBlockingInvalidatorTestDelegate() : io_thread_("IO thread") {} 28 NonBlockingInvalidatorTestDelegate() : io_thread_("IO thread") {}
30 29
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 scoped_ptr<NonBlockingInvalidator> invalidator_; 91 scoped_ptr<NonBlockingInvalidator> invalidator_;
93 }; 92 };
94 93
95 INSTANTIATE_TYPED_TEST_CASE_P( 94 INSTANTIATE_TYPED_TEST_CASE_P(
96 NonBlockingInvalidatorTest, InvalidatorTest, 95 NonBlockingInvalidatorTest, InvalidatorTest,
97 NonBlockingInvalidatorTestDelegate); 96 NonBlockingInvalidatorTestDelegate);
98 97
99 } // namespace 98 } // namespace
100 99
101 } // namespace syncer 100 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/notifier/invalidator_test_template.h ('k') | sync/notifier/object_id_invalidation_map.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698