Lines Matching refs:EXPECT_EQ
121 EXPECT_EQ(ERR_BAD_HANDLE, rc, "generic - bad handle"); in TEST_F()
138 EXPECT_EQ(ERR_NOT_FOUND, rc, "generic - closed handle"); in TEST_F()
161 EXPECT_EQ(NO_ERROR, rc, "derive repeatable - initial derivation"); in TEST_F()
168 EXPECT_EQ(NO_ERROR, rc, "derive repeatable - second derivation"); in TEST_F()
172 EXPECT_EQ(0, rc, "derive repeatable - equal"); in TEST_F()
181 EXPECT_EQ(NO_ERROR, rc, "derive repeatable - versioned API"); in TEST_F()
185 EXPECT_EQ(0, rc, "derive repeatable - equal"); in TEST_F()
191 EXPECT_EQ(NO_ERROR, rc, "derive repeatable - versioned API"); in TEST_F()
195 EXPECT_EQ(true, keys_are_sufficiently_distinct(dest, size, dest2, size), in TEST_F()
206 EXPECT_EQ(NO_ERROR, rc, "derive repeatable - versioned API"); in TEST_F()
211 EXPECT_EQ(true, keys_are_sufficiently_distinct(dest, size, dest2, size), in TEST_F()
214 EXPECT_EQ(0, rc, "derive repeatable - not equal"); in TEST_F()
238 EXPECT_EQ(NO_ERROR, rc, "derive repeatable versioned - initial derivation"); in TEST_F()
251 EXPECT_EQ(NO_ERROR, rc, "derive repeatable versioned - second derivation"); in TEST_F()
255 EXPECT_EQ(0, rc, "derive repeatable versioned - equal"); in TEST_F()
266 EXPECT_EQ(NO_ERROR, rc, "derive repeatable versioned - initial derivation"); in TEST_F()
276 EXPECT_EQ(NO_ERROR, rc, "derive repeatable versioned - second derivation"); in TEST_F()
280 EXPECT_EQ(0, rc, "derive repeatable versioned - equal"); in TEST_F()
300 EXPECT_EQ(NO_ERROR, rc, "derive not repeatable - initial derivation"); in TEST_F()
307 EXPECT_EQ(NO_ERROR, rc, "derive not repeatable - second derivation"); in TEST_F()
317 EXPECT_EQ(true, keys_are_sufficiently_distinct(dest, size, dest2, size), in TEST_F()
349 EXPECT_EQ(NO_ERROR, rc, in TEST_F()
367 EXPECT_EQ(NO_ERROR, rc, in TEST_F()
378 EXPECT_EQ(true, keys_are_sufficiently_distinct(dest, size, dest2, size), in TEST_F()
395 EXPECT_EQ(NO_ERROR, rc, in TEST_F()
406 EXPECT_EQ(true, keys_are_sufficiently_distinct(dest, size, dest2, size), in TEST_F()
421 EXPECT_EQ(NO_ERROR, rc, in TEST_F()
432 EXPECT_EQ(true, in TEST_F()
435 EXPECT_EQ(true, in TEST_F()
451 EXPECT_EQ(NO_ERROR, rc, in TEST_F()
464 EXPECT_EQ(true, in TEST_F()
467 EXPECT_EQ(true, in TEST_F()
470 EXPECT_EQ(true, in TEST_F()
488 EXPECT_EQ(NO_ERROR, rc, in TEST_F()
501 EXPECT_EQ(true, in TEST_F()
504 EXPECT_EQ( in TEST_F()
508 EXPECT_EQ(true, in TEST_F()
543 EXPECT_EQ(NO_ERROR, rc, in TEST_F()
563 EXPECT_EQ(NO_ERROR, rc, in TEST_F()
573 EXPECT_EQ(true, keys_are_sufficiently_distinct(dest, size, dest2, size), in TEST_F()
578 EXPECT_EQ(0, rc, "derive not repeatable - not equal"); in TEST_F()
593 EXPECT_EQ(NO_ERROR, rc, in TEST_F()
604 EXPECT_EQ(true, in TEST_F()
607 EXPECT_EQ(true, in TEST_F()
623 EXPECT_EQ(NO_ERROR, rc, in TEST_F()
636 EXPECT_EQ(true, in TEST_F()
639 EXPECT_EQ(true, in TEST_F()
642 EXPECT_EQ(true, in TEST_F()
657 EXPECT_EQ(ERR_NOT_VALID, rc, "derive zero length"); in TEST_F()
673 EXPECT_EQ(NO_ERROR, rc, "versioned derive with zero length"); in TEST_F()
681 EXPECT_EQ(NO_ERROR, rc, "versioned derive with zero length"); in TEST_F()
688 EXPECT_EQ(ERR_NOT_VALID, rc, in TEST_F()
709 EXPECT_EQ(ERR_NOT_VALID, rc, in TEST_F()
724 EXPECT_EQ(NO_ERROR, rc, "versioned derive query failed"); in TEST_F()
745 EXPECT_EQ(NO_ERROR, rc, "versioned derive query failed"); in TEST_F()
787 EXPECT_EQ(NO_ERROR, rc, "versioned derive with large context and key"); in TEST_F()
791 EXPECT_EQ(ERR_BAD_LEN, rc, "versioned derive with too large context"); in TEST_F()
796 EXPECT_EQ(ERR_BAD_LEN, rc, "versioned derive with too large key"); in TEST_F()
805 EXPECT_EQ(ERR_NOT_FOUND, rc, "auth key accessible when it shouldn't be"); in TEST_F()
816 EXPECT_EQ(NO_ERROR, rc, "get hwcrypto-unittest keybox"); in TEST_F()
818 EXPECT_EQ(0, rc, "get storage auth key invalid"); in TEST_F()
820 EXPECT_EQ(ERR_NOT_FOUND, rc, "get hwcrypto-unittest keybox"); in TEST_F()
836 EXPECT_EQ(NO_ERROR, rc, "get hwcrypto-unittest derived keybox"); in TEST_F()
839 EXPECT_EQ(0, rc, "get derived invalid"); in TEST_F()
841 EXPECT_EQ(ERR_NOT_FOUND, rc, "get hwcrypto-unittest derived keybox"); in TEST_F()
852 EXPECT_EQ(NO_ERROR, rc, "get hwcrypto-unittest opaque keybox"); in TEST_F()
859 EXPECT_EQ(ERR_NOT_FOUND, rc, "hwcrypto-unittest not enabled"); in TEST_F()
872 EXPECT_EQ(NO_ERROR, rc, "get hwcrypto-unittest opaque keybox"); in TEST_F()
882 EXPECT_EQ(NO_ERROR, rc, "get hwcrypto-unittest opaque key failed"); in TEST_F()
885 EXPECT_EQ(0, rc, "opaque key did not match expected value"); in TEST_F()
894 EXPECT_EQ(NO_ERROR, rc, "get hwcrypto-unittest opaque keybox"); in TEST_F()
902 EXPECT_EQ(NO_ERROR, rc, "get hwcrypto-unittest opaque keybox"); in TEST_F()
912 EXPECT_EQ(NO_ERROR, rc, "handle was not valid"); in TEST_F()
913 EXPECT_EQ(actual_size, sizeof(UNITTEST_KEYSLOT) - 1, "wrong key length"); in TEST_F()
915 EXPECT_EQ(0, rc, "opaque key did not match expected value"); in TEST_F()
922 EXPECT_EQ(ERR_NOT_FOUND, rc, in TEST_F()
939 EXPECT_EQ(ERR_NOT_FOUND, rc, "handle was still valid"); in TEST_F()
944 EXPECT_EQ(ERR_NOT_FOUND, rc, "handle was still valid"); in TEST_F()
960 EXPECT_EQ(NO_ERROR, rc, "get hwcrypto-unittest opaque keybox"); in TEST_F()
970 EXPECT_EQ(ERR_ALREADY_EXISTS, rc, "retrieve same handle twice"); in TEST_F()
976 EXPECT_EQ(NO_ERROR, rc, "get hwcrypto-unittest opaque keybox"); in TEST_F()
985 EXPECT_EQ(NO_ERROR, rc, "handle was not valid"); in TEST_F()
986 EXPECT_EQ(actual_size, sizeof(UNITTEST_KEYSLOT) - 1, "wrong key length"); in TEST_F()
988 EXPECT_EQ(0, rc, "opaque key did not match expected value"); in TEST_F()
994 EXPECT_EQ(NO_ERROR, rc, "handle was not valid"); in TEST_F()
995 EXPECT_EQ(actual_size, sizeof(UNITTEST_KEYSLOT) - 1, "wrong key length"); in TEST_F()
997 EXPECT_EQ(0, rc, "opaque key did not match expected value"); in TEST_F()
1004 EXPECT_EQ(NO_ERROR, rc, "handle was not valid"); in TEST_F()
1005 EXPECT_EQ(actual_size, sizeof(UNITTEST_KEYSLOT) - 1, "wrong key length"); in TEST_F()
1007 EXPECT_EQ(0, rc, "opaque key did not match expected value"); in TEST_F()
1013 EXPECT_EQ(NO_ERROR, rc, "handle was not valid"); in TEST_F()
1014 EXPECT_EQ(actual_size, sizeof(UNITTEST_KEYSLOT) - 1, "wrong key length"); in TEST_F()
1016 EXPECT_EQ(0, rc, "opaque key did not match expected value"); in TEST_F()
1024 EXPECT_EQ(NO_ERROR, rc, "first session handle wasn't valid"); in TEST_F()
1029 EXPECT_EQ(ERR_NOT_FOUND, rc, "second session handle was still valid"); in TEST_F()
1040 EXPECT_EQ(ERR_NOT_FOUND, rc, "handle was still valid"); in TEST_F()
1045 EXPECT_EQ(ERR_NOT_FOUND, rc, "handle was still valid"); in TEST_F()
1061 EXPECT_EQ(ERR_NOT_FOUND, rc, in TEST_F()
1074 EXPECT_EQ(NO_ERROR, rc, "get hwcrypto-unittest opaque derived key"); in TEST_F()
1077 EXPECT_EQ(rc, actual_size - 1, "Unexpected opaque handle size"); in TEST_F()
1083 EXPECT_EQ(NO_ERROR, rc, "get hwcrypto-unittest derived key failed"); in TEST_F()
1084 EXPECT_EQ(actual_size, sizeof(key_buf), "Unexpected opaque handle size"); in TEST_F()
1087 EXPECT_EQ(0, rc, "get derived invalid"); in TEST_F()