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/update_client/test_configurator.h" | 5 #include "components/update_client/test_configurator.h" |
6 | 6 |
| 7 #include "base/sequenced_task_runner.h" |
| 8 #include "base/single_thread_task_runner.h" |
7 #include "base/version.h" | 9 #include "base/version.h" |
8 #include "components/prefs/pref_service.h" | 10 #include "components/prefs/pref_service.h" |
9 #include "components/update_client/component_patcher_operation.h" | 11 #include "components/update_client/component_patcher_operation.h" |
| 12 #include "net/url_request/url_request_test_util.h" |
10 #include "url/gurl.h" | 13 #include "url/gurl.h" |
11 | 14 |
12 namespace update_client { | 15 namespace update_client { |
13 | 16 |
14 namespace { | 17 namespace { |
15 | 18 |
16 std::vector<GURL> MakeDefaultUrls() { | 19 std::vector<GURL> MakeDefaultUrls() { |
17 std::vector<GURL> urls; | 20 std::vector<GURL> urls; |
18 urls.push_back(GURL(POST_INTERCEPT_SCHEME | 21 urls.push_back(GURL(POST_INTERCEPT_SCHEME |
19 "://" POST_INTERCEPT_HOSTNAME POST_INTERCEPT_PATH)); | 22 "://" POST_INTERCEPT_HOSTNAME POST_INTERCEPT_PATH)); |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 TestConfigurator::GetSequencedTaskRunner() const { | 169 TestConfigurator::GetSequencedTaskRunner() const { |
167 DCHECK(worker_task_runner_.get()); | 170 DCHECK(worker_task_runner_.get()); |
168 return worker_task_runner_; | 171 return worker_task_runner_; |
169 } | 172 } |
170 | 173 |
171 PrefService* TestConfigurator::GetPrefService() const { | 174 PrefService* TestConfigurator::GetPrefService() const { |
172 return nullptr; | 175 return nullptr; |
173 } | 176 } |
174 | 177 |
175 } // namespace update_client | 178 } // namespace update_client |
OLD | NEW |