class TestEventListeners
Defined at line 1022 of file ../../third_party/googletest/src/googletest/include/gtest/gtest.h
TestEventListeners lets users add listeners to track events in Google Test.
Public Methods
void TestEventListeners ()
void ~TestEventListeners ()
void Append (TestEventListener * listener)
Appends an event listener to the end of the list. Google Test assumes
the ownership of the listener (i.e. it will delete the listener when
the test program finishes).
TestEventListener * Release (TestEventListener * listener)
Removes the given event listener from the list and returns it. It then
becomes the caller's responsibility to delete the listener. Returns
NULL if the listener is not found in the list.
void SuppressEventForwarding (bool )
Controls whether events will be forwarded by the repeater to the
listeners in the list.
TestEventListener * default_result_printer ()
Returns the standard listener responsible for the default console
output. Can be removed from the listeners list to shut down default
console output. Note that removing this object from the listener list
with Release transfers its ownership to the caller and makes this
function return NULL the next time.
Defined at line 1042 of file ../../third_party/googletest/src/googletest/include/gtest/gtest.h
TestEventListener * default_xml_generator ()
Returns the standard listener responsible for the default XML output
controlled by the --gtest_output=xml flag. Can be removed from the
listeners list by users who want to shut down the default XML output
controlled by this flag and substitute it with custom one. Note that
removing this object from the listener list with Release transfers its
ownership to the caller and makes this function return NULL the next
time.
Defined at line 1053 of file ../../third_party/googletest/src/googletest/include/gtest/gtest.h
Friends
class UnitTestImpl
class TestEventListenersAccessor
class NoExecDeathTest
class DefaultGlobalTestPartResultReporter
class TestInfo
class TestSuite