Lines Matching refs:listener

2666   // Notifies the unit test event listener that a test has just finished.
3240 void Append(TestEventListener *listener);
3241 TestEventListener* Release(TestEventListener* listener);
3276 void TestEventRepeater::Append(TestEventListener *listener) {
3277 listeners_.push_back(listener);
3281 TestEventListener* TestEventRepeater::Release(TestEventListener *listener) {
3283 if (listeners_[i] == listener) {
3285 return listener;
3898 // Returns the standard listener responsible for the default console
3900 // console output. Note that removing this object from the listener list
3902 void TestEventListeners::Append(TestEventListener* listener) {
3903 repeater_->Append(listener);
3906 // Removes the given event listener from the list and returns it. It then
3907 // becomes the caller's responsibility to delete the listener. Returns
3908 // NULL if the listener is not found in the list.
3909 TestEventListener* TestEventListeners::Release(TestEventListener* listener) {
3910 if (listener == default_result_printer_)
3912 else if (listener == default_xml_generator_)
3914 return repeater_->Release(listener);
3921 // Sets the default_result_printer attribute to the provided listener.
3922 // The listener is also added to the listener list and previous
3923 // default_result_printer is removed from it and deleted. The listener can
3925 // nothing if the previous and the current listener objects are the same.
3926 void TestEventListeners::SetDefaultResultPrinter(TestEventListener* listener) {
3927 if (default_result_printer_ != listener) {
3928 // It is an error to pass this method a listener that is already in the
3931 default_result_printer_ = listener;
3932 if (listener != NULL)
3933 Append(listener);
3937 // Sets the default_xml_generator attribute to the provided listener. The
3938 // listener is also added to the listener list and previous
3939 // default_xml_generator is removed from it and deleted. The listener can
3941 // nothing if the previous and the current listener objects are the same.
3942 void TestEventListeners::SetDefaultXmlGenerator(TestEventListener* listener) {
3943 if (default_xml_generator_ != listener) {
3944 // It is an error to pass this method a listener that is already in the
3947 default_xml_generator_ = listener;
3948 if (listener != NULL)
3949 Append(listener);
4629 // such that a test event listener can see the actual test order
4662 // Tells the unit test event listener that the tests have just finished.