Home
last modified time | relevance | path

Searched refs:test_tree (Results 1 – 14 of 14) sorted by relevance

/aosp_15_r20/external/selinux/libsepol/cil/test/unit/
H A Dtest_cil_build_ast.c66 struct cil_tree *test_tree; in test_cil_parse_to_list() local
67 gen_test_tree(&test_tree, line); in test_cil_parse_to_list()
70 test_current = test_tree->root->cl_head->cl_head; in test_cil_parse_to_list()
97 struct cil_tree *test_tree; in test_cil_parse_to_list_currnull_neg() local
98 gen_test_tree(&test_tree, line); in test_cil_parse_to_list_currnull_neg()
101 test_current = test_tree->root->cl_head->cl_head; in test_cil_parse_to_list_currnull_neg()
128 struct cil_tree *test_tree; in test_cil_parse_to_list_listnull_neg() local
129 gen_test_tree(&test_tree, line); in test_cil_parse_to_list_listnull_neg()
132 test_current = test_tree->root->cl_head->cl_head; in test_cil_parse_to_list_listnull_neg()
157 struct cil_tree *test_tree; in test_cil_set_to_list() local
[all …]
H A Dtest_cil_resolve_ast.c71 struct cil_tree *test_tree; in test_cil_resolve_name() local
72 gen_test_tree(&test_tree, line); in test_cil_resolve_name()
80 cil_build_ast(test_db, test_tree->root, test_db->ast->root); in test_cil_resolve_name()
95 struct cil_tree *test_tree; in test_cil_resolve_name_invalid_type_neg() local
96 gen_test_tree(&test_tree, line); in test_cil_resolve_name_invalid_type_neg()
104 cil_build_ast(test_db, test_tree->root, test_db->ast->root); in test_cil_resolve_name_invalid_type_neg()
134 struct cil_tree *test_tree; in test_cil_resolve_roleallow() local
135 gen_test_tree(&test_tree, line); in test_cil_resolve_roleallow()
143 cil_build_ast(test_db, test_tree->root, test_db->ast->root); in test_cil_resolve_roleallow()
153 struct cil_tree *test_tree; in test_cil_resolve_roleallow_srcdecl_neg() local
[all …]
H A Dtest_cil_copy_ast.c59 struct cil_tree *test_tree; in test_cil_copy_list() local
62 gen_test_tree(&test_tree, line); in test_cil_copy_list()
65 cil_set_to_list(test_tree->root->cl_head, cil_l, 1); in test_cil_copy_list()
81 struct cil_tree *test_tree; in test_cil_copy_list_sublist() local
84 gen_test_tree(&test_tree, line); in test_cil_copy_list_sublist()
87 cil_set_to_list(test_tree->root->cl_head, cil_l, 1); in test_cil_copy_list_sublist()
105 struct cil_tree *test_tree; in test_cil_copy_list_sublist_extra() local
108 gen_test_tree(&test_tree, line); in test_cil_copy_list_sublist_extra()
111 cil_set_to_list(test_tree->root->cl_head, cil_l, 1); in test_cil_copy_list_sublist_extra()
131 struct cil_tree *test_tree; in test_cil_copy_list_orignull_neg() local
[all …]
H A Dtest_cil_list.c51 struct cil_tree *test_tree; in test_cil_list_append_item() local
52 gen_test_tree(&test_tree, line); in test_cil_list_append_item()
70 test_new_item->data = test_tree->root->cl_head->cl_head->next->cl_head; in test_cil_list_append_item()
79 struct cil_tree *test_tree; in test_cil_list_append_item_append() local
80 gen_test_tree(&test_tree, line); in test_cil_list_append_item_append()
98 test_new_item->data = test_tree->root->cl_head->cl_head->next->cl_head; in test_cil_list_append_item_append()
105 test_new_item->data = test_tree->root->cl_head->cl_head->next->cl_head->next; in test_cil_list_append_item_append()
115 struct cil_tree *test_tree; in test_cil_list_append_item_append_extra() local
116 gen_test_tree(&test_tree, line); in test_cil_list_append_item_append_extra()
134 test_new_item->data = test_tree->root->cl_head->cl_head->next->cl_head; in test_cil_list_append_item_append_extra()
[all …]
H A Dtest_cil_tree.c55 struct cil_tree *test_tree; in test_cil_tree_init() local
57 int rc = cil_tree_init(&test_tree); in test_cil_tree_init()
60 CuAssertPtrNotNull(tc, test_tree); in test_cil_tree_init()
61 CuAssertPtrEquals(tc, NULL, test_tree->root->cl_head); in test_cil_tree_init()
62 CuAssertPtrEquals(tc, NULL, test_tree->root->cl_tail); in test_cil_tree_init()
63 CuAssertPtrEquals(tc, NULL, test_tree->root->parent); in test_cil_tree_init()
64 CuAssertPtrEquals(tc, NULL, test_tree->root->data); in test_cil_tree_init()
65 CuAssertPtrEquals(tc, NULL, test_tree->root->next); in test_cil_tree_init()
66 CuAssertIntEquals(tc, 0, test_tree->root->flavor); in test_cil_tree_init()
67 CuAssertIntEquals(tc, 0, test_tree->root->line); in test_cil_tree_init()
[all …]
/aosp_15_r20/external/rust/android-crates-io/crates/mls-rs/src/tree_kem/
Dtree_validator.rs198 let mut test_tree = get_test_tree(cipher_suite).await; in get_valid_tree() localVariable
203 test_tree in get_valid_tree()
213 test_tree.public.nodes[1] = Some(Node::Parent(test_parent_node(cipher_suite).await)); in get_valid_tree()
214 test_tree.public.nodes[3] = Some(Node::Parent(test_parent_node(cipher_suite).await)); in get_valid_tree()
216 TreeKem::new(&mut test_tree.public, &mut test_tree.private) in get_valid_tree()
220 &test_tree.creator_signing_key, in get_valid_tree()
230 test_tree.public in get_valid_tree()
238 let mut test_tree = get_valid_tree(cipher_suite).await; in test_valid_tree() localVariable
241 context.tree_hash = test_tree.tree_hash(&cipher_suite_provider).await.unwrap(); in test_valid_tree()
246 validator.validate(&mut test_tree).await.unwrap(); in test_valid_tree()
[all …]
Dparent_hash.rs375 let mut test_tree = TreeWithSigners::make_full_tree(8, &cs).await.tree; in test_missing_parent_hash() localVariable
377 *test_tree.nodes.borrow_as_leaf_mut(LeafIndex(0)).unwrap() = in test_missing_parent_hash()
380 let missing_parent_hash_res = test_tree in test_missing_parent_hash()
397 let mut test_tree = TreeWithSigners::make_full_tree(8, &cs).await.tree; in test_parent_hash_mismatch() localVariable
401 test_tree in test_parent_hash_mismatch()
407 let invalid_parent_hash_res = test_tree in test_parent_hash_mismatch()
421 let mut test_tree = TreeWithSigners::make_full_tree(8, &cs).await.tree; in test_parent_hash_invalid() localVariable
423 test_tree.nodes[2] = None; in test_parent_hash_invalid()
425 let res = test_tree in test_parent_hash_invalid()
Dmod.rs975 let test_tree = get_test_tree(cipher_suite).await; in test_derive() localVariable
978 test_tree.public.nodes[0], in test_derive()
979 Some(Node::Leaf(test_tree.creator_leaf.clone())) in test_derive()
982 assert_eq!(test_tree.private.self_index, LeafIndex(0)); in test_derive()
985 test_tree.private.secret_keys[0], in test_derive()
986 Some(test_tree.creator_hpke_secret) in test_derive()
994 let mut test_tree = get_test_tree(TEST_CIPHER_SUITE).await; in test_import_export() localVariable
998 test_tree in test_import_export()
1009 test_tree.public.nodes.clone(), in test_import_export()
1016 assert_eq!(test_tree.public.nodes, imported.nodes); in test_import_export()
[all …]
Dkem.rs556 let (mut test_tree, mut encap_private_key) = TreeKemPublic::derive( in encap_decap()
565 test_tree in encap_decap()
571 let mut encap_tree = test_tree.clone(); in encap_decap()
606 let filtered = test_tree.nodes.filtered(LeafIndex(0)).unwrap(); in encap_decap()
628 let mut receiver_trees: Vec<TreeKemPublic> = (1..size).map(|_| test_tree.clone()).collect(); in encap_decap()
/aosp_15_r20/build/blueprint/tests/test_tree/
H A DBlueprints1 // Root Blueprints file for test_tree
/aosp_15_r20/build/blueprint/tests/
H A Dtest_tree_tests.sh24 cp -r tests/test_tree "${SRCDIR}"
/aosp_15_r20/external/rust/android-crates-io/crates/mls-rs/src/group/
Dsecret_tree.rs669 let mut test_tree = get_test_tree(test_secret, leaf_count.clone()); in test_secret_tree_custom() localVariable
674 let secret = test_tree in test_secret_tree_custom()
683 assert!(!all_deleted || test_tree.known_secrets.inner.is_empty()); in test_secret_tree_custom()
/aosp_15_r20/external/libxml2/
H A Dtestapi.c1197 static int test_tree(void);
1248 test_ret += test_tree(); in testlibxml2()
24340 test_tree(void) { in test_tree() function
45770 if (!strcmp(module, "tree")) return(test_tree()); in test_module()
/aosp_15_r20/external/cronet/third_party/libxml/src/
H A Dtestapi.c1203 static int test_tree(void);
1255 test_ret += test_tree(); in testlibxml2()
23782 test_tree(void) { in test_tree() function
51739 if (!strcmp(module, "tree")) return(test_tree()); in test_module()