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

Unified Diff: omaha_response_handler_action_unittest.cc

Issue 2805027: AU: Changes for deltas on traditional bios machines. (Closed) Base URL: ssh://git@chromiumos-git/update_engine.git
Patch Set: fixes for review and merging in petkov's recent changes Created 10 years, 5 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 | « omaha_response_handler_action.cc ('k') | postinstall_runner_action.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: omaha_response_handler_action_unittest.cc
diff --git a/omaha_response_handler_action_unittest.cc b/omaha_response_handler_action_unittest.cc
index 489d5e76bb6d7228bd16aabfd9b6804a38af308d..f751bbe95f877c15094495b0cef534e0e4faa404 100644
--- a/omaha_response_handler_action_unittest.cc
+++ b/omaha_response_handler_action_unittest.cc
@@ -88,6 +88,7 @@ TEST_F(OmahaResponseHandlerActionTest, SimpleTest) {
in.size = 12;
in.needs_admin = true;
in.prompt = false;
+ in.is_delta = false;
InstallPlan install_plan;
EXPECT_TRUE(DoTest(in, "/dev/sda3", &install_plan));
EXPECT_TRUE(install_plan.is_full_update);
@@ -105,9 +106,10 @@ TEST_F(OmahaResponseHandlerActionTest, SimpleTest) {
in.size = 12;
in.needs_admin = true;
in.prompt = true;
+ in.is_delta = true;
InstallPlan install_plan;
EXPECT_TRUE(DoTest(in, "/dev/sda5", &install_plan));
- EXPECT_TRUE(install_plan.is_full_update);
+ EXPECT_FALSE(install_plan.is_full_update);
EXPECT_EQ(in.codebase, install_plan.download_url);
EXPECT_EQ(in.hash, install_plan.download_hash);
EXPECT_EQ("/dev/sda3", install_plan.install_path);
@@ -122,6 +124,7 @@ TEST_F(OmahaResponseHandlerActionTest, SimpleTest) {
in.size = 12;
in.needs_admin = true;
in.prompt = true;
+ in.is_delta = false;
InstallPlan install_plan;
EXPECT_TRUE(DoTest(in, "/dev/sda3", &install_plan));
EXPECT_TRUE(install_plan.is_full_update);
« no previous file with comments | « omaha_response_handler_action.cc ('k') | postinstall_runner_action.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698