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/component_updater/test/test_configurator.h" | 5 #include "components/update_client/test/test_configurator.h" |
6 | 6 |
7 #include "base/run_loop.h" | 7 #include "base/run_loop.h" |
8 #include "base/version.h" | 8 #include "base/version.h" |
9 #include "components/component_updater/component_patcher_operation.h" | 9 #include "components/update_client/component_patcher_operation.h" |
10 #include "url/gurl.h" | 10 #include "url/gurl.h" |
11 | 11 |
12 namespace component_updater { | 12 namespace update_client { |
13 | 13 |
14 namespace { | 14 namespace { |
15 | 15 |
16 std::vector<GURL> MakeDefaultUrls() { | 16 std::vector<GURL> MakeDefaultUrls() { |
17 std::vector<GURL> urls; | 17 std::vector<GURL> urls; |
18 urls.push_back(GURL(POST_INTERCEPT_SCHEME | 18 urls.push_back(GURL(POST_INTERCEPT_SCHEME |
19 "://" POST_INTERCEPT_HOSTNAME POST_INTERCEPT_PATH)); | 19 "://" POST_INTERCEPT_HOSTNAME POST_INTERCEPT_PATH)); |
20 return urls; | 20 return urls; |
21 } | 21 } |
22 | 22 |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 DCHECK(worker_task_runner_.get()); | 144 DCHECK(worker_task_runner_.get()); |
145 return worker_task_runner_; | 145 return worker_task_runner_; |
146 } | 146 } |
147 | 147 |
148 scoped_refptr<base::SingleThreadTaskRunner> | 148 scoped_refptr<base::SingleThreadTaskRunner> |
149 TestConfigurator::GetSingleThreadTaskRunner() const { | 149 TestConfigurator::GetSingleThreadTaskRunner() const { |
150 // This is NULL because tests do not use the background downloader. | 150 // This is NULL because tests do not use the background downloader. |
151 return NULL; | 151 return NULL; |
152 } | 152 } |
153 | 153 |
154 } // namespace component_updater | 154 } // namespace update_client |
OLD | NEW |