Available on crate features
testing only.Expand description
Testing facilities and helpers for crypto tests
Re-exports§
pub use crate::identities::device::testing::get_device;pub use crate::identities::user::testing::get_other_identity;pub use crate::identities::user::testing::get_own_identity;pub use crate::identities::user::testing::simulate_key_query_response_for_verification;pub use crate::store::HISTORIC_ROOM_KEY_BUNDLES_BROADCASTER_CAPACITY;pub use crate::store::IDENTITIES_BROADCASTER_CAPACITY;pub use crate::store::ROOM_KEYS_RECEIVED_CAPACITY;pub use crate::store::ROOM_KEYS_WITHHELD_RECEIVED_CAPACITY;pub use crate::store::SECRETS_BROADCASTER_CAPACITY;
Functions§
- get_
device - Generate default
DeviceDatafor tests - get_
other_ identity - Generate default other identify for tests
- get_
own_ identity - Generate default own identity for tests
- simulate_
key_ query_ response_ for_ verification - When we want to test identities that are verified, we need to simulate the verification process. This function supports that by simulating what happens when a successful verification dance happens and providing the /keys/query response we would get when that happened.