OLD | NEW |
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/impl/non_blocking_invalidator.h" | 5 #include "components/invalidation/impl/non_blocking_invalidator.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 | 8 |
9 #include "base/bind_helpers.h" | 9 #include "base/bind_helpers.h" |
10 #include "base/location.h" | 10 #include "base/location.h" |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 12 #include "base/message_loop/message_loop.h" |
12 #include "base/run_loop.h" | 13 #include "base/run_loop.h" |
13 #include "base/threading/thread.h" | 14 #include "base/threading/thread.h" |
14 #include "components/invalidation/impl/fake_invalidation_handler.h" | 15 #include "components/invalidation/impl/fake_invalidation_handler.h" |
15 #include "components/invalidation/impl/invalidation_state_tracker.h" | 16 #include "components/invalidation/impl/invalidation_state_tracker.h" |
16 #include "components/invalidation/impl/invalidator_test_template.h" | 17 #include "components/invalidation/impl/invalidator_test_template.h" |
17 #include "google/cacheinvalidation/types.pb.h" | 18 #include "google/cacheinvalidation/types.pb.h" |
18 #include "jingle/notifier/base/fake_base_task.h" | 19 #include "jingle/notifier/base/fake_base_task.h" |
19 #include "net/url_request/url_request_test_util.h" | 20 #include "net/url_request/url_request_test_util.h" |
20 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
21 | 22 |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 base::Thread io_thread_; | 88 base::Thread io_thread_; |
88 scoped_refptr<net::URLRequestContextGetter> request_context_getter_; | 89 scoped_refptr<net::URLRequestContextGetter> request_context_getter_; |
89 std::unique_ptr<NonBlockingInvalidator> invalidator_; | 90 std::unique_ptr<NonBlockingInvalidator> invalidator_; |
90 }; | 91 }; |
91 | 92 |
92 INSTANTIATE_TYPED_TEST_CASE_P( | 93 INSTANTIATE_TYPED_TEST_CASE_P( |
93 NonBlockingInvalidatorTest, InvalidatorTest, | 94 NonBlockingInvalidatorTest, InvalidatorTest, |
94 NonBlockingInvalidatorTestDelegate); | 95 NonBlockingInvalidatorTestDelegate); |
95 | 96 |
96 } // namespace syncer | 97 } // namespace syncer |
OLD | NEW |