AU: Send board (e.g. x86-generic) to update server in query.
BUG=None
TEST=Attached Unittests
Review URL: http://codereview.chromium.org/2827032
diff --git a/update_check_action_unittest.cc b/update_check_action_unittest.cc
index c730b40..e2e7410 100644
--- a/update_check_action_unittest.cc
+++ b/update_check_action_unittest.cc
@@ -159,6 +159,7 @@
UpdateCheckParams::kOsPlatform,
UpdateCheckParams::kOsVersion,
"", // os_sp
+ "x86-generic",
UpdateCheckParams::kAppId,
"0.1.0.0",
"en-US",
@@ -180,6 +181,7 @@
UpdateCheckParams::kOsPlatform,
UpdateCheckParams::kOsVersion,
"service_pack",
+ "arm-generic",
UpdateCheckParams::kAppId,
"0.1.0.0",
"en-US",
@@ -215,6 +217,7 @@
UpdateCheckParams::kOsPlatform,
UpdateCheckParams::kOsVersion,
"", // os_sp
+ "", // os_board
UpdateCheckParams::kAppId,
"0.1.0.0",
"en-US",
@@ -248,6 +251,7 @@
UpdateCheckParams::kOsPlatform,
UpdateCheckParams::kOsVersion,
"service_pack",
+ "x86-generic",
UpdateCheckParams::kAppId,
"0.1.0.0",
"en-US",
@@ -269,6 +273,7 @@
UpdateCheckParams::kOsPlatform,
UpdateCheckParams::kOsVersion,
"service_pack",
+ "x86-generic",
UpdateCheckParams::kAppId,
"0.1.0.0",
"en-US",
@@ -293,6 +298,7 @@
UpdateCheckParams::kOsPlatform,
UpdateCheckParams::kOsVersion,
"service_pack",
+ "x86-generic",
UpdateCheckParams::kAppId,
"0.1.0.0",
"en-US",
@@ -317,6 +323,7 @@
UpdateCheckParams::kOsPlatform,
UpdateCheckParams::kOsVersion,
"service_pack",
+ "x86-generic",
UpdateCheckParams::kAppId,
"0.1.0.0",
"en-US",
@@ -341,6 +348,7 @@
UpdateCheckParams::kOsPlatform,
UpdateCheckParams::kOsVersion,
"service_pack",
+ "x86-generic",
UpdateCheckParams::kAppId,
"0.1.0.0",
"en-US",
@@ -400,6 +408,7 @@
UpdateCheckParams::kOsPlatform,
UpdateCheckParams::kOsVersion,
"", // os_sp
+ "", // os_board
UpdateCheckParams::kAppId,
"0.1.0.0",
"en-US",
@@ -440,6 +449,7 @@
UpdateCheckParams::kOsPlatform,
UpdateCheckParams::kOsVersion,
"testtheservice_pack>",
+ "x86 generic",
UpdateCheckParams::kAppId,
"0.1.0.0",
"en-US",
@@ -460,6 +470,7 @@
EXPECT_EQ(post_str.find("testtheuser_id<"), string::npos);
EXPECT_NE(post_str.find("testtheservice_pack>"), string::npos);
EXPECT_EQ(post_str.find("testtheservice_pack>"), string::npos);
+ EXPECT_NE(post_str.find("x86 generic"), string::npos);
}
TEST(UpdateCheckActionTest, XmlDecodeTest) {
@@ -468,6 +479,7 @@
UpdateCheckParams::kOsPlatform,
UpdateCheckParams::kOsVersion,
"service_pack",
+ "x86-generic",
UpdateCheckParams::kAppId,
"0.1.0.0",
"en-US",
@@ -498,6 +510,7 @@
UpdateCheckParams::kOsPlatform,
UpdateCheckParams::kOsVersion,
"service_pack",
+ "the_board",
UpdateCheckParams::kAppId,
"0.1.0.0",
"en-US",