Lines Matching refs:cmd
126 std::vector<std::string> cmd; in TEST() local
127 ASSERT_TRUE(SetUpNonAbUpdateCommands(package, zip, 0, status_fd, &cmd)); in TEST()
128 ASSERT_EQ(4U, cmd.size()); in TEST()
129 ASSERT_EQ(binary_path, cmd[0]); in TEST()
130 ASSERT_EQ("3", cmd[1]); // RECOVERY_API_VERSION in TEST()
131 ASSERT_EQ(std::to_string(status_fd), cmd[2]); in TEST()
132 ASSERT_EQ(package, cmd[3]); in TEST()
138 cmd.clear(); in TEST()
139 ASSERT_TRUE(SetUpNonAbUpdateCommands(package, zip, 2, status_fd, &cmd)); in TEST()
140 ASSERT_EQ(5U, cmd.size()); in TEST()
141 ASSERT_EQ(binary_path, cmd[0]); in TEST()
142 ASSERT_EQ("3", cmd[1]); // RECOVERY_API_VERSION in TEST()
143 ASSERT_EQ(std::to_string(status_fd), cmd[2]); in TEST()
144 ASSERT_EQ(package, cmd[3]); in TEST()
145 ASSERT_EQ("retry", cmd[4]); in TEST()
165 std::vector<std::string> cmd; in TEST() local
166 ASSERT_FALSE(SetUpNonAbUpdateCommands(package, zip, 0, status_fd, &cmd)); in TEST()
203 std::vector<std::string> cmd; in VerifyAbUpdateCommands() local
204 ASSERT_TRUE(SetUpAbUpdateCommands(package, zip, status_fd, &cmd)); in VerifyAbUpdateCommands()
205 ASSERT_EQ(5U, cmd.size()); in VerifyAbUpdateCommands()
206 ASSERT_EQ("/system/bin/update_engine_sideload", cmd[0]); in VerifyAbUpdateCommands()
207 ASSERT_EQ("--payload=file://" + package, cmd[1]); in VerifyAbUpdateCommands()
208 ASSERT_EQ("--offset=" + std::to_string(payload_entry.offset), cmd[2]); in VerifyAbUpdateCommands()
209 ASSERT_EQ("--headers=" + properties, cmd[3]); in VerifyAbUpdateCommands()
210 ASSERT_EQ("--status_fd=" + std::to_string(status_fd), cmd[4]); in VerifyAbUpdateCommands()
246 std::vector<std::string> cmd; in TEST() local
247 ASSERT_FALSE(SetUpAbUpdateCommands(package, zip, status_fd, &cmd)); in TEST()