Home
last modified time | relevance | path

Searched refs:XmlEncode (Results 1 – 3 of 3) sorted by relevance

/system/update_engine/
Domaha_request_action.h56 bool XmlEncode(const std::string& input, std::string* output);
Domaha_request_action.cc244 if (!XmlEncode(cohort_value, &escaped_xml_value)) { in GetCohortArgXml()
648 bool XmlEncode(const string& input, string* output) { in XmlEncode() function
686 if (XmlEncode(input, &output)) in XmlEncodeWithDefault()
Domaha_request_action_unittest.cc1739 EXPECT_TRUE(XmlEncode("ab", &output)); in TEST_F()
1741 EXPECT_TRUE(XmlEncode("a<b", &output)); in TEST_F()
1743 EXPECT_TRUE(XmlEncode("<&>\"\'\\", &output)); in TEST_F()
1745 EXPECT_TRUE(XmlEncode("&lt;&amp;&gt;", &output)); in TEST_F()
1748 EXPECT_FALSE(XmlEncode("\xc2", &output)); in TEST_F()
1750 EXPECT_FALSE(XmlEncode("This is an 'n' with a tilde: \xc3\xb1", &output)); in TEST_F()