Home
last modified time | relevance | path

Searched refs:expect_eq (Results 1 – 12 of 12) sorted by relevance

/trusty/user/app/keymint/
Dsecure_storage_manager.rs482 use test::{expect, expect_eq};
526 expect_eq!(lhs.brand, rhs.brand, "brand doesn't match"); in compare_attestation_ids()
527 expect_eq!(lhs.device, rhs.device, "device doesn't match"); in compare_attestation_ids()
528 expect_eq!(lhs.product, rhs.product, "product doesn't match"); in compare_attestation_ids()
529 expect_eq!(lhs.serial, rhs.serial, "serial doesn't match"); in compare_attestation_ids()
530 expect_eq!(lhs.imei, rhs.imei, "imei doesn't match"); in compare_attestation_ids()
531 expect_eq!(lhs.meid, rhs.meid, "meid doesn't match"); in compare_attestation_ids()
532 expect_eq!(lhs.manufacturer, rhs.manufacturer, "manufacturer doesn't match"); in compare_attestation_ids()
533 expect_eq!(lhs.model, rhs.model, "model doesn't match"); in compare_attestation_ids()
534 expect_eq!(lhs.imei2, rhs.imei2, "imei2 doesn't match"); in compare_attestation_ids()
[all …]
Dsecure_deletion_secret_manager.rs671 use test::{expect, expect_eq, expect_ne};
695 expect_eq!( in secret_data_is_cached()
700 expect_eq!( in secret_data_is_cached()
705 expect_eq!(secret1.secure_deletion_secret, [0; SECRET_SIZE], "Deletion secret should be 0"); in secret_data_is_cached()
711 expect_eq!( in secret_data_is_cached()
721 expect_eq!( in secret_data_is_cached()
743 expect_eq!( in new_secret_data_file_is_clean()
748 expect_eq!( in new_secret_data_file_is_clean()
782 expect_eq!(deletion_slot.0 as usize, slot_num, "Wrong slot used for new secret"); in new_secret_data_file_expands()
794 expect_eq!( in new_secret_data_file_expands()
[all …]
Dkeys.rs302 use test::{expect, expect_eq, expect_ne, skip};
335 expect_eq!(kak1, kak2, "Calls to kak should return the same key"); in kak_two_calls_returns_same_key()
367 expect_eq!(kek1.0, kek2.0, "Calls to root_kek should return the same key"); in kek_two_calls_returns_same_key()
439 expect_eq!(num, 0, "recovered number should be 0"); in deserializing_u32s()
441 expect_eq!(num, 0xffffffff, "recovered number should be 0xffffffff"); in deserializing_u32s()
443 expect_eq!(num, 1, "recovered number should be 1"); in deserializing_u32s()
445 expect_eq!(num, 0x12345678, "recovered number should be 0x12345678"); in deserializing_u32s()
453 expect_eq!(version, u32_version, "Wriong version received"); in os_version_to_u32()
496 expect_eq!(original_ctx, recovered_ctx, "Didn't get back same context"); in test_kek_context_serialization()
499 expect_eq!(original_ctx, recovered_ctx, "Didn't get back same context"); in test_kek_context_serialization()
Dkeybox.rs69 use test::{expect, expect_eq, skip};
95 expect_eq!(original_data, unwrapped_data, "Unwrapped data do not match original one"); in unwrap_fake_keybox_data()
/trusty/user/app/secretkeeper/
Dstore.rs137 use test::expect_eq;
153 expect_eq!(store.get(KEY1), Ok(Some(SECRET1.to_vec()))); in test_secretkeeper_store()
154 expect_eq!(store.get(KEY2), Ok(None)); in test_secretkeeper_store()
156 expect_eq!(store.get(KEY1), Ok(Some(SECRET2.to_vec()))); in test_secretkeeper_store()
157 expect_eq!(store.get(KEY2), Ok(None)); in test_secretkeeper_store()
159 expect_eq!(store.get(KEY1), Ok(Some(SECRET1.to_vec()))); in test_secretkeeper_store()
160 expect_eq!(store.get(KEY2), Ok(None)); in test_secretkeeper_store()
162 expect_eq!(store.get(KEY1), Ok(Some(SECRET1.to_vec()))); in test_secretkeeper_store()
163 expect_eq!(store.get(KEY2), Ok(Some(SECRET1.to_vec()))); in test_secretkeeper_store()
165 expect_eq!(store.get(KEY1), Ok(None)); in test_secretkeeper_store()
[all …]
/trusty/user/app/sample/hwcryptohal/server/
Dhwcrypto_ipc_server.rs59 use test::expect_eq;
66 expect_eq!(session.as_binder().ping_binder(), Ok(())); in connect_server()
Dservice_encryption_key.rs291 use test::{expect, expect_eq};
312 expect_eq!( in header_encryption_decryption()
317 expect_eq!( in header_encryption_decryption()
322 expect_eq!(decrypted_content, b"test_data", "decrypted data do not match"); in header_encryption_decryption()
Dopaque_key.rs571 use test::{expect, expect_eq};
577 expect_eq!(boot_value, boot_value2, "boot unique values should match"); in boot_unique_values_match()
/trusty/user/base/lib/tipc/rust/src/
Dhandle.rs472 use test::expect_eq;
515 expect_eq!( in wait_negative()
529 expect_eq!( in wait_negative()
535 expect_eq!( in wait_negative()
541 expect_eq!( in wait_negative()
549 expect_eq!( in wait_negative()
Dservice.rs1196 use test::{expect, expect_eq};
1244 expect_eq!( in port_create_negative()
1253 expect_eq!( in port_create_negative()
1260 expect_eq!( in port_create_negative()
1267 expect_eq!( in port_create_negative()
1274 expect_eq!( in port_create_negative()
1285 expect_eq!( in port_create_negative()
1303 expect_eq!( in port_create()
1320 expect_eq!( in port_create()
1328 expect_eq!( in port_create()
[all …]
/trusty/user/app/sample/rust-hello-world/
Dlib.rs201 use test::{expect, expect_eq};
234 expect_eq!( in hello_world_test()
/trusty/user/base/lib/unittest-rust/src/
Dmacros.rs51 macro_rules! expect_eq { macro