Searched refs:flag_attr (Results 1 – 2 of 2) sorted by relevance
350 Attribute* flag_attr = test::GetValue<Attribute>(&table_, "attr/foo"); in TEST_F() local351 ASSERT_THAT(flag_attr, NotNull()); in TEST_F()352 EXPECT_THAT(flag_attr->type_mask, Eq(ResTable_map::TYPE_FLAGS)); in TEST_F()353 ASSERT_THAT(flag_attr->symbols, SizeIs(3)); in TEST_F()355 ASSERT_TRUE(flag_attr->symbols[0].symbol.name); in TEST_F()356 EXPECT_THAT(flag_attr->symbols[0].symbol.name.value().entry, Eq("bar")); in TEST_F()357 EXPECT_THAT(flag_attr->symbols[0].value, Eq(0u)); in TEST_F()359 ASSERT_TRUE(flag_attr->symbols[1].symbol.name); in TEST_F()360 EXPECT_THAT(flag_attr->symbols[1].symbol.name.value().entry, Eq("bat")); in TEST_F()361 EXPECT_THAT(flag_attr->symbols[1].value, Eq(1u)); in TEST_F()[all …]
346 std::unique_ptr<BinaryPrimitive> TryParseFlagSymbol(const Attribute* flag_attr, in TryParseFlagSymbol() argument361 for (const Attribute::Symbol& symbol : flag_attr->symbols) { in TryParseFlagSymbol()