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); |