Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
beltram committed Nov 27, 2023
1 parent 51650ed commit a2af6b3
Show file tree
Hide file tree
Showing 14 changed files with 19 additions and 8 deletions.
1 change: 1 addition & 0 deletions openmls/src/group/tests/external_add_proposal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ use crate::{
use openmls_traits::types::Ciphersuite;

use super::utils::*;
use crate::test_utils::*;

wasm_bindgen_test::wasm_bindgen_test_configure!(run_in_browser);

Expand Down
1 change: 1 addition & 0 deletions openmls/src/group/tests/external_remove_proposal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ use crate::{
use openmls_traits::types::Ciphersuite;

use super::utils::*;
use crate::test_utils::*;

wasm_bindgen_test::wasm_bindgen_test_configure!(run_in_browser);

Expand Down
1 change: 1 addition & 0 deletions openmls/src/group/tests/test_commit_validation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ use tls_codec::{Deserialize, Serialize};
use super::utils::{
generate_credential_with_key, generate_key_package, resign_message, CredentialWithKeyAndSigner,
};
use crate::test_utils::*;
use crate::{
binary_tree::LeafNodeIndex,
ciphersuite::signable::Signable,
Expand Down
1 change: 1 addition & 0 deletions openmls/src/group/tests/test_external_commit_validation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ use rstest_reuse::apply;
use tls_codec::{Deserialize, Serialize};

use self::utils::*;
use crate::test_utils::*;
use crate::{
ciphersuite::{hash_ref::ProposalRef, signable::Verifiable},
framing::{
Expand Down
1 change: 1 addition & 0 deletions openmls/src/group/tests/test_framing_validation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ use crate::{
use super::utils::{
generate_credential_with_key, generate_key_package, CredentialWithKeyAndSigner,
};
use crate::test_utils::*;

wasm_bindgen_test::wasm_bindgen_test_configure!(run_in_browser);

Expand Down
1 change: 1 addition & 0 deletions openmls/src/group/tests/test_past_secrets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
use openmls_rust_crypto::OpenMlsRustCrypto;
use openmls_traits::{types::Ciphersuite, OpenMlsCryptoProvider};

use crate::test_utils::*;
use rstest::*;
use rstest_reuse::{self, *};

Expand Down
1 change: 1 addition & 0 deletions openmls/src/group/tests/test_proposal_validation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ use tls_codec::{Deserialize, Serialize};
use super::utils::{
generate_credential_with_key, generate_key_package, resign_message, CredentialWithKeyAndSigner,
};
use crate::test_utils::*;
use crate::{
binary_tree::LeafNodeIndex,
ciphersuite::hash_ref::ProposalRef,
Expand Down
1 change: 1 addition & 0 deletions openmls/src/group/tests/test_wire_format_policy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ use openmls_traits::{signatures::Signer, types::Ciphersuite, OpenMlsCryptoProvid
use rstest::*;
use rstest_reuse::{self, *};

use crate::test_utils::*;
use crate::{
framing::*,
group::{config::CryptoConfig, errors::*, *},
Expand Down
6 changes: 3 additions & 3 deletions openmls/src/messages/tests/test_codec.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
use openmls_rust_crypto::OpenMlsRustCrypto;
use tls_codec::{Deserialize, Serialize};

use crate::test_utils::*;
use crate::{
extensions::Extensions,
group::GroupId,
messages::{PreSharedKeyProposal, ProtocolVersion, ReInitProposal},
schedule::psk::{ExternalPsk, PreSharedKeyId, Psk, ResumptionPsk, ResumptionPskUsage},
test_utils::*,
};
use openmls_rust_crypto::OpenMlsRustCrypto;
use tls_codec::{Deserialize, Serialize};

wasm_bindgen_test::wasm_bindgen_test_configure!(run_in_browser);

Expand Down
4 changes: 2 additions & 2 deletions openmls/src/messages/tests/test_export_group_info.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use tls_codec::{Deserialize, Serialize};

use crate::test_utils::*;
use crate::{
ciphersuite::signable::Verifiable,
group::test_core_group::setup_alice_group,
Expand All @@ -9,6 +8,7 @@ use crate::{
},
test_utils::*,
};
use tls_codec::{Deserialize, Serialize};

wasm_bindgen_test::wasm_bindgen_test_configure!(run_in_browser);

Expand Down
6 changes: 3 additions & 3 deletions openmls/src/messages/tests/test_proposals.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
use openmls_rust_crypto::OpenMlsRustCrypto;
use tls_codec::{Deserialize, Serialize};

use crate::test_utils::*;
use crate::{
binary_tree::LeafNodeIndex,
ciphersuite::hash_ref::ProposalRef,
Expand All @@ -10,6 +8,8 @@ use crate::{
},
test_utils::*,
};
use openmls_rust_crypto::OpenMlsRustCrypto;
use tls_codec::{Deserialize, Serialize};

wasm_bindgen_test::wasm_bindgen_test_configure!(run_in_browser);

Expand Down
1 change: 1 addition & 0 deletions openmls/src/messages/tests/test_welcome.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
use crate::test_utils::*;
use openmls_basic_credential::SignatureKeyPair;
use openmls_rust_crypto::OpenMlsRustCrypto;
use openmls_traits::{
Expand Down
1 change: 1 addition & 0 deletions openmls/src/treesync/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -719,6 +719,7 @@ impl TreeSync {
#[cfg(test)]
mod test {
use super::*;
use crate::test_utils::*;

#[cfg(debug_assertions)]
#[test]
Expand Down
1 change: 1 addition & 0 deletions openmls/src/treesync/tests_and_kats/tests/test_diff.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use openmls_traits::{types::Ciphersuite, OpenMlsCryptoProvider};
use rstest::*;
use rstest_reuse::apply;

use crate::test_utils::*;
use crate::{
credentials::test_utils::new_credential,
key_packages::KeyPackageBundle,
Expand Down

0 comments on commit a2af6b3

Please sign in to comment.