Lines Matching refs:TEST_EQ
103 TEST_EQ(vb2api_secdata_check(&cc), VB2_ERROR_SECDATA_CRC, in misc_tests()
111 TEST_EQ(vb2_nv_get(&cc, VB2_NV_RECOVERY_REQUEST), in misc_tests()
113 TEST_EQ(vb2_nv_get(&cc, VB2_NV_RECOVERY_SUBCODE), in misc_tests()
121 TEST_EQ(sd->recovery_reason, 0, " not recovery"); in phase1_tests()
122 TEST_EQ(cc.flags & VB2_CONTEXT_RECOVERY_MODE, 0, " recovery flag"); in phase1_tests()
123 TEST_EQ(cc.flags & VB2_CONTEXT_CLEAR_RAM, 0, " clear ram flag"); in phase1_tests()
127 TEST_EQ(vb2api_fw_phase1(&cc), VB2_ERROR_API_PHASE1_RECOVERY, in phase1_tests()
129 TEST_EQ(sd->recovery_reason, VB2_RECOVERY_GBB_HEADER, in phase1_tests()
137 TEST_EQ(vb2api_fw_phase1(&cc), VB2_ERROR_API_PHASE1_RECOVERY, in phase1_tests()
139 TEST_EQ(sd->recovery_reason, VB2_RECOVERY_DEV_SWITCH, in phase1_tests()
146 TEST_EQ(vb2api_fw_phase1(&cc), VB2_ERROR_API_PHASE1_RECOVERY, in phase1_tests()
148 TEST_EQ(sd->recovery_reason, VB2_RECOVERY_SECDATA_INIT, in phase1_tests()
158 TEST_EQ(cc.flags & VB2_CONTEXT_CLEAR_RAM, 0, " clear ram flag"); in phase2_tests()
167 TEST_EQ(vb2api_fw_phase2(&cc), VB2_ERROR_MOCK, "phase2 tpm clear"); in phase2_tests()
168 TEST_EQ(vb2_nv_get(&cc, VB2_NV_RECOVERY_REQUEST), in phase2_tests()
173 TEST_EQ(vb2api_fw_phase2(&cc), VB2_ERROR_MOCK, "phase2 slot"); in phase2_tests()
174 TEST_EQ(vb2_nv_get(&cc, VB2_NV_RECOVERY_REQUEST), in phase2_tests()
192 TEST_EQ(digest_size, VB2_SHA1_DIGEST_SIZE, "BOOT_MODE_PCR digest size"); in get_pcr_digest_tests()
201 TEST_EQ(digest_size, VB2_GBB_HWID_DIGEST_SIZE, in get_pcr_digest_tests()
207 TEST_EQ(vb2api_get_pcr_digest(&cc, BOOT_MODE_PCR, digest, &digest_size), in get_pcr_digest_tests()
211 TEST_EQ(vb2api_get_pcr_digest( in get_pcr_digest_tests()