/external/vboot_reference/tests/ |
D | vboot_common3_tests.c | 39 TEST_NEQ((size_t)hdr, 0, "KeyBlockVerify() prerequisites"); in KeyBlockVerifyTest() 49 TEST_NEQ(KeyBlockVerify(hdr, hsize, NULL, 0), 0, in KeyBlockVerifyTest() 52 TEST_NEQ(KeyBlockVerify(hdr, hsize - 1, NULL, 1), 0, in KeyBlockVerifyTest() 59 TEST_NEQ(KeyBlockVerify(h, hsize, NULL, 1), 0, in KeyBlockVerifyTest() 66 TEST_NEQ(KeyBlockVerify(h, hsize, NULL, 1), 0, in KeyBlockVerifyTest() 72 TEST_NEQ(KeyBlockVerify(h, hsize, NULL, 1), 0, in KeyBlockVerifyTest() 91 TEST_NEQ(KeyBlockVerify(h, hsize, NULL, 1), 0, in KeyBlockVerifyTest() 97 TEST_NEQ(KeyBlockVerify(h, hsize, NULL, 1), 0, in KeyBlockVerifyTest() 102 TEST_NEQ(KeyBlockVerify(h, hsize, NULL, 1), 0, in KeyBlockVerifyTest() 109 TEST_NEQ(KeyBlockVerify(h, hsize, public_key, 0), 0, in KeyBlockVerifyTest() [all …]
|
D | vboot_common2_tests.c | 35 TEST_NEQ((size_t)rsa, 0, "PublicKeyToRSA() ok"); in VerifyPublicKeyToRSA() 91 TEST_NEQ(sig && rsa && digest, 0, "VerifyData() prerequisites"); in VerifyDigestTest() 132 TEST_NEQ(hdr && rsa, 0, "VerifyKernelPreamble() prerequisites"); in VerifyKernelPreambleTest() 140 TEST_NEQ(VerifyKernelPreamble(hdr, hsize - 1, rsa), 0, in VerifyKernelPreambleTest() 142 TEST_NEQ(VerifyKernelPreamble(hdr, 4, rsa), 0, in VerifyKernelPreambleTest() 151 TEST_NEQ(VerifyKernelPreamble(h, hsize, rsa), 0, in VerifyKernelPreambleTest() 157 TEST_NEQ(VerifyKernelPreamble(h, hsize, rsa), 0, in VerifyKernelPreambleTest() 176 TEST_NEQ(VerifyKernelPreamble(h, hsize, rsa), 0, in VerifyKernelPreambleTest() 182 TEST_NEQ(VerifyKernelPreamble(h, hsize, rsa), 0, in VerifyKernelPreambleTest() 187 TEST_NEQ(VerifyKernelPreamble(h, hsize, rsa), 0, in VerifyKernelPreambleTest() [all …]
|
D | vb2_api_tests.c | 131 TEST_NEQ(cc.flags & VB2_CONTEXT_RECOVERY_MODE, 0, " recovery flag"); in phase1_tests() 132 TEST_NEQ(cc.flags & VB2_CONTEXT_CLEAR_RAM, 0, " clear ram flag"); in phase1_tests() 141 TEST_NEQ(cc.flags & VB2_CONTEXT_RECOVERY_MODE, 0, " recovery flag"); in phase1_tests() 142 TEST_NEQ(cc.flags & VB2_CONTEXT_CLEAR_RAM, 0, " clear ram flag"); in phase1_tests() 150 TEST_NEQ(cc.flags & VB2_CONTEXT_RECOVERY_MODE, 0, " recovery flag"); in phase1_tests() 151 TEST_NEQ(cc.flags & VB2_CONTEXT_CLEAR_RAM, 0, " clear ram flag"); in phase1_tests() 163 TEST_NEQ(cc.flags & VB2_CONTEXT_CLEAR_RAM, 0, " clear ram flag"); in phase2_tests()
|
D | vb2_misc_tests.c | 202 TEST_NEQ(sd->status & VB2_SD_STATUS_NV_INIT, 0, "vb2_fail inits NV"); in fail_tests() 263 TEST_NEQ(cc.flags & VB2_CONTEXT_RECOVERY_MODE, in recovery_tests() 282 TEST_NEQ(sd->flags & VB2_SD_FLAG_MANUAL_RECOVERY, in recovery_tests() 303 TEST_NEQ(sd->flags & VB2_SD_DEV_MODE_ENABLED, 0, "sd in dev"); in dev_switch_tests() 304 TEST_NEQ(cc.flags & VB2_CONTEXT_DEVELOPER_MODE, 0, "ctx in dev"); in dev_switch_tests() 354 TEST_NEQ(sd->flags & VB2_SD_DEV_MODE_ENABLED, 0, "sd in dev"); in dev_switch_tests() 364 TEST_NEQ(sd->flags & VB2_SD_DEV_MODE_ENABLED, 0, "sd in dev"); in dev_switch_tests() 423 TEST_NEQ(sd->status & VB2_SD_STATUS_CHOSE_SLOT, 0, "chose slot"); in select_slot_tests() 434 TEST_NEQ(sd->status & VB2_SD_STATUS_CHOSE_SLOT, 0, "chose slot"); in select_slot_tests() 437 TEST_NEQ(cc.flags & VB2_CONTEXT_FW_SLOT_B, 0, "ctx says choose B"); in select_slot_tests() [all …]
|
D | vb20_common2_tests.c | 100 TEST_NEQ(vb2_verify_data(test_data, test_size, sig2, &pubk, &wb), in test_verify_data() 106 TEST_NEQ(vb2_verify_data(test_data, test_size, sig2, &pubk, &wb), in test_verify_data() 112 TEST_NEQ(vb2_verify_data(test_data, test_size, sig2, &pubk, &wb), in test_verify_data() 122 TEST_NEQ(vb2_verify_data(test_data, test_size, sig2, &pubk, &wb), in test_verify_data() 126 TEST_NEQ(vb2_verify_data(test_data, test_size - 1, sig2, &pubk, &wb), in test_verify_data() 131 TEST_NEQ(vb2_verify_data(test_data, test_size, sig2, &pubk, &wb), in test_verify_data()
|
D | vboot_common_tests.c | 172 TEST_NEQ(0, PublicKeyCopy(j, k), "PublicKeyCopy too small"); in PublicKeyTest() 197 TEST_NEQ(VBOOT_SUCCESS, in VbSharedDataTest() 200 TEST_NEQ(VBOOT_SUCCESS, in VbSharedDataTest() 203 TEST_NEQ(VBOOT_SUCCESS, in VbSharedDataTest() 228 TEST_NEQ(VBOOT_SUCCESS, VbSharedDataSetKernelKey(NULL, NULL), in VbSharedDataTest()
|
D | vboot_api_kernel2_tests.c | 305 TEST_NEQ(audio_looping_calls_left, 0, " aborts audio"); in VbBootDevTest() 387 TEST_NEQ(audio_looping_calls_left, 0, " aborts audio"); in VbBootDevTest() 563 TEST_NEQ(screens_displayed[1], VB_SCREEN_RECOVERY_TO_DEV, in VbBootRecTest() 575 TEST_NEQ(screens_displayed[1], VB_SCREEN_RECOVERY_TO_DEV, in VbBootRecTest() 586 TEST_NEQ(screens_displayed[1], VB_SCREEN_RECOVERY_TO_DEV, in VbBootRecTest() 597 TEST_NEQ(screens_displayed[1], VB_SCREEN_RECOVERY_TO_DEV, in VbBootRecTest() 611 TEST_NEQ(screens_displayed[1], VB_SCREEN_RECOVERY_TO_DEV, in VbBootRecTest()
|
D | vboot_kernel_tests.c | 470 TEST_NEQ(AllocAndReadGptData(handle, &g), 0, "AllocAndRead disk fail"); in ReadWriteGptTest() 476 TEST_NEQ(AllocAndReadGptData(handle, &g), 0, "AllocAndRead disk fail"); in ReadWriteGptTest() 482 TEST_NEQ(AllocAndReadGptData(handle, &g), 0, "AllocAndRead disk fail"); in ReadWriteGptTest() 488 TEST_NEQ(AllocAndReadGptData(handle, &g), 0, "AllocAndRead disk fail"); in ReadWriteGptTest() 498 TEST_NEQ(WriteAndFreeGptData(handle, &g), 0, "WriteAndFree disk fail"); in ReadWriteGptTest() 507 TEST_NEQ(WriteAndFreeGptData(handle, &g), 0, "WriteAndFree disk fail"); in ReadWriteGptTest() 514 TEST_NEQ(WriteAndFreeGptData(handle, &g), 0, "WriteAndFree disk fail"); in ReadWriteGptTest() 521 TEST_NEQ(WriteAndFreeGptData(handle, &g), 0, "WriteAndFree disk fail"); in ReadWriteGptTest()
|
D | vb2_nvstorage_tests.c | 57 TEST_NEQ(ctx->flags & VB2_CONTEXT_NVDATA_CHANGED, 0, why); in test_changed() 81 TEST_NEQ(c.nvdata[15], 0, "vb2_nv_init() CRC"); in nv_storage_test() 131 TEST_NEQ(c.nvdata[15], goodcrc, in nv_storage_test()
|
D | vboot_firmware_tests.c | 117 TEST_NEQ(block==vblock || block==vblock+1, 0, " Verify a valid key block"); in KeyBlockVerify() 126 TEST_NEQ(preamble==mpreamble || preamble==mpreamble+1, 0, in VerifyFirmwarePreamble() 244 TEST_NEQ(shared->flags & VBSD_LF_DEV_SWITCH_ON, 0, in LoadFirmwareTest() 369 TEST_NEQ(shared->flags & VBSD_FWB_TRIED, 0, "Tried firmware B"); in LoadFirmwareTest()
|
D | test_common.h | 18 int TEST_NEQ(int result, int not_expected_result, const char* testname);
|
D | vboot_nvstorage_test.c | 63 TEST_NEQ(c.raw[15], 0, "VbNvTeardown() CRC"); in VbNvStorageTest() 111 TEST_NEQ(c.raw[15], goodcrc, "VbNvTeardown() CRC changed due to flags clear"); in VbNvStorageTest()
|
D | vboot_display_tests.c | 140 TEST_NEQ(*debug_info, '\0', "Some debug info was displayed"); in DebugInfoTest() 181 TEST_NEQ(*debug_info, '\0', "DisplayKey tab = display"); in DisplayKeyTest()
|
D | vb2_rsa_utility_tests.c | 97 TEST_NEQ(vb2_safe_memcmp("foo", "bar", 3), 0, "vb2_safe_memcmp() bad"); in test_utils()
|
D | test_common.c | 34 int TEST_NEQ(int result, int not_expected_result, const char* testname) { in TEST_NEQ() function
|
D | vb2_secdata_tests.c | 24 TEST_NEQ(ctx->flags & VB2_CONTEXT_SECDATA_CHANGED, 0, why); in test_changed()
|
D | vb2_common_tests.c | 18 TEST_NEQ(vb2_safe_memcmp("foo1", "foo2", 4), 0, "memcmp different"); in test_memcmp()
|
D | tlcl_tests.c | 209 TEST_NEQ(TlclIsOwned(), 0, "IsOwned"); in SendCommandTest()
|
D | vb20_common3_tests.c | 53 TEST_NEQ((size_t)hdr, 0, "vb2_verify_keyblock() prerequisites"); in test_verify_keyblock()
|