Searched refs:test_node (Results 1 – 2 of 2) sorted by relevance
/system/core/property_service/libpropertyinfoserializer/ |
D | trie_builder_test.cpp | 54 auto* test_node = builder_root.FindChild("test"); in TEST() local 55 EXPECT_EQ("test", test_node->name()); in TEST() 56 ASSERT_NE(nullptr, test_node->context()); in TEST() 57 EXPECT_EQ("1st", *test_node->context()); in TEST() 58 ASSERT_NE(nullptr, test_node->type()); in TEST() 59 EXPECT_EQ("1st_type", *test_node->type()); in TEST() 61 EXPECT_EQ(0U, test_node->children().size()); in TEST() 62 EXPECT_EQ(1U, test_node->prefixes().size()); in TEST() 64 auto& property_entry = test_node->prefixes()[0]; in TEST() 71 EXPECT_EQ(3U, test_node->exact_matches().size()); in TEST() [all …]
|
D | property_info_serializer_test.cpp | 57 TrieNode test_node; in TEST() local 58 ASSERT_TRUE(root_node.FindChildForString("test", 4, &test_node)); in TEST() 60 EXPECT_STREQ("test", test_node.name()); in TEST() 61 EXPECT_STREQ("1st", property_info_area->context(test_node.context_index())); in TEST() 62 EXPECT_STREQ("1st", property_info_area->type(test_node.type_index())); in TEST() 64 EXPECT_EQ(0U, test_node.num_child_nodes()); in TEST() 66 EXPECT_EQ(1U, test_node.num_prefixes()); in TEST() 68 auto prefix = test_node.prefix(0); in TEST() 75 EXPECT_EQ(3U, test_node.num_exact_matches()); in TEST() 77 auto match1 = test_node.exact_match(0); in TEST() [all …]
|