/external/vboot_reference/tests/ |
D | stateful_util_tests.c | 31 TEST_PTR_EQ(buf, s.remaining_buf, "StatefulInit() buf"); in StatefulInitTest() 42 TEST_PTR_EQ(&s, StatefulSkip(&s, 5), "StatefulSkip(5) retval"); in StatefulSkipTest() 44 TEST_PTR_EQ(buf + 5, s.remaining_buf, "StatefulSkip(5) buf"); in StatefulSkipTest() 49 TEST_PTR_EQ(&s, StatefulSkip(&s, 128), "StatefulSkip(all) retval"); in StatefulSkipTest() 51 TEST_PTR_EQ(buf + 128, s.remaining_buf, "StatefulSkip(all) buf"); in StatefulSkipTest() 55 TEST_PTR_EQ(&s, StatefulSkip(&s, 0), "StatefulSkip(0) retval"); in StatefulSkipTest() 57 TEST_PTR_EQ(buf + 128, s.remaining_buf, "StatefulSkip(0) buf"); in StatefulSkipTest() 61 TEST_PTR_EQ(NULL, StatefulSkip(&s, 1), "StatefulSkip(+1) retval"); in StatefulSkipTest() 67 TEST_PTR_EQ(NULL, StatefulSkip(&s, 256), "StatefulSkip(256) retval"); in StatefulSkipTest() 70 TEST_PTR_EQ(NULL, StatefulSkip(&s, 1), "StatefulSkip(256+1) retval"); in StatefulSkipTest() [all …]
|
D | tpm_bootmode_tests.c | 86 TEST_PTR_EQ(last_in[0], in BootStateTest() 93 TEST_PTR_EQ(last_in[1], NULL, what); in BootStateTest() 105 TEST_PTR_EQ(last_in[0], in BootStateTest() 112 TEST_PTR_EQ(last_in[1], NULL, what); in BootStateTest() 124 TEST_PTR_EQ(last_in[0], in BootStateTest() 131 TEST_PTR_EQ(last_in[1], gbb_v2.hwid_digest, what); in BootStateTest()
|
D | rsa_utility_tests.c | 66 TEST_PTR_EQ(key->n, NULL, "New key no n"); in TestUtils() 67 TEST_PTR_EQ(key->rr, NULL, "New key no rr"); in TestUtils() 112 TEST_PTR_EQ(RSAPublicKeyFromBuf(buf, 8 + key_len * 2 - 1), NULL, in TestKeyFromBuffer() 114 TEST_PTR_EQ(RSAPublicKeyFromBuf(buf, 8 + key_len * 2 + 1), NULL, in TestKeyFromBuffer() 119 TEST_PTR_EQ(RSAPublicKeyFromBuf(buf, 8 + key_len * 2 + 1), NULL, in TestKeyFromBuffer() 124 TEST_PTR_EQ(RSAPublicKeyFromBuf(buf, 8 + key_len * 2 + 1), NULL, in TestKeyFromBuffer()
|
D | vb21_host_key_tests.c | 49 TEST_PTR_EQ(key->desc, NULL, " desc"); in private_key_tests() 54 TEST_PTR_EQ(key, NULL, " key_ptr"); in private_key_tests() 67 TEST_PTR_EQ(key->desc, NULL, " desc"); in private_key_tests() 109 TEST_PTR_EQ(k2, NULL, " key_ptr"); in private_key_tests() 154 TEST_PTR_EQ(ckey, NULL, " key_ptr"); in private_key_tests() 182 TEST_PTR_EQ(key, NULL, " key_ptr"); in public_key_tests() 187 TEST_PTR_EQ(key->desc, NULL, " desc"); in public_key_tests() 210 TEST_PTR_EQ(key->desc, NULL, " desc"); in public_key_tests() 250 TEST_PTR_EQ(pkey, NULL, " key_ptr"); in public_key_tests()
|
D | vboot_firmware_tests.c | 125 TEST_PTR_EQ(key, &data_key, " Verify preamble data key"); in VerifyFirmwarePreamble() 143 TEST_PTR_EQ(key, &data_key, " RSA data key"); in RSAPublicKeyFree() 152 TEST_PTR_EQ(data, digest_expect_ptr, " Digesting expected data"); in DigestUpdate() 188 TEST_PTR_EQ(digest, digest_returned, "Verifying expected digest"); in VerifyDigest() 189 TEST_PTR_EQ(key, &data_key, "Verifying using data key"); in VerifyDigest() 190 TEST_PTR_EQ(sig, &mpreamble[hash_fw_index].body_signature, "Verifying sig"); in VerifyDigest()
|
D | vboot_region_tests.c | 189 TEST_PTR_EQ(cparams.gbb, NULL, " GBB free"); in VbRegionReadTest() 194 TEST_PTR_EQ(cparams.gbb, NULL, " GBB free"); in VbRegionReadTest() 195 TEST_PTR_EQ(cparams.bmp, NULL, " BMP free"); in VbRegionReadTest()
|
D | vboot_display_tests.c | 243 TEST_PTR_EQ(fptr, buf, "Internalize"); in FontTest() 245 TEST_PTR_EQ(VbFindFontGlyph(fptr, 'B', &bufferptr, &buffersize), in FontTest() 248 TEST_PTR_EQ(VbFindFontGlyph(fptr, 'X', &bufferptr, &buffersize), in FontTest()
|
D | test_common.h | 23 int TEST_PTR_EQ(const void* result, const void* expected_result,
|
D | vboot_api_kernel_tests.c | 313 TEST_PTR_EQ(got_find_disk, t->expected_to_find_disk, in VbTryLoadKernelTest() 315 TEST_PTR_EQ(got_load_disk, t->expected_to_load_disk, in VbTryLoadKernelTest()
|
D | vb21_host_fw_preamble_tests.c | 107 TEST_PTR_EQ(fp, NULL, " fp_ptr"); in preamble_tests()
|
D | vb2_common_tests.c | 94 TEST_PTR_EQ(vb2_workbuf_alloc(&wb, 33), NULL, "Workbuf alloc too big"); in test_workbuf()
|
D | test_common.c | 47 int TEST_PTR_EQ(const void* result, const void* expected_result, in TEST_PTR_EQ() function
|
D | vb21_host_keyblock_tests.c | 111 TEST_PTR_EQ(kb, NULL, " kb_ptr"); in keyblock_tests()
|
D | tlcl_tests.c | 133 TEST_PTR_EQ(calls[0].req, buf, "SendReceive req ptr"); in TlclTest()
|
D | vboot_kernel_tests.c | 265 TEST_PTR_EQ(key, mock_data_key, " data key ptr"); in RSAPublicKeyFree() 736 TEST_PTR_EQ(lkp.kernel_buffer, kernel_buffer, " address"); in LoadKernelTest()
|
D | vb2_misc_tests.c | 119 TEST_PTR_EQ(wb.buf, workbuf + 16, "vb_workbuf_from_ctx() buf"); in misc_tests()
|