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

Side by Side Diff: components/invalidation/impl/non_blocking_invalidator_unittest.cc

Issue 1191393008: Introduce a layering in the invalidation component as public and impl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Explicitly forbid content to prevent future additions Created 5 years, 5 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "components/invalidation/non_blocking_invalidator.h" 5 #include "components/invalidation/impl/non_blocking_invalidator.h"
6 6
7 #include "base/bind_helpers.h" 7 #include "base/bind_helpers.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.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 "components/invalidation/fake_invalidation_handler.h" 13 #include "components/invalidation/impl/fake_invalidation_handler.h"
14 #include "components/invalidation/invalidation_state_tracker.h" 14 #include "components/invalidation/impl/invalidation_state_tracker.h"
15 #include "components/invalidation/invalidator_test_template.h" 15 #include "components/invalidation/impl/invalidator_test_template.h"
16 #include "google/cacheinvalidation/types.pb.h" 16 #include "google/cacheinvalidation/types.pb.h"
17 #include "jingle/notifier/base/fake_base_task.h" 17 #include "jingle/notifier/base/fake_base_task.h"
18 #include "net/url_request/url_request_test_util.h" 18 #include "net/url_request/url_request_test_util.h"
19 #include "testing/gtest/include/gtest/gtest.h" 19 #include "testing/gtest/include/gtest/gtest.h"
20 20
21 namespace syncer { 21 namespace syncer {
22 22
23 class NonBlockingInvalidatorTestDelegate { 23 class NonBlockingInvalidatorTestDelegate {
24 public: 24 public:
25 NonBlockingInvalidatorTestDelegate() : io_thread_("IO thread") {} 25 NonBlockingInvalidatorTestDelegate() : io_thread_("IO thread") {}
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 base::Thread io_thread_; 86 base::Thread io_thread_;
87 scoped_refptr<net::URLRequestContextGetter> request_context_getter_; 87 scoped_refptr<net::URLRequestContextGetter> request_context_getter_;
88 scoped_ptr<NonBlockingInvalidator> invalidator_; 88 scoped_ptr<NonBlockingInvalidator> invalidator_;
89 }; 89 };
90 90
91 INSTANTIATE_TYPED_TEST_CASE_P( 91 INSTANTIATE_TYPED_TEST_CASE_P(
92 NonBlockingInvalidatorTest, InvalidatorTest, 92 NonBlockingInvalidatorTest, InvalidatorTest,
93 NonBlockingInvalidatorTestDelegate); 93 NonBlockingInvalidatorTestDelegate);
94 94
95 } // namespace syncer 95 } // namespace syncer
OLDNEW
« no previous file with comments | « components/invalidation/impl/non_blocking_invalidator.cc ('k') | components/invalidation/impl/notifier_reason_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698