AU: Minor fixes to get it to do full update on real device
- Link w/ gtest only for unittests.
- filesystem_copier_action: always send install plan on the output pipe
on success, even if no copy was performed.
- omaha_response_handler: properly choose install partition based on
new GPT partition spec.
- More useful logging to match memento_updater (which update URL is
used, dump of the request/response for the update check).
- Fixed a bug where I wasn't bonding the proper actions together in update_attempter.
BUG=None
TEST=attached unittests/did full update on Eee PC
Review URL: http://codereview.chromium.org/2044001
diff --git a/omaha_response_handler_action_unittest.cc b/omaha_response_handler_action_unittest.cc
index 4464332..e997ea9 100644
--- a/omaha_response_handler_action_unittest.cc
+++ b/omaha_response_handler_action_unittest.cc
@@ -89,11 +89,11 @@
in.needs_admin = true;
in.prompt = false;
InstallPlan install_plan;
- EXPECT_TRUE(DoTest(in, "/dev/sda1", &install_plan));
+ EXPECT_TRUE(DoTest(in, "/dev/sda3", &install_plan));
EXPECT_TRUE(install_plan.is_full_update);
EXPECT_EQ(in.codebase, install_plan.download_url);
EXPECT_EQ(in.hash, install_plan.download_hash);
- EXPECT_EQ("/dev/sda2", install_plan.install_path);
+ EXPECT_EQ("/dev/sda5", install_plan.install_path);
}
{
UpdateCheckResponse in;
@@ -106,7 +106,7 @@
in.needs_admin = true;
in.prompt = true;
InstallPlan install_plan;
- EXPECT_TRUE(DoTest(in, "/dev/sda4", &install_plan));
+ EXPECT_TRUE(DoTest(in, "/dev/sda5", &install_plan));
EXPECT_FALSE(install_plan.is_full_update);
EXPECT_EQ(in.codebase, install_plan.download_url);
EXPECT_EQ(in.hash, install_plan.download_hash);
@@ -123,11 +123,11 @@
in.needs_admin = true;
in.prompt = true;
InstallPlan install_plan;
- EXPECT_TRUE(DoTest(in, "/dev/sda4", &install_plan));
+ EXPECT_TRUE(DoTest(in, "/dev/sda3", &install_plan));
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);
+ EXPECT_EQ("/dev/sda5", install_plan.install_path);
}
}