Lines Matching refs:boot
125 bootloader_message boot; in TEST_F() local
127 ASSERT_TRUE(read_bootloader_message(&boot, &err)) << "Failed to read BCB: " << err; in TEST_F()
129 ASSERT_EQ("boot-recovery", std::string(boot.command)); in TEST_F()
130 ASSERT_EQ(message_in_bcb, std::string(boot.recovery)); in TEST_F()
133 ASSERT_LE(message_in_bcb.size(), sizeof(boot.recovery)); in TEST_F()
134 size_t left = sizeof(boot.recovery) - message_in_bcb.size(); in TEST_F()
135 ASSERT_EQ(std::string(left, '\0'), std::string(&boot.recovery[message_in_bcb.size()], left)); in TEST_F()
185 bootloader_message boot; in TEST_F() local
187 ASSERT_TRUE(read_bootloader_message(&boot, &err)) << "Failed to read BCB: " << err; in TEST_F()
190 ASSERT_EQ(std::string(sizeof(boot), '\0'), in TEST_F()
191 std::string(reinterpret_cast<const char*>(&boot), sizeof(boot))); in TEST_F()