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

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

Issue 213923002: Revert of Use UtilityProcessHost to patch files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@nonblocking
Patch Set: Created 6 years, 9 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
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 "chrome/browser/component_updater/test/component_updater_service_unitte st.h" 5 #include "chrome/browser/component_updater/test/component_updater_service_unitte st.h"
6 #include "base/file_util.h" 6 #include "base/file_util.h"
7 #include "base/path_service.h" 7 #include "base/path_service.h"
8 #include "base/run_loop.h" 8 #include "base/run_loop.h"
9 #include "base/strings/string_number_conversions.h" 9 #include "base/strings/string_number_conversions.h"
10 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 101
102 size_t TestConfigurator::UrlSizeLimit() { return 256; } 102 size_t TestConfigurator::UrlSizeLimit() { return 256; }
103 103
104 net::URLRequestContextGetter* TestConfigurator::RequestContext() { 104 net::URLRequestContextGetter* TestConfigurator::RequestContext() {
105 return context_.get(); 105 return context_.get();
106 } 106 }
107 107
108 // Don't use the utility process to run code out-of-process. 108 // Don't use the utility process to run code out-of-process.
109 bool TestConfigurator::InProcess() { return true; } 109 bool TestConfigurator::InProcess() { return true; }
110 110
111 ComponentPatcher* TestConfigurator::CreateComponentPatcher() {
112 return new MockComponentPatcher();
113 }
114
111 bool TestConfigurator::DeltasEnabled() const { 115 bool TestConfigurator::DeltasEnabled() const {
112 return true; 116 return true;
113 } 117 }
114 118
115 bool TestConfigurator::UseBackgroundDownloader() const { 119 bool TestConfigurator::UseBackgroundDownloader() const {
116 return false; 120 return false;
117 } 121 }
118 122
119 // Set how many update checks are called, the default value is just once. 123 // Set how many update checks are called, the default value is just once.
120 void TestConfigurator::SetLoopCount(int times) { times_ = times; } 124 void TestConfigurator::SetLoopCount(int times) { times_ = times; }
(...skipping 1278 matching lines...) Expand 10 before | Expand all | Expand 10 after
1399 EXPECT_EQ(1, post_interceptor_->GetHitCount()); 1403 EXPECT_EQ(1, post_interceptor_->GetHitCount());
1400 EXPECT_EQ(0, static_cast<TestInstaller*>(com.installer)->error()); 1404 EXPECT_EQ(0, static_cast<TestInstaller*>(com.installer)->error());
1401 EXPECT_EQ(0, static_cast<TestInstaller*>(com.installer)->install_count()); 1405 EXPECT_EQ(0, static_cast<TestInstaller*>(com.installer)->install_count());
1402 1406
1403 component_updater()->Stop(); 1407 component_updater()->Stop();
1404 } 1408 }
1405 1409
1406 1410
1407 } // namespace component_updater 1411 } // namespace component_updater
1408 1412
OLDNEW
« no previous file with comments | « chrome/browser/component_updater/test/component_updater_service_unittest.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698