MCPcopy Create free account
hub / github.com/apache/singa / SetDefaultResultPrinter

Method SetDefaultResultPrinter

test/gtest/gtest-all.cc:5079–5088  ·  view source on GitHub ↗

Sets the default_result_printer attribute to the provided listener. The listener is also added to the listener list and previous default_result_printer is removed from it and deleted. The listener can also be NULL in which case it will not be added to the list. Does nothing if the previous and the current listener objects are the same.

Source from the content-addressed store, hash-verified

5077// also be NULL in which case it will not be added to the list. Does
5078// nothing if the previous and the current listener objects are the same.
5079void TestEventListeners::SetDefaultResultPrinter(TestEventListener* listener) {
5080 if (default_result_printer_ != listener) {
5081 // It is an error to pass this method a listener that is already in the
5082 // list.
5083 delete Release(default_result_printer_);
5084 default_result_printer_ = listener;
5085 if (listener != NULL)
5086 Append(listener);
5087 }
5088}
5089
5090// Sets the default_xml_generator attribute to the provided listener. The
5091// listener is also added to the listener list and previous

Callers 1

gtest-all.ccFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected