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

Unified Diff: src/platform/update_engine/download_action_unittest.cc

Issue 2037002: AU: DBus support. (Closed) Base URL: ssh://git@chromiumos-git/chromeos
Patch Set: fixes for review Created 10 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: src/platform/update_engine/download_action_unittest.cc
diff --git a/src/platform/update_engine/download_action_unittest.cc b/src/platform/update_engine/download_action_unittest.cc
index 63535843f624773a3ed0740736e8addc35735109..3b04eaedbee64042b4ebebbff66d23890eee8921 100644
--- a/src/platform/update_engine/download_action_unittest.cc
+++ b/src/platform/update_engine/download_action_unittest.cc
@@ -75,6 +75,7 @@ void TestWithData(const vector<char>& data) {
// takes ownership of passed in HttpFetcher
InstallPlan install_plan(true,
"",
+ 0,
OmahaHashCalculator::OmahaHashOfData(data),
output_temp_file.GetPath(),
"");
@@ -152,7 +153,7 @@ TEST(DownloadActionTest, TerminateEarlyTest) {
// takes ownership of passed in HttpFetcher
ObjectFeederAction<InstallPlan> feeder_action;
- InstallPlan install_plan(true, "", "", temp_file.GetPath(), "");
+ InstallPlan install_plan(true, "", 0, "", temp_file.GetPath(), "");
feeder_action.set_obj(install_plan);
DownloadAction download_action(new MockHttpFetcher(&data[0], data.size()));
download_action.SetTestFileWriter(&writer);
@@ -233,6 +234,7 @@ TEST(DownloadActionTest, PassObjectOutTest) {
// takes ownership of passed in HttpFetcher
InstallPlan install_plan(true,
"",
+ 0,
OmahaHashCalculator::OmahaHashOfString("x"),
"/dev/null",
"/dev/null");
@@ -268,7 +270,7 @@ TEST(DownloadActionTest, BadOutFileTest) {
DirectFileWriter writer;
// takes ownership of passed in HttpFetcher
- InstallPlan install_plan(true, "", "", path, "");
+ InstallPlan install_plan(true, "", 0, "", path, "");
ObjectFeederAction<InstallPlan> feeder_action;
feeder_action.set_obj(install_plan);
DownloadAction download_action(new MockHttpFetcher("x", 1));

Powered by Google App Engine
This is Rietveld 408576698