diff options
author | kosak <kosak@google.com> | 2015-07-24 21:16:59 +0000 |
---|---|---|
committer | kosak <kosak@google.com> | 2015-07-24 21:16:59 +0000 |
commit | 4188ec35292595660c1bc5b6f35cefe17188e1ab (patch) | |
tree | f5a54201147ba7f20f8101a657a23c28a01b76ad /src | |
parent | f972f1680aa5de3230dac197b223336f30210f69 (diff) | |
download | googletest-4188ec35292595660c1bc5b6f35cefe17188e1ab.tar.gz googletest-4188ec35292595660c1bc5b6f35cefe17188e1ab.tar.bz2 googletest-4188ec35292595660c1bc5b6f35cefe17188e1ab.zip |
Inject GTEST_CUSTOM_TEST_EVENT_LISTENER_
Diffstat (limited to 'src')
-rw-r--r-- | src/gtest.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gtest.cc b/src/gtest.cc index fb65bc17..bfc4f4fe 100644 --- a/src/gtest.cc +++ b/src/gtest.cc @@ -4436,6 +4436,11 @@ void UnitTestImpl::PostFlagParsingInit() { if (!post_flag_parse_init_performed_) { post_flag_parse_init_performed_ = true; +#if defined(GTEST_CUSTOM_TEST_EVENT_LISTENER_) + // Register to send notifications about key process state changes. + listeners()->Append(new GTEST_CUSTOM_TEST_EVENT_LISTENER_()); +#endif // defined(GTEST_CUSTOM_TEST_EVENT_LISTENER_) + #if GTEST_HAS_DEATH_TEST InitDeathTestSubprocessControlInfo(); SuppressTestEventsIfInSubprocess(); |