| 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/component_patcher_operation.h" |
| 9 #include "chrome/browser/component_updater/test/test_configurator.h" | 10 #include "chrome/browser/component_updater/test/test_configurator.h" |
| 10 #include "content/public/browser/browser_thread.h" | 11 #include "content/public/browser/browser_thread.h" |
| 11 #include "url/gurl.h" | 12 #include "url/gurl.h" |
| 12 | 13 |
| 13 using content::BrowserThread; | 14 using content::BrowserThread; |
| 14 | 15 |
| 15 namespace component_updater { | 16 namespace component_updater { |
| 16 | 17 |
| 17 TestConfigurator::TestConfigurator() | 18 TestConfigurator::TestConfigurator() |
| 18 : initial_time_(0), | 19 : initial_time_(0), |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 } | 90 } |
| 90 | 91 |
| 91 size_t TestConfigurator::UrlSizeLimit() const { | 92 size_t TestConfigurator::UrlSizeLimit() const { |
| 92 return 256; | 93 return 256; |
| 93 } | 94 } |
| 94 | 95 |
| 95 net::URLRequestContextGetter* TestConfigurator::RequestContext() const { | 96 net::URLRequestContextGetter* TestConfigurator::RequestContext() const { |
| 96 return context_.get(); | 97 return context_.get(); |
| 97 } | 98 } |
| 98 | 99 |
| 99 // Don't use the utility process to run code out-of-process. | 100 DeltaUpdateOpFactory* TestConfigurator::CreateDeltaUpdateOpFactory() const { |
| 100 bool TestConfigurator::InProcess() const { | 101 return CreateInProcessDeltaUpdateOpFactory(); |
| 101 return true; | |
| 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 |