Sacado Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
testing::internal::XmlUnitTestResultPrinter Class Reference
Inheritance diagram for testing::internal::XmlUnitTestResultPrinter:
Inheritance graph
[legend]

Public Member Functions

 XmlUnitTestResultPrinter (const char *output_file)
 
void OnTestIterationEnd (const UnitTest &unit_test, int iteration) override
 
void ListTestsMatchingFilter (const std::vector< TestSuite * > &test_suites)
 
- Public Member Functions inherited from testing::EmptyTestEventListener
void OnTestProgramStart (const UnitTest &) override
 
void OnTestIterationStart (const UnitTest &, int) override
 
void OnEnvironmentsSetUpStart (const UnitTest &) override
 
void OnEnvironmentsSetUpEnd (const UnitTest &) override
 
void OnTestSuiteStart (const TestSuite &) override
 
void OnTestCaseStart (const TestCase &) override
 
void OnTestStart (const TestInfo &) override
 
void OnTestPartResult (const TestPartResult &) override
 
void OnTestEnd (const TestInfo &) override
 
void OnTestSuiteEnd (const TestSuite &) override
 
void OnTestCaseEnd (const TestCase &) override
 
void OnEnvironmentsTearDownStart (const UnitTest &) override
 
void OnEnvironmentsTearDownEnd (const UnitTest &) override
 
void OnTestProgramEnd (const UnitTest &) override
 
- Public Member Functions inherited from testing::TestEventListener
virtual ~TestEventListener ()
 

Static Public Member Functions

static void PrintXmlTestsList (std::ostream *stream, const std::vector< TestSuite * > &test_suites)
 

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_suite_name, const TestInfo &test_info)
 
static void PrintXmlTestSuite (::std::ostream *stream, const TestSuite &test_suite)
 
static void PrintXmlUnitTest (::std::ostream *stream, const UnitTest &unit_test)
 
static std::string TestPropertiesAsXmlAttributes (const TestResult &result)
 
static void OutputXmlTestProperties (std::ostream *stream, const TestResult &result)
 

Private Attributes

const std::string output_file_
 

Detailed Description

Definition at line 3883 of file gtest.cc.

Constructor & Destructor Documentation

testing::internal::XmlUnitTestResultPrinter::XmlUnitTestResultPrinter ( const char *  output_file)
explicit

Definition at line 3966 of file gtest.cc.

Member Function Documentation

void testing::internal::XmlUnitTestResultPrinter::OnTestIterationEnd ( const UnitTest unit_test,
int  iteration 
)
overridevirtual

Reimplemented from testing::EmptyTestEventListener.

Definition at line 3974 of file gtest.cc.

void testing::internal::XmlUnitTestResultPrinter::ListTestsMatchingFilter ( const std::vector< TestSuite * > &  test_suites)

Definition at line 3983 of file gtest.cc.

void testing::internal::XmlUnitTestResultPrinter::PrintXmlTestsList ( std::ostream *  stream,
const std::vector< TestSuite * > &  test_suites 
)
static

Definition at line 4309 of file gtest.cc.

static bool testing::internal::XmlUnitTestResultPrinter::IsNormalizableWhitespace ( char  c)
inlinestaticprivate

Definition at line 3897 of file gtest.cc.

static bool testing::internal::XmlUnitTestResultPrinter::IsValidXmlCharacter ( char  c)
inlinestaticprivate

Definition at line 3902 of file gtest.cc.

std::string testing::internal::XmlUnitTestResultPrinter::EscapeXml ( const std::string &  str,
bool  is_attribute 
)
staticprivate

Definition at line 4002 of file gtest.cc.

std::string testing::internal::XmlUnitTestResultPrinter::RemoveInvalidXmlCharacters ( const std::string &  str)
staticprivate

Definition at line 4048 of file gtest.cc.

static std::string testing::internal::XmlUnitTestResultPrinter::EscapeXmlAttribute ( const std::string &  str)
inlinestaticprivate

Definition at line 3916 of file gtest.cc.

static std::string testing::internal::XmlUnitTestResultPrinter::EscapeXmlText ( const char *  str)
inlinestaticprivate

Definition at line 3921 of file gtest.cc.

void testing::internal::XmlUnitTestResultPrinter::OutputXmlAttribute ( std::ostream *  stream,
const std::string &  element_name,
const std::string &  name,
const std::string &  value 
)
staticprivate

Definition at line 4133 of file gtest.cc.

void testing::internal::XmlUnitTestResultPrinter::OutputXmlCDataSection ( ::std::ostream *  stream,
const char *  data 
)
staticprivate

Definition at line 4114 of file gtest.cc.

void testing::internal::XmlUnitTestResultPrinter::OutputXmlTestInfo ( ::std::ostream *  stream,
const char *  test_suite_name,
const TestInfo test_info 
)
staticprivate

Definition at line 4150 of file gtest.cc.

void testing::internal::XmlUnitTestResultPrinter::PrintXmlTestSuite ( ::std::ostream *  stream,
const TestSuite test_suite 
)
staticprivate

Definition at line 4238 of file gtest.cc.

void testing::internal::XmlUnitTestResultPrinter::PrintXmlUnitTest ( ::std::ostream *  stream,
const UnitTest unit_test 
)
staticprivate

Definition at line 4272 of file gtest.cc.

std::string testing::internal::XmlUnitTestResultPrinter::TestPropertiesAsXmlAttributes ( const TestResult result)
staticprivate

Definition at line 4333 of file gtest.cc.

void testing::internal::XmlUnitTestResultPrinter::OutputXmlTestProperties ( std::ostream *  stream,
const TestResult result 
)
staticprivate

Definition at line 4344 of file gtest.cc.

testing::internal::XmlUnitTestResultPrinter::GTEST_DISALLOW_COPY_AND_ASSIGN_ ( XmlUnitTestResultPrinter  )
private

Member Data Documentation

const std::string testing::internal::XmlUnitTestResultPrinter::output_file_
private

Definition at line 3960 of file gtest.cc.


The documentation for this class was generated from the following file: