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

Public Member Functions

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

Private Member Functions


Static Private Member Functions

static std::string EscapeXml (const std::string &str, bool is_attribute)
static std::string EscapeXmlAttribute (const std::string &str)
static std::string EscapeXmlText (const char *str)
static bool IsNormalizableWhitespace (char c)
static bool IsValidXmlCharacter (char c)
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 RemoveInvalidXmlCharacters (const std::string &str)
static std::string TestPropertiesAsXmlAttributes (const TestResult &result)

Private Attributes

const std::string output_file_

Detailed Description

Definition at line 3015 of file

Constructor & Destructor Documentation

◆ XmlUnitTestResultPrinter()

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

Definition at line 3088 of file

Member Function Documentation

◆ EscapeXml()

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

Definition at line 3142 of file

◆ EscapeXmlAttribute()

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

Definition at line 3043 of file

◆ EscapeXmlText()

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

Definition at line 3048 of file


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

◆ IsNormalizableWhitespace()

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

Definition at line 3024 of file

◆ IsValidXmlCharacter()

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

Definition at line 3029 of file

◆ OnTestIterationEnd()

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

Reimplemented from testing::EmptyTestEventListener.

Definition at line 3098 of file

◆ OutputXmlAttribute()

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

Definition at line 3268 of file

◆ OutputXmlCDataSection()

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

Definition at line 3249 of file

◆ OutputXmlTestInfo()

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

Definition at line 3286 of file

◆ PrintXmlTestCase()

void testing::internal::XmlUnitTestResultPrinter::PrintXmlTestCase ( ::std::ostream *  stream,
const TestCase test_case 

Definition at line 3336 of file

◆ PrintXmlUnitTest()

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

Definition at line 3362 of file

◆ RemoveInvalidXmlCharacters()

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

Definition at line 3188 of file

◆ TestPropertiesAsXmlAttributes()

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

Definition at line 3402 of file

Member Data Documentation

◆ output_file_

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

Definition at line 3082 of file

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

autogenerated on Fri Jun 11 2021 02:38:06