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

Constructor & Destructor Documentation

◆ XmlUnitTestResultPrinter()

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

Definition at line 3088 of file gtest.cc.

Member Function Documentation

◆ EscapeXml()

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

Definition at line 3142 of file gtest.cc.

◆ EscapeXmlAttribute()

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

Definition at line 3043 of file gtest.cc.

◆ EscapeXmlText()

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

Definition at line 3048 of file gtest.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 3024 of file gtest.cc.

◆ IsValidXmlCharacter()

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

Definition at line 3029 of file gtest.cc.

◆ OnTestIterationEnd()

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

Reimplemented from testing::EmptyTestEventListener.

Definition at line 3098 of file gtest.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 3268 of file gtest.cc.

◆ OutputXmlCDataSection()

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

Definition at line 3249 of file gtest.cc.

◆ OutputXmlTestInfo()

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

Definition at line 3286 of file gtest.cc.

◆ PrintXmlTestCase()

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

Definition at line 3336 of file gtest.cc.

◆ PrintXmlUnitTest()

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

Definition at line 3362 of file gtest.cc.

◆ RemoveInvalidXmlCharacters()

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

Definition at line 3188 of file gtest.cc.

◆ TestPropertiesAsXmlAttributes()

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

Definition at line 3402 of file gtest.cc.

Member Data Documentation

◆ output_file_

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

Definition at line 3082 of file gtest.cc.


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


fcl
Author(s):
autogenerated on Wed Feb 17 2021 03:40:11