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 <string> | 5 #include <string> |
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 "chrome/browser/component_updater/test/test_configurator.h" | 9 #include "chrome/browser/component_updater/test/test_configurator.h" |
10 #include "content/public/browser/browser_thread.h" | 10 #include "content/public/browser/browser_thread.h" |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 } | 89 } |
90 | 90 |
91 size_t TestConfigurator::UrlSizeLimit() const { | 91 size_t TestConfigurator::UrlSizeLimit() const { |
92 return 256; | 92 return 256; |
93 } | 93 } |
94 | 94 |
95 net::URLRequestContextGetter* TestConfigurator::RequestContext() const { | 95 net::URLRequestContextGetter* TestConfigurator::RequestContext() const { |
96 return context_.get(); | 96 return context_.get(); |
97 } | 97 } |
98 | 98 |
99 // Don't use the utility process to run code out-of-process. | 99 scoped_refptr<OutOfProcessPatcher> TestConfigurator::CreateOutOfProcessPatcher() |
100 bool TestConfigurator::InProcess() const { | 100 const { |
101 return true; | 101 return NULL; |
102 } | 102 } |
103 | 103 |
104 bool TestConfigurator::DeltasEnabled() const { | 104 bool TestConfigurator::DeltasEnabled() const { |
105 return true; | 105 return true; |
106 } | 106 } |
107 | 107 |
108 bool TestConfigurator::UseBackgroundDownloader() const { | 108 bool TestConfigurator::UseBackgroundDownloader() const { |
109 return false; | 109 return false; |
110 } | 110 } |
111 | 111 |
(...skipping 26 matching lines...) Expand all Loading... |
138 base::SequencedWorkerPool::SKIP_ON_SHUTDOWN); | 138 base::SequencedWorkerPool::SKIP_ON_SHUTDOWN); |
139 } | 139 } |
140 | 140 |
141 scoped_refptr<base::SingleThreadTaskRunner> | 141 scoped_refptr<base::SingleThreadTaskRunner> |
142 TestConfigurator::GetSingleThreadTaskRunner() const { | 142 TestConfigurator::GetSingleThreadTaskRunner() const { |
143 return content::BrowserThread::GetMessageLoopProxyForThread( | 143 return content::BrowserThread::GetMessageLoopProxyForThread( |
144 content::BrowserThread::FILE); | 144 content::BrowserThread::FILE); |
145 } | 145 } |
146 | 146 |
147 } // namespace component_updater | 147 } // namespace component_updater |
OLD | NEW |