Home
last modified time | relevance | path

Searched refs:assert_contains (Results 1 – 3 of 3) sorted by relevance

/packages/modules/Virtualization/libs/apkverify/tests/
Dapkverify_test.rs19 extract_signed_data, get_apk_digest, testing::assert_contains, verify, SignatureAlgorithmID,
91 assert_contains(&res.unwrap_err().to_string(), "No supported APK signatures found"); in apks_signed_with_v3_dsa_sha256_are_not_supported()
147 assert_contains(&res.unwrap_err().to_string(), "0 signers found"); in test_verify_v3_sig_min_max_sdk()
157 assert_contains(&res.unwrap_err().to_string(), "0 signers found"); in test_verify_v3_sig_min_max_sdk()
170 assert_contains(&res.unwrap_err().to_string(), "Signature is invalid"); in test_verify_v3_sig_does_not_verify()
179 assert_contains(&res.unwrap_err().to_string(), "Digest mismatch"); in test_verify_v3_digest_mismatch()
188 assert_contains(&res.unwrap_err().to_string(), "No APK Signing Block"); in test_verify_v3_wrong_apk_sig_block_magic()
199 assert_contains( in test_verify_v3_apk_sig_block_size_mismatch()
210 assert_contains(&res.unwrap_err().to_string(), "Public key mismatch"); in test_verify_v3_cert_and_public_key_mismatch()
218 assert_contains(&res.unwrap_err().to_string(), "APK too small for APK Signing Block"); in test_verify_v3_empty()
[all …]
/packages/modules/Virtualization/libs/apkzip/src/
Dziputil.rs118 fn assert_contains(haystack: &str, needle: &str) { in assert_contains() function
153 assert_contains(&res.err().unwrap().to_string(), "Invalid ZIP: offset should be 0"); in test_reject_if_extra_data_between_cd_and_eocd()
/packages/modules/Virtualization/libs/apkverify/src/
Dtesting.rs20 pub fn assert_contains(haystack: &str, needle: &str) { in assert_contains() function