Index: omaha_request_action_unittest.cc |
diff --git a/omaha_request_action_unittest.cc b/omaha_request_action_unittest.cc |
old mode 100644 |
new mode 100755 |
index 0e06439ad92e8d868091c5e0ace2ffd2a04bfc4e..1dc28bad572309e181dfbb160ec5610c9abdd978 |
--- a/omaha_request_action_unittest.cc |
+++ b/omaha_request_action_unittest.cc |
@@ -45,6 +45,7 @@ string GetUpdateResponse(const string& app_id, |
"appid=\"") + app_id + "\" status=\"ok\"><ping " |
"status=\"ok\"/><updatecheck DisplayVersion=\"" + display_version + "\" " |
"MoreInfo=\"" + more_info_url + "\" Prompt=\"" + prompt + "\" " |
+ "IsDelta=\"true\" " |
"codebase=\"" + codebase + "\" " |
"hash=\"" + hash + "\" needsadmin=\"" + needsadmin + "\" " |
"size=\"" + size + "\" status=\"ok\"/></app></gupdate>"; |
@@ -237,6 +238,7 @@ TEST(OmahaRequestActionTest, ValidUpdateTest) { |
EXPECT_EQ("1.2.3.4", response.display_version); |
EXPECT_EQ("http://code/base", response.codebase); |
EXPECT_EQ("http://more/info", response.more_info_url); |
+ EXPECT_TRUE(response.is_delta); |
EXPECT_EQ("HASH1234=", response.hash); |
EXPECT_EQ(123, response.size); |
EXPECT_FALSE(response.needs_admin); |
@@ -410,6 +412,7 @@ TEST(OmahaRequestActionTest, MissingFieldTest) { |
EXPECT_EQ("1.2.3.4", response.display_version); |
EXPECT_EQ("http://code/base", response.codebase); |
EXPECT_EQ("", response.more_info_url); |
+ EXPECT_FALSE(response.is_delta); |
EXPECT_EQ("HASH1234=", response.hash); |
EXPECT_EQ(123, response.size); |
EXPECT_TRUE(response.needs_admin); |