Home | History | Annotate | Download | only in util

Lines Matching defs:res

146     Maybe<std::u16string> res = util::getFullyQualifiedClassName(u"android", u"asdf");
147 AAPT_ASSERT_FALSE(res);
149 res = util::getFullyQualifiedClassName(u"android", u".asdf");
150 AAPT_ASSERT_TRUE(res);
151 EXPECT_EQ(res.value(), u"android.asdf");
153 res = util::getFullyQualifiedClassName(u"android", u".a.b");
154 AAPT_ASSERT_TRUE(res);
155 EXPECT_EQ(res.value(), u"android.a.b");
157 res = util::getFullyQualifiedClassName(u"android", u"a.b");
158 AAPT_ASSERT_TRUE(res);
159 EXPECT_EQ(res.value(), u"a.b");
161 res = util::getFullyQualifiedClassName(u"", u"a.b");
162 AAPT_ASSERT_TRUE(res);
163 EXPECT_EQ(res.value(), u"a.b");
165 res = util::getFullyQualifiedClassName(u"", u"");
166 AAPT_ASSERT_FALSE(res);
168 res = util::getFullyQualifiedClassName(u"android", u"./Apple");
169 AAPT_ASSERT_FALSE(res);
174 ASSERT_TRUE(util::extractResFilePathParts(u"res/xml-sw600dp/entry.xml", &prefix, &entry,
176 EXPECT_EQ(prefix, u"res/xml-sw600dp/");
180 ASSERT_TRUE(util::extractResFilePathParts(u"res/xml-sw600dp/entry.9.png", &prefix, &entry,
183 EXPECT_EQ(prefix, u"res/xml-sw600dp/");
188 EXPECT_FALSE(util::extractResFilePathParts(u"res/.xml", &prefix, &entry, &suffix));
190 ASSERT_TRUE(util::extractResFilePathParts(u"res//.", &prefix, &entry, &suffix));
191 EXPECT_EQ(prefix, u"res//");