Lines Matching refs:expect

634     use test::{expect, skip};
668 .expect("Keymint unit test app should be able to connect to the KM secure service"); in test_access_policy()
680 .expect("Couldn't retrieve error code"); in check_response_status()
766 .expect("couldn't construct SetAttestatonKey request"); in set_attestation_keys_certs()
771 let response: KMMessage = session.recv(buf).expect("Didn't get response"); in set_attestation_keys_certs()
773 expect!(km_error_code.is_ok(), "Should be able to call SetAttestatonKeys"); in set_attestation_keys_certs()
799 .expect("couldn't construct SetAttestatonIds request"); in set_attestation_ids_secure()
838 .expect("couldn't construct SetAttestatonIds request"); in set_attestation_ids()
844 let response: KMMessage = session.recv(buf).expect("Didn't get response"); in set_attestation_ids()
846 expect!(km_error_code.is_ok(), "Should be able to call SetAttestationIds"); in set_attestation_ids()
876 .expect("couldn't construct SetBootParams request"); in send_setbootparams_configure_setbootparams_configure()
882 expect!(km_error_code.is_ok(), "Should be able to call SetBootParams"); in send_setbootparams_configure_setbootparams_configure()
887 get_configure_boot_patchlevel_message(boot_patchlevel).expect("Couldn't construct msg"); in send_setbootparams_configure_setbootparams_configure()
893 expect!(km_error_code.is_ok(), "Should be able to call ConfigureBootPatchlevel"); in send_setbootparams_configure_setbootparams_configure()
898 expect!(km_error_code.is_err(), "Shouldn't be able to call SetBootParams a second time"); in send_setbootparams_configure_setbootparams_configure()
903 expect!( in send_setbootparams_configure_setbootparams_configure()
921 get_configure_boot_patchlevel_message(boot_patchlevel).expect("Couldn't construct msg"); in send_configure_configure_setbootparams_setbootparams()
927 expect!(km_error_code.is_ok(), "Should be able to call ConfigureBootPatchlevel"); in send_configure_configure_setbootparams_setbootparams()
932 expect!( in send_configure_configure_setbootparams_setbootparams()
952 .expect("couldn't construct SetBootParams request"); in send_configure_configure_setbootparams_setbootparams()
958 expect!(km_error_code.is_ok(), "Should be able to call SetBootParams"); in send_configure_configure_setbootparams_setbootparams()
963 expect!(km_error_code.is_err(), "Shouldn't be able to call SetBootParams a second time"); in send_configure_configure_setbootparams_setbootparams()
990 .expect("couldn't construct SetBootParams request"); in send_setbootparams_setbootparams_configure_configure()
996 expect!(km_error_code.is_ok(), "Should be able to call SetBootParams"); in send_setbootparams_setbootparams_configure_configure()
1001 expect!(km_error_code.is_err(), "Shouldn't be able to call SetBootParams a second time"); in send_setbootparams_setbootparams_configure_configure()
1006 get_configure_boot_patchlevel_message(boot_patchlevel).expect("Couldn't construct msg"); in send_setbootparams_setbootparams_configure_configure()
1012 expect!(km_error_code.is_ok(), "Should be able to call ConfigureBootPatchlevel"); in send_setbootparams_setbootparams_configure_configure()
1017 expect!( in send_setbootparams_setbootparams_configure_configure()
1035 get_configure_boot_patchlevel_message(boot_patchlevel).expect("Couldn't construct msg"); in send_configure_setbootparams_setbootparams_configure()
1041 expect!(km_error_code.is_ok(), "Should be able to call ConfigureBootPatchlevel"); in send_configure_setbootparams_setbootparams_configure()
1058 .expect("couldn't construct SetBootParams request"); in send_configure_setbootparams_setbootparams_configure()
1064 expect!(km_error_code.is_ok(), "Should be able to call SetBootParams"); in send_configure_setbootparams_setbootparams_configure()
1069 expect!(km_error_code.is_err(), "Shouldn't be able to call SetBootParams a second time"); in send_configure_setbootparams_setbootparams_configure()
1074 expect!( in send_configure_setbootparams_setbootparams_configure()