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

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

Issue 25909005: Use UtilityProcessHost to patch files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@nonblocking
Patch Set: sorin@ review + rebase to LKGR r253860 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
115 bool TestConfigurator::DeltasEnabled() const { 111 bool TestConfigurator::DeltasEnabled() const {
116 return true; 112 return true;
117 } 113 }
118 114
119 bool TestConfigurator::UseBackgroundDownloader() const { 115 bool TestConfigurator::UseBackgroundDownloader() const {
120 return false; 116 return false;
121 } 117 }
122 118
123 // Set how many update checks are called, the default value is just once. 119 // Set how many update checks are called, the default value is just once.
124 void TestConfigurator::SetLoopCount(int times) { times_ = times; } 120 void TestConfigurator::SetLoopCount(int times) { times_ = times; }
(...skipping 1278 matching lines...) Expand 10 before | Expand all | Expand 10 after
1403 EXPECT_EQ(1, post_interceptor_->GetHitCount()); 1399 EXPECT_EQ(1, post_interceptor_->GetHitCount());
1404 EXPECT_EQ(0, static_cast<TestInstaller*>(com.installer)->error()); 1400 EXPECT_EQ(0, static_cast<TestInstaller*>(com.installer)->error());
1405 EXPECT_EQ(0, static_cast<TestInstaller*>(com.installer)->install_count()); 1401 EXPECT_EQ(0, static_cast<TestInstaller*>(com.installer)->install_count());
1406 1402
1407 component_updater()->Stop(); 1403 component_updater()->Stop();
1408 } 1404 }
1409 1405
1410 1406
1411 } // namespace component_updater 1407 } // namespace component_updater
1412 1408
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698