Lines Matching refs:boot
131 bootloader_message boot; in SetupOrClearBcb() local
133 ASSERT_TRUE(read_bootloader_message(&boot, &err)) << "Failed to read BCB: " << err; in SetupOrClearBcb()
136 ASSERT_EQ("boot-recovery", std::string(boot.command)); in SetupOrClearBcb()
137 ASSERT_EQ(message_in_bcb, std::string(boot.recovery)); in SetupOrClearBcb()
140 ASSERT_LE(message_in_bcb.size(), sizeof(boot.recovery)); in SetupOrClearBcb()
141 size_t left = sizeof(boot.recovery) - message_in_bcb.size(); in SetupOrClearBcb()
142 ASSERT_EQ(std::string(left, '\0'), std::string(&boot.recovery[message_in_bcb.size()], left)); in SetupOrClearBcb()
148 ASSERT_EQ(std::string(sizeof(boot), '\0'), in SetupOrClearBcb()
149 std::string(reinterpret_cast<const char*>(&boot), sizeof(boot))); in SetupOrClearBcb()
155 bootloader_message boot; in VerifyBootloaderMessage() local
156 ASSERT_TRUE(read_bootloader_message(&boot, &err)) << "Failed to read BCB: " << err; in VerifyBootloaderMessage()
159 ASSERT_EQ(expected, std::string(reinterpret_cast<const char*>(&boot), sizeof(boot))); in VerifyBootloaderMessage()
175 bootloader_message boot; in TEST_F() local
176 memcpy(&boot, random_data.c_str(), random_data.size()); in TEST_F()
179 ASSERT_TRUE(write_bootloader_message(boot, &err)) << "Failed to write BCB: " << err; in TEST_F()