Searched refs:PrefixForNs (Results 1 – 3 of 3) sorted by relevance
/external/webrtc/webrtc/libjingle/xmllite/ |
D | xmlnsstack_unittest.cc | 33 EXPECT_EQ("xml", stack.PrefixForNs(NS_XML, false).first); in TEST() 34 EXPECT_EQ("xmlns", stack.PrefixForNs(NS_XMLNS, false).first); in TEST() 35 EXPECT_EQ("", stack.PrefixForNs("", false).first); in TEST() 36 EXPECT_EQ("", stack.PrefixForNs("", true).first); in TEST() 63 EXPECT_EQ("", stack.PrefixForNs("ns1", false).first); in TEST() 64 EXPECT_FALSE(stack.PrefixForNs("ns1", false).second); in TEST() 65 EXPECT_EQ("", stack.PrefixForNs("ns1", true).first); in TEST() 66 EXPECT_FALSE(stack.PrefixForNs("ns1", true).second); in TEST() 67 EXPECT_EQ("pre3", stack.PrefixForNs("ns2", false).first); in TEST() 68 EXPECT_TRUE(stack.PrefixForNs("ns2", false).second); in TEST() [all …]
|
D | xmlnsstack.cc | 75 std::pair<std::string, bool> XmlnsStack::PrefixForNs(const std::string& ns, in PrefixForNs() function in buzz::XmlnsStack 96 std::string prefix(PrefixForNs(name.Namespace(), isAttr).first); in FormatQName() 157 if (PrefixForNs(ns, isAttr).second) in AddNewPrefix()
|
D | xmlnsstack.h | 34 std::pair<std::string, bool> PrefixForNs(const std::string& ns, bool isAttr);
|