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

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
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/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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698