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/version.h" | 7 #include "base/version.h" |
8 #include "components/prefs/pref_service.h" | |
8 #include "components/update_client/component_patcher_operation.h" | 9 #include "components/update_client/component_patcher_operation.h" |
9 #include "url/gurl.h" | 10 #include "url/gurl.h" |
10 | 11 |
11 namespace update_client { | 12 namespace update_client { |
12 | 13 |
13 namespace { | 14 namespace { |
14 | 15 |
15 std::vector<GURL> MakeDefaultUrls() { | 16 std::vector<GURL> MakeDefaultUrls() { |
16 std::vector<GURL> urls; | 17 std::vector<GURL> urls; |
17 urls.push_back(GURL(POST_INTERCEPT_SCHEME | 18 urls.push_back(GURL(POST_INTERCEPT_SCHEME |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
146 void TestConfigurator::SetPingUrl(const GURL& url) { | 147 void TestConfigurator::SetPingUrl(const GURL& url) { |
147 ping_url_ = url; | 148 ping_url_ = url; |
148 } | 149 } |
149 | 150 |
150 scoped_refptr<base::SequencedTaskRunner> | 151 scoped_refptr<base::SequencedTaskRunner> |
151 TestConfigurator::GetSequencedTaskRunner() const { | 152 TestConfigurator::GetSequencedTaskRunner() const { |
152 DCHECK(worker_task_runner_.get()); | 153 DCHECK(worker_task_runner_.get()); |
153 return worker_task_runner_; | 154 return worker_task_runner_; |
154 } | 155 } |
155 | 156 |
157 PrefService* TestConfigurator::GetPrefService() const { | |
158 return NULL; | |
Bernhard Bauer
2016/04/08 09:06:10
nullptr 😃
waffles
2016/04/08 19:11:01
Done.
| |
159 } | |
160 | |
156 } // namespace update_client | 161 } // namespace update_client |
OLD | NEW |