Searched refs:fromXml (Results 1 – 3 of 3) sorted by relevance
72 … TestLog log = TestLog.fromXml(newXml("<TestLog type=\"logcat\" url=\"http://logs/baz_test\">")); in testFromXml()78 assertNull(TestLog.fromXml(newXml("<TestLog type=\"kmsg\" url=\"http://logs/baz_test\">"))); in testFromXml_unrecognizedType()82 assertNull(TestLog.fromXml(newXml("<TestLog url=\"http://logs/baz_test\">"))); in testFromXml_noTypeAttribute()86 assertNull(TestLog.fromXml(newXml("<TestLog type=\"bugreport\">"))); in testFromXml_noUrlAttribute()90 assertNull(TestLog.fromXml(newXml("<TestLog>"))); in testFromXml_allNull()
97 static TestLog fromXml(XmlPullParser parser) { in fromXml() method in TestLog
238 TestLog log = TestLog.fromXml(parser); in parseTestLog()