Lines Matching refs:TEST_EQ
109 TEST_EQ(hash_only, 0, " Don't verify firmware with hash"); in KeyBlockVerify()
201 TEST_EQ(LoadFirmware(&cparams, &fparams, &vnc), expected_retval, desc); in TestLoadFirmware()
203 TEST_EQ(rr, expected_recovery, " recovery request"); in TestLoadFirmware()
204 TEST_EQ(data_key.len, 0, " Data key free must be paired with alloc"); in TestLoadFirmware()
228 TEST_EQ(shared->flags & VBSD_LF_DEV_SWITCH_ON, 0, in LoadFirmwareTest()
230 TEST_EQ(shared->check_fw_a_result, VBSD_LF_CHECK_DEV_MISMATCH, in LoadFirmwareTest()
232 TEST_EQ(shared->check_fw_b_result, VBSD_LF_CHECK_REC_MISMATCH, in LoadFirmwareTest()
246 TEST_EQ(shared->check_fw_a_result, VBSD_LF_CHECK_DEV_MISMATCH, in LoadFirmwareTest()
248 TEST_EQ(shared->check_fw_b_result, VBSD_LF_CHECK_REC_MISMATCH, in LoadFirmwareTest()
259 TEST_EQ(shared->check_fw_a_result, VBSD_LF_CHECK_VERIFY_KEYBLOCK, in LoadFirmwareTest()
261 TEST_EQ(shared->check_fw_b_result, VBSD_LF_CHECK_KEY_ROLLBACK, in LoadFirmwareTest()
263 TEST_EQ(shared->fw_version_lowest, 0, "Lowest valid version"); in LoadFirmwareTest()
264 TEST_EQ(shared->fw_version_tpm, 0x20004, "TPM version"); in LoadFirmwareTest()
274 TEST_EQ(shared->check_fw_a_result, VBSD_LF_CHECK_KEY_ROLLBACK, in LoadFirmwareTest()
276 TEST_EQ(shared->check_fw_b_result, VBSD_LF_CHECK_DATA_KEY_PARSE, in LoadFirmwareTest()
284 TEST_EQ(shared->check_fw_a_result, VBSD_LF_CHECK_VALID, in LoadFirmwareTest()
295 TEST_EQ(shared->check_fw_a_result, VBSD_LF_CHECK_VERIFY_PREAMBLE, in LoadFirmwareTest()
306 TEST_EQ(shared->check_fw_a_result, VBSD_LF_CHECK_FW_ROLLBACK, in LoadFirmwareTest()
308 TEST_EQ(shared->check_fw_b_result, VBSD_LF_CHECK_FW_ROLLBACK, in LoadFirmwareTest()
317 TEST_EQ(shared->check_fw_a_result, VBSD_LF_CHECK_VALID, in LoadFirmwareTest()
319 TEST_EQ(shared->check_fw_b_result, VBSD_LF_CHECK_HEADER_VALID, in LoadFirmwareTest()
330 TEST_EQ(shared->check_fw_a_result, VBSD_LF_CHECK_NO_RO_NORMAL, in LoadFirmwareTest()
341 TEST_EQ(shared->check_fw_a_result, VBSD_LF_CHECK_VALID, "RO normal A valid"); in LoadFirmwareTest()
342 TEST_EQ(shared->firmware_index, 0, "Boot A shared index"); in LoadFirmwareTest()
343 TEST_EQ(shared->fw_keyblock_flags, vblock[0].key_block_flags, in LoadFirmwareTest()
345 TEST_EQ(shared->kernel_subkey.algorithm, 7, "Copy kernel subkey"); in LoadFirmwareTest()
354 TEST_EQ(shared->check_fw_a_result, VBSD_LF_CHECK_VALID, "RO normal A valid"); in LoadFirmwareTest()
355 TEST_EQ(shared->check_fw_b_result, 0, "RO normal B not checked "); in LoadFirmwareTest()
356 TEST_EQ(shared->firmware_index, 0, "Boot A"); in LoadFirmwareTest()
357 TEST_EQ(shared->flags & VBSD_FWB_TRIED, 0, "Didn't try firmware B"); in LoadFirmwareTest()
358 TEST_EQ(shared->kernel_subkey.algorithm, 7, "Copy kernel subkey"); in LoadFirmwareTest()
366 TEST_EQ(shared->check_fw_a_result, 0, "RO normal A not checked "); in LoadFirmwareTest()
367 TEST_EQ(shared->check_fw_b_result, VBSD_LF_CHECK_VALID, "RO normal B valid"); in LoadFirmwareTest()
368 TEST_EQ(shared->firmware_index, 1, "Boot B"); in LoadFirmwareTest()
370 TEST_EQ(shared->kernel_subkey.algorithm, 8, "Copy kernel subkey"); in LoadFirmwareTest()
372 TEST_EQ(u, 4, "Used up a try"); in LoadFirmwareTest()
383 TEST_EQ(shared->check_fw_a_result, VBSD_LF_CHECK_VALID, "RO normal A valid"); in LoadFirmwareTest()
384 TEST_EQ(shared->check_fw_b_result, VBSD_LF_CHECK_HEADER_VALID, in LoadFirmwareTest()
386 TEST_EQ(shared->firmware_index, 0, "Boot A"); in LoadFirmwareTest()
387 TEST_EQ(shared->fw_keyblock_flags, vblock[0].key_block_flags, "Key block A"); in LoadFirmwareTest()
388 TEST_EQ(shared->kernel_subkey.algorithm, 7, "Copy kernel subkey"); in LoadFirmwareTest()
389 TEST_EQ(shared->fw_version_lowest, 0x20005, "Lowest valid version"); in LoadFirmwareTest()
390 TEST_EQ(shared->fw_version_tpm, 0x20005, "TPM version advanced"); in LoadFirmwareTest()
396 TEST_EQ(shared->check_fw_a_result, VBSD_LF_CHECK_VALID, in LoadFirmwareTest()
398 TEST_EQ(shared->firmware_index, 0, "Boot A shared index"); in LoadFirmwareTest()
399 TEST_EQ(hash_fw_index, 0, "Hash firmware data A"); in LoadFirmwareTest()
400 TEST_EQ(digest_size, mpreamble[0].body_signature.data_size, in LoadFirmwareTest()
411 TEST_EQ(shared->check_fw_a_result, VBSD_LF_CHECK_GET_FW_BODY, in LoadFirmwareTest()
422 TEST_EQ(shared->check_fw_a_result, VBSD_LF_CHECK_HASH_WRONG_SIZE, in LoadFirmwareTest()
433 TEST_EQ(shared->check_fw_a_result, VBSD_LF_CHECK_VERIFY_BODY, in LoadFirmwareTest()
444 TEST_EQ(shared->check_fw_a_result, VBSD_LF_CHECK_VALID, in LoadFirmwareTest()