Lines Matching refs:test_utils

64     ASSERT_TRUE(test_utils::setupWritableCredential(writableCredential, credentialStore_));  in TEST_P()
85 ASSERT_TRUE(test_utils::setupWritableCredential(writableCredential, credentialStore_)); in TEST_P()
98 EXPECT_TRUE(test_utils::validateAttestationCertificate( in TEST_P()
109 ASSERT_TRUE(test_utils::setupWritableCredential(writableCredential, credentialStore_)); in TEST_P()
112 test_utils::AttestationData attData(writableCredential, challenge, {}); in TEST_P()
113 ASSERT_TRUE(test_utils::validateAttestationCertificate( in TEST_P()
118 test_utils::AttestationData attData2(writableCredential, challenge2, {}); in TEST_P()
128 ASSERT_TRUE(test_utils::setupWritableCredential(writableCredential, credentialStore_)); in TEST_P()
150 ASSERT_TRUE(test_utils::setupWritableCredential(writableCredential, credentialStore_)); in TEST_P()
163 ASSERT_TRUE(test_utils::setupWritableCredential(writableCredential, credentialStore_)); in TEST_P()
176 ASSERT_TRUE(test_utils::setupWritableCredential(writableCredential, credentialStore_)); in TEST_P()
189 ASSERT_TRUE(test_utils::setupWritableCredential(writableCredential, credentialStore_)); in TEST_P()
198 optional<vector<uint8_t>> readerCertificate = test_utils::generateReaderCertificate("12345"); in TEST_P()
201 const vector<test_utils::TestProfile> testProfiles = {// Profile 0 (reader authentication) in TEST_P()
208 test_utils::addAccessControlProfiles(writableCredential, testProfiles); in TEST_P()
227 ASSERT_TRUE(test_utils::setupWritableCredential(writableCredential, credentialStore_)); in TEST_P()
235 const vector<test_utils::TestProfile> testProfiles = {// first profile should go though in TEST_P()
286 ASSERT_TRUE(test_utils::setupWritableCredential(writableCredential, credentialStore_)); in TEST_P()
289 test_utils::AttestationData attData(writableCredential, challenge, {}); in TEST_P()
293 optional<vector<uint8_t>> readerCertificate1 = test_utils::generateReaderCertificate("123456"); in TEST_P()
304 const vector<test_utils::TestProfile> testProfiles = {{1, readerCertificate1.value(), true, 1}}; in TEST_P()
307 test_utils::addAccessControlProfiles(writableCredential, testProfiles); in TEST_P()
310 const vector<test_utils::TestEntryData> testEntries1 = { in TEST_P()
314 map<const test_utils::TestEntryData*, vector<vector<uint8_t>>> encryptedBlobs; in TEST_P()
316 ASSERT_TRUE(test_utils::addEntry(writableCredential, entry, hwInfo.dataChunkSize, in TEST_P()
373 ASSERT_TRUE(test_utils::setupWritableCredential(writableCredential, credentialStore_)); in TEST_P()
376 test_utils::AttestationData attData(writableCredential, challenge, {}); in TEST_P()
380 optional<vector<uint8_t>> readerCertificate1 = test_utils::generateReaderCertificate("123456"); in TEST_P()
383 optional<vector<uint8_t>> readerCertificate2 = test_utils::generateReaderCertificate("1256"); in TEST_P()
386 const vector<test_utils::TestProfile> testProfiles = { in TEST_P()
400 test_utils::addAccessControlProfiles(writableCredential, testProfiles); in TEST_P()
404 test_utils::setImageData(portraitImage1); in TEST_P()
407 test_utils::setImageData(portraitImage2); in TEST_P()
409 const vector<test_utils::TestEntryData> testEntries1 = { in TEST_P()
423 map<const test_utils::TestEntryData*, vector<vector<uint8_t>>> encryptedBlobs; in TEST_P()
425 EXPECT_TRUE(test_utils::addEntry(writableCredential, entry, hwInfo.dataChunkSize, in TEST_P()
532 ASSERT_TRUE(test_utils::setupWritableCredential(writableCredential, credentialStore_)); in TEST_P()
535 test_utils::AttestationData attData(writableCredential, challenge, {}); in TEST_P()
539 optional<vector<uint8_t>> readerCertificate1 = test_utils::generateReaderCertificate("123456"); in TEST_P()
543 test_utils::generateReaderCertificate("123456987987987987987987"); in TEST_P()
556 const vector<test_utils::TestProfile> testProfiles = {{0, readerCertificate1.value(), false, 0}, in TEST_P()
561 test_utils::addAccessControlProfiles(writableCredential, testProfiles); in TEST_P()
564 const vector<test_utils::TestEntryData> testEntries1 = { in TEST_P()
572 map<const test_utils::TestEntryData*, vector<vector<uint8_t>>> encryptedBlobs; in TEST_P()
574 EXPECT_TRUE(test_utils::addEntry(writableCredential, entry, hwInfo.dataChunkSize, in TEST_P()
594 ASSERT_TRUE(test_utils::setupWritableCredential(writableCredential, credentialStore_)); in TEST_P()
597 test_utils::AttestationData attData(writableCredential, challenge, {}); in TEST_P()
611 optional<vector<uint8_t>> readerCertificate1 = test_utils::generateReaderCertificate("123456"); in TEST_P()
615 test_utils::generateReaderCertificate("123456987987987987987987"); in TEST_P()
618 const vector<test_utils::TestProfile> testProfiles = {{0, readerCertificate1.value(), false, 0}, in TEST_P()
623 test_utils::addAccessControlProfiles(writableCredential, testProfiles); in TEST_P()
626 const vector<test_utils::TestEntryData> testEntries1 = { in TEST_P()
632 map<const test_utils::TestEntryData*, vector<vector<uint8_t>>> encryptedBlobs; in TEST_P()
634 EXPECT_TRUE(test_utils::addEntry(writableCredential, entry, hwInfo.dataChunkSize, in TEST_P()
637 const test_utils::TestEntryData testEntry2 = {"Image", "Portrait image", string("asdfs"), in TEST_P()
640 EXPECT_TRUE(test_utils::addEntry(writableCredential, testEntry2, hwInfo.dataChunkSize, in TEST_P()
645 const vector<test_utils::TestEntryData> testEntries3 = { in TEST_P()
652 EXPECT_FALSE(test_utils::addEntry(writableCredential, entry, hwInfo.dataChunkSize, in TEST_P()
670 ASSERT_TRUE(test_utils::setupWritableCredential(writableCredential, credentialStore_)); in TEST_P()