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

Unified Diff: download_action_unittest.cc

Issue 3541016: AU: Optimize checkpointing a bit and decide on new update vs. resume. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/update_engine.git
Patch Set: fix copyrights Created 10 years, 2 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
« no previous file with comments | « delta_performer.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 3e8aabd0114451bfe1ebd314d430bd9ed70e05b0..7571fb4e70a08826f8f55a84f24a3f18a537e65b 100644
--- a/download_action_unittest.cc
+++ b/download_action_unittest.cc
@@ -102,6 +102,7 @@ void TestWithData(const vector<char>& data,
OmahaHashCalculator::OmahaHashOfData(data);
uint64_t size = data.size() + (size_test ? 1 : 0);
InstallPlan install_plan(true,
+ false,
"",
size,
hash,
@@ -227,7 +228,7 @@ void TestTerminateEarly(bool use_download_delegate) {
// takes ownership of passed in HttpFetcher
ObjectFeederAction<InstallPlan> feeder_action;
- InstallPlan install_plan(true, "", 0, "", temp_file.GetPath(), "");
+ InstallPlan install_plan(true, false, "", 0, "", temp_file.GetPath(), "");
feeder_action.set_obj(install_plan);
PrefsMock prefs;
DownloadAction download_action(&prefs,
@@ -326,6 +327,7 @@ TEST(DownloadActionTest, PassObjectOutTest) {
// takes ownership of passed in HttpFetcher
InstallPlan install_plan(true,
+ false,
"",
1,
OmahaHashCalculator::OmahaHashOfString("x"),
@@ -364,7 +366,7 @@ TEST(DownloadActionTest, BadOutFileTest) {
DirectFileWriter writer;
// takes ownership of passed in HttpFetcher
- InstallPlan install_plan(true, "", 0, "", path, "");
+ InstallPlan install_plan(true, false, "", 0, "", path, "");
ObjectFeederAction<InstallPlan> feeder_action;
feeder_action.set_obj(install_plan);
PrefsMock prefs;
« no previous file with comments | « delta_performer.cc ('k') | filesystem_copier_action_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698