Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(371)

Side by Side Diff: chrome/browser/component_updater/test/test_configurator.cc

Issue 420503002: Componentize component_updater: Decouple in-process DeltaUpdateOp from out-of-process version. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/component_updater/test/test_configurator.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 scoped_refptr<OutOfProcessPatcher> TestConfigurator::CreateOutOfProcessPatcher()
100 bool TestConfigurator::InProcess() const { 101 const {
101 return true; 102 return NULL;
102 } 103 }
103 104
104 bool TestConfigurator::DeltasEnabled() const { 105 bool TestConfigurator::DeltasEnabled() const {
105 return true; 106 return true;
106 } 107 }
107 108
108 bool TestConfigurator::UseBackgroundDownloader() const { 109 bool TestConfigurator::UseBackgroundDownloader() const {
109 return false; 110 return false;
110 } 111 }
111 112
(...skipping 26 matching lines...) Expand all
138 base::SequencedWorkerPool::SKIP_ON_SHUTDOWN); 139 base::SequencedWorkerPool::SKIP_ON_SHUTDOWN);
139 } 140 }
140 141
141 scoped_refptr<base::SingleThreadTaskRunner> 142 scoped_refptr<base::SingleThreadTaskRunner>
142 TestConfigurator::GetSingleThreadTaskRunner() const { 143 TestConfigurator::GetSingleThreadTaskRunner() const {
143 return content::BrowserThread::GetMessageLoopProxyForThread( 144 return content::BrowserThread::GetMessageLoopProxyForThread(
144 content::BrowserThread::FILE); 145 content::BrowserThread::FILE);
145 } 146 }
146 147
147 } // namespace component_updater 148 } // namespace component_updater
OLDNEW
« no previous file with comments | « chrome/browser/component_updater/test/test_configurator.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698