Home
last modified time | relevance | path

Searched refs:AddNewPrefix (Results 1 – 4 of 4) sorted by relevance

/external/chromium_org/third_party/libjingle/source/talk/xmllite/
Dxmlnsstack_unittest.cc186 EXPECT_FALSE(stack.AddNewPrefix("", true).second); in TEST()
187 EXPECT_FALSE(stack.AddNewPrefix("", false).second); in TEST()
188 EXPECT_FALSE(stack.AddNewPrefix(NS_XML, true).second); in TEST()
189 EXPECT_FALSE(stack.AddNewPrefix(NS_XML, false).second); in TEST()
190 EXPECT_FALSE(stack.AddNewPrefix(NS_XMLNS, true).second); in TEST()
191 EXPECT_FALSE(stack.AddNewPrefix(NS_XMLNS, false).second); in TEST()
194 EXPECT_EQ("foo", stack.AddNewPrefix("http://a.b.com/foo.htm", true).first); in TEST()
195 EXPECT_EQ("bare", stack.AddNewPrefix("http://a.b.com/bare", false).first); in TEST()
196 EXPECT_EQ("z", stack.AddNewPrefix("z", false).first); in TEST()
197 EXPECT_FALSE(stack.AddNewPrefix("http://a.b.com/foo.htm", true).second); in TEST()
[all …]
Dxmlprinter.cc86 prefix = ns_stack_->AddNewPrefix(element->Name().Namespace(), false); in PrintElement()
93 prefix = ns_stack_->AddNewPrefix(attr->Name().Namespace(), true); in PrintElement()
Dxmlnsstack.h52 std::pair<std::string, bool> AddNewPrefix(const std::string& ns, bool isAttr);
Dxmlnsstack.cc172 std::pair<std::string, bool> XmlnsStack::AddNewPrefix(const std::string& ns, in AddNewPrefix() function in buzz::XmlnsStack