CHROMA
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:
testing::EmptyTestEventListener testing::TestEventListener

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_
 

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.

References output_file_.

Member Function Documentation

◆ EscapeXml()

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

◆ EscapeXmlAttribute()

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

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

References EscapeXml().

Referenced by OutputXmlAttribute(), OutputXmlTestInfo(), and TestPropertiesAsXmlAttributes().

◆ EscapeXmlText()

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

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

References EscapeXml().

◆ 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.

References c.

Referenced by EscapeXml(), and IsValidXmlCharacter().

◆ IsValidXmlCharacter()

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

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

References c, and IsNormalizableWhitespace().

Referenced by EscapeXml(), and RemoveInvalidXmlCharacters().

◆ OnTestIterationEnd()

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

◆ OutputXmlAttribute()

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

◆ OutputXmlCDataSection()

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

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

Referenced by OutputXmlTestInfo().

◆ OutputXmlTestInfo()

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

◆ PrintXmlTestCase()

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

◆ PrintXmlUnitTest()

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

◆ RemoveInvalidXmlCharacters()

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

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

References IsValidXmlCharacter(), and it.

Referenced by OutputXmlTestInfo().

◆ TestPropertiesAsXmlAttributes()

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

Member Data Documentation

◆ output_file_

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

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

Referenced by OnTestIterationEnd(), and XmlUnitTestResultPrinter().


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