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

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

Issue 492008: AU: Try delta updates first, then full updates (Closed)
Patch Set: use mkstemp Created 11 years 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/omaha_response_handler_action_unittest.cc
diff --git a/src/platform/update_engine/omaha_response_handler_action_unittest.cc b/src/platform/update_engine/omaha_response_handler_action_unittest.cc
index 0248daf9d3c840575e5e907c18473648da34caad..a76838a0db9a7f7d322fadf4cda85ea1482c25f8 100644
--- a/src/platform/update_engine/omaha_response_handler_action_unittest.cc
+++ b/src/platform/update_engine/omaha_response_handler_action_unittest.cc
@@ -93,7 +93,8 @@ TEST_F(OmahaResponseHandlerActionTest, SimpleTest) {
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(utils::kStatefulPartition + "/the_update_a.b.c.d_FULL_.tgz",
+ EXPECT_EQ(string(utils::kStatefulPartition) +
+ "/the_update_a.b.c.d_FULL_.tgz",
install_plan.download_path);
EXPECT_EQ("/dev/sda2", install_plan.install_path);
}
@@ -112,7 +113,8 @@ TEST_F(OmahaResponseHandlerActionTest, SimpleTest) {
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(utils::kStatefulPartition + "/the_update_a.b.c.d_DELTA_.tgz",
+ EXPECT_EQ(string(utils::kStatefulPartition) +
+ "/the_update_a.b.c.d_DELTA_.tgz",
install_plan.download_path);
EXPECT_EQ("/dev/sda3", install_plan.install_path);
}
@@ -131,7 +133,8 @@ TEST_F(OmahaResponseHandlerActionTest, SimpleTest) {
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(utils::kStatefulPartition + "/" + kLongName.substr(0, 255),
+ EXPECT_EQ(string(utils::kStatefulPartition) + "/" +
+ kLongName.substr(0, 255),
install_plan.download_path);
EXPECT_EQ("/dev/sda3", install_plan.install_path);
}
« no previous file with comments | « src/platform/update_engine/omaha_response_handler_action.cc ('k') | src/platform/update_engine/postinstall_runner_action.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698