Public Member Functions | |
virtual void | OnTestIterationEnd (const UnitTest &unit_test, int iteration) |
XmlUnitTestResultPrinter (const char *output_file) | |
Private Member Functions | |
GTEST_DISALLOW_COPY_AND_ASSIGN_ (XmlUnitTestResultPrinter) | |
Static Private Member Functions | |
static String | EscapeXml (const char *str, bool is_attribute) |
static String | EscapeXmlAttribute (const char *str) |
static String | EscapeXmlText (const char *str) |
static bool | IsNormalizableWhitespace (char c) |
static bool | IsValidXmlCharacter (char c) |
static void | OutputXmlCDataSection (::std::ostream *stream, const char *data) |
static void | OutputXmlTestInfo (::std::ostream *stream, const char *test_case_name, const TestInfo &test_info) |
static void | PrintXmlTestCase (FILE *out, const TestCase &test_case) |
static void | PrintXmlUnitTest (FILE *out, const UnitTest &unit_test) |
static string | RemoveInvalidXmlCharacters (const string &str) |
static String | TestPropertiesAsXmlAttributes (const TestResult &result) |
Private Attributes | |
const String | output_file_ |
testing::internal::XmlUnitTestResultPrinter::XmlUnitTestResultPrinter | ( | const char * | output_file | ) | [explicit] |
String testing::internal::XmlUnitTestResultPrinter::EscapeXml | ( | const char * | str, |
bool | is_attribute | ||
) | [static, private] |
static String testing::internal::XmlUnitTestResultPrinter::EscapeXmlAttribute | ( | const char * | str | ) | [inline, static, private] |
static String testing::internal::XmlUnitTestResultPrinter::EscapeXmlText | ( | const char * | str | ) | [inline, static, private] |
testing::internal::XmlUnitTestResultPrinter::GTEST_DISALLOW_COPY_AND_ASSIGN_ | ( | XmlUnitTestResultPrinter | ) | [private] |
static bool testing::internal::XmlUnitTestResultPrinter::IsNormalizableWhitespace | ( | char | c | ) | [inline, static, private] |
static bool testing::internal::XmlUnitTestResultPrinter::IsValidXmlCharacter | ( | char | c | ) | [inline, static, private] |
void testing::internal::XmlUnitTestResultPrinter::OnTestIterationEnd | ( | const UnitTest & | unit_test, |
int | iteration | ||
) | [virtual] |
Reimplemented from testing::EmptyTestEventListener.
void testing::internal::XmlUnitTestResultPrinter::OutputXmlCDataSection | ( | ::std::ostream * | stream, |
const char * | data | ||
) | [static, private] |
void testing::internal::XmlUnitTestResultPrinter::OutputXmlTestInfo | ( | ::std::ostream * | stream, |
const char * | test_case_name, | ||
const TestInfo & | test_info | ||
) | [static, private] |
void testing::internal::XmlUnitTestResultPrinter::PrintXmlTestCase | ( | FILE * | out, |
const TestCase & | test_case | ||
) | [static, private] |
void testing::internal::XmlUnitTestResultPrinter::PrintXmlUnitTest | ( | FILE * | out, |
const UnitTest & | unit_test | ||
) | [static, private] |
string testing::internal::XmlUnitTestResultPrinter::RemoveInvalidXmlCharacters | ( | const string & | str | ) | [static, private] |
String testing::internal::XmlUnitTestResultPrinter::TestPropertiesAsXmlAttributes | ( | const TestResult & | result | ) | [static, private] |
const String testing::internal::XmlUnitTestResultPrinter::output_file_ [private] |