MCPcopy Create free account
hub / github.com/EmbeddedRPC/erpc / SetDefaultResultPrinter

Method SetDefaultResultPrinter

test/common/gtest/gtest.cpp:5443–5452  ·  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

5441// also be NULL in which case it will not be added to the list. Does
5442// nothing if the previous and the current listener objects are the same.
5443void TestEventListeners::SetDefaultResultPrinter(TestEventListener* listener) {
5444 if (default_result_printer_ != listener) {
5445 // It is an error to pass this method a listener that is already in the
5446 // list.
5447 delete Release(default_result_printer_);
5448 default_result_printer_ = listener;
5449 if (listener != NULL)
5450 Append(listener);
5451 }
5452}
5453
5454// Sets the default_xml_generator attribute to the provided listener. The
5455// listener is also added to the listener list and previous

Callers 2

UnitTestImplMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected