Lines Matching refs:cmd

206   std::vector<std::string> cmd;  in TEST()  local
207 ASSERT_EQ(0, SetUpNonAbUpdateCommands(package, zip, 0, status_fd, &cmd)); in TEST()
208 ASSERT_EQ(4U, cmd.size()); in TEST()
209 ASSERT_EQ(binary_path, cmd[0]); in TEST()
210 ASSERT_EQ("3", cmd[1]); // RECOVERY_API_VERSION in TEST()
211 ASSERT_EQ(std::to_string(status_fd), cmd[2]); in TEST()
212 ASSERT_EQ(package, cmd[3]); in TEST()
218 cmd.clear(); in TEST()
219 ASSERT_EQ(0, SetUpNonAbUpdateCommands(package, zip, 2, status_fd, &cmd)); in TEST()
220 ASSERT_EQ(5U, cmd.size()); in TEST()
221 ASSERT_EQ(binary_path, cmd[0]); in TEST()
222 ASSERT_EQ("3", cmd[1]); // RECOVERY_API_VERSION in TEST()
223 ASSERT_EQ(std::to_string(status_fd), cmd[2]); in TEST()
224 ASSERT_EQ(package, cmd[3]); in TEST()
225 ASSERT_EQ("retry", cmd[4]); in TEST()
245 std::vector<std::string> cmd; in TEST() local
246 ASSERT_EQ(INSTALL_CORRUPT, SetUpNonAbUpdateCommands(package, zip, 0, status_fd, &cmd)); in TEST()
284 std::vector<std::string> cmd; in VerifyAbUpdateCommands() local
285 ASSERT_EQ(0, SetUpAbUpdateCommands(package, zip, status_fd, &cmd)); in VerifyAbUpdateCommands()
286 ASSERT_EQ(5U, cmd.size()); in VerifyAbUpdateCommands()
287 ASSERT_EQ("/system/bin/update_engine_sideload", cmd[0]); in VerifyAbUpdateCommands()
288 ASSERT_EQ("--payload=file://" + package, cmd[1]); in VerifyAbUpdateCommands()
289 ASSERT_EQ("--offset=" + std::to_string(payload_entry.offset), cmd[2]); in VerifyAbUpdateCommands()
290 ASSERT_EQ("--headers=" + properties, cmd[3]); in VerifyAbUpdateCommands()
291 ASSERT_EQ("--status_fd=" + std::to_string(status_fd), cmd[4]); in VerifyAbUpdateCommands()
327 std::vector<std::string> cmd; in TEST() local
328 ASSERT_EQ(INSTALL_CORRUPT, SetUpAbUpdateCommands(package, zip, status_fd, &cmd)); in TEST()