Home
last modified time | relevance | path

Searched refs:xmlEscaper (Results 1 – 2 of 2) sorted by relevance

/external/guava/guava-tests/test/com/google/common/xml/
DXmlEscapersTest.java58 CharEscaper xmlEscaper, boolean shouldEscapeQuotes, boolean shouldEscapeWhitespaceChars) { in assertBasicXmlEscaper() argument
60 assertEquals("xxx", xmlEscaper.escape("xxx")); in assertBasicXmlEscaper()
61 assertEquals("test & test & test", xmlEscaper.escape("test & test & test")); in assertBasicXmlEscaper()
62 assertEquals("test &lt;&lt; 1", xmlEscaper.escape("test << 1")); in assertBasicXmlEscaper()
63 assertEquals("test &gt;&gt; 1", xmlEscaper.escape("test >> 1")); in assertBasicXmlEscaper()
64 assertEquals("&lt;tab&gt;", xmlEscaper.escape("<tab>")); in assertBasicXmlEscaper()
72 assertEquals(s, xmlEscaper.escape(s)); in assertBasicXmlEscaper()
79 assertEscaping(xmlEscaper, "&#x" + Integer.toHexString(ch).toUpperCase() + ";", ch); in assertBasicXmlEscaper()
81 assertUnescaped(xmlEscaper, ch); in assertBasicXmlEscaper()
85 assertEscaping(xmlEscaper, "\uFFFD", ch); in assertBasicXmlEscaper()
[all …]
/external/guava/android/guava-tests/test/com/google/common/xml/
DXmlEscapersTest.java58 CharEscaper xmlEscaper, boolean shouldEscapeQuotes, boolean shouldEscapeWhitespaceChars) { in assertBasicXmlEscaper() argument
60 assertEquals("xxx", xmlEscaper.escape("xxx")); in assertBasicXmlEscaper()
61 assertEquals("test &amp; test &amp; test", xmlEscaper.escape("test & test & test")); in assertBasicXmlEscaper()
62 assertEquals("test &lt;&lt; 1", xmlEscaper.escape("test << 1")); in assertBasicXmlEscaper()
63 assertEquals("test &gt;&gt; 1", xmlEscaper.escape("test >> 1")); in assertBasicXmlEscaper()
64 assertEquals("&lt;tab&gt;", xmlEscaper.escape("<tab>")); in assertBasicXmlEscaper()
72 assertEquals(s, xmlEscaper.escape(s)); in assertBasicXmlEscaper()
79 assertEscaping(xmlEscaper, "&#x" + Integer.toHexString(ch).toUpperCase() + ";", ch); in assertBasicXmlEscaper()
81 assertUnescaped(xmlEscaper, ch); in assertBasicXmlEscaper()
85 assertEscaping(xmlEscaper, "\uFFFD", ch); in assertBasicXmlEscaper()
[all …]