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

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

 GTEST_DISALLOW_COPY_AND_ASSIGN_ (XmlUnitTestResultPrinter)
 

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 4496 of file gtest-all.cc.

Constructor & Destructor Documentation

◆ XmlUnitTestResultPrinter()

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

Definition at line 4569 of file gtest-all.cc.

Member Function Documentation

◆ EscapeXml()

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

Definition at line 4623 of file gtest-all.cc.

◆ EscapeXmlAttribute()

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

Definition at line 4524 of file gtest-all.cc.

◆ EscapeXmlText()

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

Definition at line 4529 of file gtest-all.cc.

◆ GTEST_DISALLOW_COPY_AND_ASSIGN_()

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

◆ IsNormalizableWhitespace()

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

Definition at line 4505 of file gtest-all.cc.

◆ IsValidXmlCharacter()

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

Definition at line 4510 of file gtest-all.cc.

◆ OnTestIterationEnd()

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

Reimplemented from testing::EmptyTestEventListener.

Definition at line 4579 of file gtest-all.cc.

◆ OutputXmlAttribute()

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 4749 of file gtest-all.cc.

◆ OutputXmlCDataSection()

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

Definition at line 4730 of file gtest-all.cc.

◆ OutputXmlTestInfo()

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

Definition at line 4767 of file gtest-all.cc.

◆ PrintXmlTestCase()

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

Definition at line 4817 of file gtest-all.cc.

◆ PrintXmlUnitTest()

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

Definition at line 4843 of file gtest-all.cc.

◆ RemoveInvalidXmlCharacters()

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

Definition at line 4669 of file gtest-all.cc.

◆ TestPropertiesAsXmlAttributes()

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

Definition at line 4883 of file gtest-all.cc.

Member Data Documentation

◆ output_file_

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

Definition at line 4563 of file gtest-all.cc.


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


libpointmatcher
Author(s):
autogenerated on Sat May 27 2023 02:38:04