Searched refs:assert_ok (Results 1 – 5 of 5) sorted by relevance
/trusty/user/app/storage/test/storage-unittest-aidl/unittests/ |
D | mod.rs | 6 use test::{assert_ok, expect, fail}; 29 assert_ok!(ensure_deleted(ss, fname, Exists::Unknown)); in create_delete() 33 let _file = assert_ok!(ss.openFile(fname, CREATE_EXCLUSIVE)); in create_delete() 34 assert_ok!(ss.commitChanges()); in create_delete() 47 assert_ok!(ss.commitChanges()); in create_delete() 52 assert_ok!(ensure_deleted(ss, fname, Exists::Must)); in create_delete() 59 assert_ok!(ensure_deleted(ss, fname1, Exists::Unknown)); in create_move_delete() 60 assert_ok!(ensure_deleted(ss, fname2, Exists::Unknown)); in create_move_delete() 64 let file = assert_ok!(ss.openFile(fname1, CREATE_EXCLUSIVE)); in create_move_delete() 65 assert_ok!(ss.commitChanges()); in create_move_delete() [all …]
|
/trusty/user/app/sample/hwcryptokey-test/ |
D | versioned_keys_explicit.rs | 29 use test::{expect, assert_ok}; 87 assert_ok!(hw_device_key.deriveCurrentDicePolicyBoundKey(&device_bound_key)); in generate_new_policy_and_clear_key() 103 let derived_key1 = assert_ok!(hw_device_key.deriveKey(¶ms)); in generate_new_policy_and_clear_key() 115 assert_ok!(hw_device_key.deriveDicePolicyBoundKey(&device_bound_key, &dice_policy)); in generate_new_policy_and_clear_key() 127 let derived_key2 = assert_ok!(hw_device_key.deriveKey(¶ms)); in generate_new_policy_and_clear_key() 146 assert_ok!(hw_device_key.deriveCurrentDicePolicyBoundKey(&device_bound_key)); in generate_new_policy_and_clear_key() 161 let derived_key3 = assert_ok!(hw_device_key.deriveKey(¶ms)); in generate_new_policy_and_clear_key() 183 let key_and_policy = assert_ok!( in old_dice_generates_old_clear_key_and_new_policy() 201 let derived_key = assert_ok!(hw_device_key.deriveKey(¶ms)); in old_dice_generates_old_clear_key_and_new_policy() 223 let key_and_policy = assert_ok!( in dice_updates_are_unique() [all …]
|
/trusty/user/app/storage/test/storage-unittest-aidl/ |
D | lib.rs | 19 use test::assert_ok; 38 let secure_storage = assert_ok!(connect()); in ping() 39 assert_ok!(secure_storage.as_binder().ping_binder()); in ping() 77 use test::assert_ok; 82 let ss = assert_ok!(start_session($file_properties)); 87 let ss = assert_ok!(start_session($file_properties)); 92 let ss = assert_ok!(start_session($file_properties)); 97 let ss = assert_ok!(start_session($file_properties));
|
/trusty/user/app/sample/hwcryptohal/server/ |
D | hwcrypto_device_key.rs | 376 use test::{assert_ok, expect}; 386 assert_ok!(hw_device_key.deriveCurrentDicePolicyBoundKey(&derivation_key)); in derived_dice_bound_keys() 392 assert_ok!(hw_device_key.deriveDicePolicyBoundKey(&derivation_key, &policy)); in derived_dice_bound_keys() 400 assert_ok!(hw_device_key.deriveCurrentDicePolicyBoundKey(&derivation_key)); in derived_dice_bound_keys() 406 assert_ok!(hw_device_key.deriveDicePolicyBoundKey(&derivation_key, &policy)); in derived_dice_bound_keys() 421 assert_ok!(hw_device_key.deriveCurrentDicePolicyBoundKey(&derivation_key)); in derived_clear_key() 438 let derived_key = assert_ok!(hw_device_key.deriveKey(¶ms)); in derived_clear_key() 445 assert_ok!(hw_device_key.deriveDicePolicyBoundKey(&derivation_key, &policy)); in derived_clear_key() 451 let derived_key = assert_ok!(hw_device_key.deriveKey(¶ms)); in derived_clear_key() 459 let derived_key = assert_ok!(hw_device_key.deriveKey(¶ms)); in derived_clear_key()
|
/trusty/user/base/lib/unittest-rust/src/ |
D | macros.rs | 248 macro_rules! assert_ok { macro
|