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

Unified Diff: download_action_unittest.cc

Issue 5205002: AU: Manual proxy support (Closed) Base URL: http://git.chromium.org/git/update_engine.git@master
Patch Set: missed one fix for review Created 10 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome_proxy_resolver_unittest.cc ('k') | filesystem_copier_action_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: download_action_unittest.cc
diff --git a/download_action_unittest.cc b/download_action_unittest.cc
index 8135841a9011ba49bddb644f83ecf6a1a9d1f8ab..16c2507da6ffe27ec4664f4511bbbe18e1a3eaae 100644
--- a/download_action_unittest.cc
+++ b/download_action_unittest.cc
@@ -143,7 +143,9 @@ void TestWithData(const vector<char>& data,
ObjectFeederAction<InstallPlan> feeder_action;
feeder_action.set_obj(install_plan);
PrefsMock prefs;
- MockHttpFetcher* http_fetcher = new MockHttpFetcher(&data[0], data.size());
+ MockHttpFetcher* http_fetcher = new MockHttpFetcher(&data[0],
+ data.size(),
+ NULL);
// takes ownership of passed in HttpFetcher
DownloadAction download_action(&prefs, http_fetcher);
download_action.SetTestFileWriter(&writer);
@@ -289,7 +291,9 @@ void TestTerminateEarly(bool use_download_delegate) {
feeder_action.set_obj(install_plan);
PrefsMock prefs;
DownloadAction download_action(&prefs,
- new MockHttpFetcher(&data[0], data.size()));
+ new MockHttpFetcher(&data[0],
+ data.size(),
+ NULL));
download_action.SetTestFileWriter(&writer);
DownloadActionDelegateMock download_delegate;
if (use_download_delegate) {
@@ -393,7 +397,7 @@ TEST(DownloadActionTest, PassObjectOutTest) {
ObjectFeederAction<InstallPlan> feeder_action;
feeder_action.set_obj(install_plan);
PrefsMock prefs;
- DownloadAction download_action(&prefs, new MockHttpFetcher("x", 1));
+ DownloadAction download_action(&prefs, new MockHttpFetcher("x", 1, NULL));
download_action.SetTestFileWriter(&writer);
DownloadActionTestAction test_action;
@@ -427,7 +431,7 @@ TEST(DownloadActionTest, BadOutFileTest) {
ObjectFeederAction<InstallPlan> feeder_action;
feeder_action.set_obj(install_plan);
PrefsMock prefs;
- DownloadAction download_action(&prefs, new MockHttpFetcher("x", 1));
+ DownloadAction download_action(&prefs, new MockHttpFetcher("x", 1, NULL));
download_action.SetTestFileWriter(&writer);
BondActions(&feeder_action, &download_action);
« no previous file with comments | « chrome_proxy_resolver_unittest.cc ('k') | filesystem_copier_action_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698