Lines Matching refs:TEST_EQ
222 TEST_EQ(vb2api_fw_phase3(&cc), VB2_ERROR_MOCK, "phase3 keyblock"); in phase3_tests()
223 TEST_EQ(vb2_nv_get(&cc, VB2_NV_RECOVERY_REQUEST), in phase3_tests()
228 TEST_EQ(vb2api_fw_phase3(&cc), VB2_ERROR_MOCK, "phase3 keyblock"); in phase3_tests()
229 TEST_EQ(vb2_nv_get(&cc, VB2_NV_RECOVERY_REQUEST), in phase3_tests()
244 TEST_EQ(sd->workbuf_hash_offset, in init_hash_tests()
248 TEST_EQ(sd->workbuf_hash_size, sizeof(struct vb2_digest_context), in init_hash_tests()
250 TEST_EQ(cc.workbuf_used, in init_hash_tests()
253 TEST_EQ(sd->hash_tag, VB2_HASH_TAG_FW_BODY, "hash tag"); in init_hash_tests()
254 TEST_EQ(sd->hash_remaining_size, mock_body_size, "hash remaining"); in init_hash_tests()
259 TEST_EQ(cc.workbuf_used, wb_used_before, "init hash reuses context"); in init_hash_tests()
262 TEST_EQ(vb2api_init_hash(&cc, VB2_HASH_TAG_INVALID, &size), in init_hash_tests()
267 TEST_EQ(vb2api_init_hash(&cc, VB2_HASH_TAG_FW_BODY, &size), in init_hash_tests()
271 TEST_EQ(vb2api_init_hash(&cc, VB2_HASH_TAG_FW_BODY + 1, &size), in init_hash_tests()
277 TEST_EQ(vb2api_init_hash(&cc, VB2_HASH_TAG_FW_BODY, &size), in init_hash_tests()
282 TEST_EQ(vb2api_init_hash(&cc, VB2_HASH_TAG_FW_BODY, &size), in init_hash_tests()
287 TEST_EQ(vb2api_init_hash(&cc, VB2_HASH_TAG_FW_BODY, &size), in init_hash_tests()
293 TEST_EQ(vb2api_init_hash(&cc, VB2_HASH_TAG_FW_BODY, &size), in init_hash_tests()
304 TEST_EQ(sd->hash_remaining_size, mock_body_size - 32, in extend_hash_tests()
308 TEST_EQ(sd->hash_remaining_size, 0, "hash extend remaining 2"); in extend_hash_tests()
312 TEST_EQ(vb2api_extend_hash(&cc, mock_body, mock_body_size), in extend_hash_tests()
316 TEST_EQ(vb2api_extend_hash(&cc, mock_body, mock_body_size + 1), in extend_hash_tests()
320 TEST_EQ(vb2api_extend_hash(&cc, mock_body, 0), in extend_hash_tests()
328 TEST_EQ(vb2api_extend_hash(&cc, mock_body, mock_body_size), in extend_hash_tests()
342 TEST_EQ(vb2api_check_hash(&cc), in check_hash_tests()
347 TEST_EQ(vb2api_check_hash(&cc), in check_hash_tests()
352 TEST_EQ(vb2api_check_hash(&cc), in check_hash_tests()
357 TEST_EQ(vb2api_check_hash(&cc), in check_hash_tests()
362 TEST_EQ(vb2api_check_hash(&cc), VB2_ERROR_MOCK, "check hash finalize"); in check_hash_tests()
366 TEST_EQ(vb2api_check_hash(&cc), in check_hash_tests()
371 TEST_EQ(vb2api_check_hash(&cc), in check_hash_tests()
376 TEST_EQ(vb2api_check_hash(&cc), in check_hash_tests()
383 TEST_EQ(vb2api_check_hash(&cc), in check_hash_tests()
388 TEST_EQ(vb2api_check_hash(&cc), in check_hash_tests()