CHROMA
|
Public Member Functions | |
XmlUnitTestResultPrinter (const char *output_file) | |
virtual void | OnTestIterationEnd (const UnitTest &unit_test, int iteration) |
Public Member Functions inherited from testing::EmptyTestEventListener | |
virtual void | OnTestProgramStart (const UnitTest &) |
virtual void | OnTestIterationStart (const UnitTest &, int) |
virtual void | OnEnvironmentsSetUpStart (const UnitTest &) |
virtual void | OnEnvironmentsSetUpEnd (const UnitTest &) |
virtual void | OnTestCaseStart (const TestCase &) |
virtual void | OnTestStart (const TestInfo &) |
virtual void | OnTestPartResult (const TestPartResult &) |
virtual void | OnTestEnd (const TestInfo &) |
virtual void | OnTestCaseEnd (const TestCase &) |
virtual void | OnEnvironmentsTearDownStart (const UnitTest &) |
virtual void | OnEnvironmentsTearDownEnd (const UnitTest &) |
virtual void | OnTestProgramEnd (const UnitTest &) |
Public Member Functions inherited from testing::TestEventListener | |
virtual | ~TestEventListener () |
Private Member Functions | |
GTEST_DISALLOW_COPY_AND_ASSIGN_ (XmlUnitTestResultPrinter) | |
Static Private Member Functions | |
static bool | IsNormalizableWhitespace (char c) |
static bool | IsValidXmlCharacter (char c) |
static std::string | EscapeXml (const std::string &str, bool is_attribute) |
static std::string | RemoveInvalidXmlCharacters (const std::string &str) |
static std::string | EscapeXmlAttribute (const std::string &str) |
static std::string | EscapeXmlText (const char *str) |
static void | OutputXmlAttribute (std::ostream *stream, const std::string &element_name, const std::string &name, const std::string &value) |
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 (::std::ostream *stream, const TestCase &test_case) |
static void | PrintXmlUnitTest (::std::ostream *stream, const UnitTest &unit_test) |
static std::string | TestPropertiesAsXmlAttributes (const TestResult &result) |
Private Attributes | |
const std::string | output_file_ |
Definition at line 4496 of file gtest-all.cc.
|
explicit |
Definition at line 4569 of file gtest-all.cc.
References output_file_.
|
staticprivate |
Definition at line 4623 of file gtest-all.cc.
References testing::internal::String::FormatByte(), i, IsNormalizableWhitespace(), IsValidXmlCharacter(), and m.
Referenced by EscapeXmlAttribute(), and EscapeXmlText().
|
inlinestaticprivate |
Definition at line 4524 of file gtest-all.cc.
References EscapeXml().
Referenced by OutputXmlAttribute(), OutputXmlTestInfo(), and TestPropertiesAsXmlAttributes().
|
inlinestaticprivate |
Definition at line 4529 of file gtest-all.cc.
References EscapeXml().
|
private |
|
inlinestaticprivate |
Definition at line 4505 of file gtest-all.cc.
References c.
Referenced by EscapeXml(), and IsValidXmlCharacter().
|
inlinestaticprivate |
Definition at line 4510 of file gtest-all.cc.
References c, and IsNormalizableWhitespace().
Referenced by EscapeXml(), and RemoveInvalidXmlCharacters().
|
virtual |
Reimplemented from testing::EmptyTestEventListener.
Definition at line 4579 of file gtest-all.cc.
References testing::internal::FilePath::CreateDirectoriesRecursively(), testing::internal::posix::FOpen(), output_file_, PrintXmlUnitTest(), testing::internal::FilePath::RemoveFileName(), and testing::internal::StringStreamToString().
|
staticprivate |
Definition at line 4749 of file gtest-all.cc.
References EscapeXmlAttribute(), testing::GetReservedAttributesForElement(), GTEST_CHECK_, and Chroma::AsqtadFermActEnv::name.
Referenced by OutputXmlTestInfo(), PrintXmlTestCase(), and PrintXmlUnitTest().
|
staticprivate |
Definition at line 4730 of file gtest-all.cc.
Referenced by OutputXmlTestInfo().
|
staticprivate |
Definition at line 4767 of file gtest-all.cc.
References testing::TestResult::elapsed_time(), EscapeXmlAttribute(), testing::TestPartResult::failed(), testing::TestPartResult::file_name(), testing::internal::FormatCompilerIndependentFileLocation(), testing::internal::FormatTimeInMillisAsSeconds(), testing::TestResult::GetTestPartResult(), i, testing::TestPartResult::line_number(), testing::TestPartResult::message(), testing::TestInfo::name(), OutputXmlAttribute(), OutputXmlCDataSection(), RemoveInvalidXmlCharacters(), testing::TestInfo::result(), testing::TestInfo::should_run(), testing::TestPartResult::summary(), TestPropertiesAsXmlAttributes(), testing::TestResult::total_part_count(), testing::TestInfo::type_param(), and testing::TestInfo::value_param().
Referenced by PrintXmlTestCase().
|
staticprivate |
Definition at line 4817 of file gtest-all.cc.
References testing::TestCase::ad_hoc_test_result(), testing::TestCase::elapsed_time(), testing::TestCase::failed_test_count(), testing::internal::FormatTimeInMillisAsSeconds(), testing::TestCase::GetTestInfo(), i, testing::TestInfo::is_reportable(), testing::TestCase::name(), OutputXmlAttribute(), OutputXmlTestInfo(), testing::TestCase::reportable_disabled_test_count(), testing::TestCase::reportable_test_count(), testing::internal::StreamableToString(), TestPropertiesAsXmlAttributes(), and testing::TestCase::total_test_count().
Referenced by PrintXmlUnitTest().
|
staticprivate |
Definition at line 4843 of file gtest-all.cc.
References testing::UnitTest::ad_hoc_test_result(), testing::UnitTest::elapsed_time(), testing::UnitTest::failed_test_count(), testing::internal::FormatEpochTimeInMillisAsIso8601(), testing::internal::FormatTimeInMillisAsSeconds(), testing::UnitTest::GetTestCase(), GTEST_FLAG, i, OutputXmlAttribute(), PrintXmlTestCase(), testing::UnitTest::random_seed(), testing::UnitTest::reportable_disabled_test_count(), testing::TestCase::reportable_test_count(), testing::UnitTest::reportable_test_count(), testing::UnitTest::start_timestamp(), testing::internal::StreamableToString(), TestPropertiesAsXmlAttributes(), and testing::UnitTest::total_test_case_count().
Referenced by OnTestIterationEnd().
|
staticprivate |
Definition at line 4669 of file gtest-all.cc.
References IsValidXmlCharacter(), and it.
Referenced by OutputXmlTestInfo().
|
staticprivate |
Definition at line 4883 of file gtest-all.cc.
References EscapeXmlAttribute(), testing::Message::GetString(), testing::TestResult::GetTestProperty(), i, and testing::TestResult::test_property_count().
Referenced by OutputXmlTestInfo(), PrintXmlTestCase(), and PrintXmlUnitTest().
|
private |
Definition at line 4563 of file gtest-all.cc.
Referenced by OnTestIterationEnd(), and XmlUnitTestResultPrinter().