diff options
author | Abseil Team <absl-team@google.com> | 2023-06-15 14:52:03 (GMT) |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2023-06-15 14:52:45 (GMT) |
commit | 18fa6a4db32a30675c0b19bf72f8b5f693d21a23 (patch) | |
tree | b2a54fb18d5454cb218edb73dc2b1759d375c3e2 /googletest/include | |
parent | 4c7aee827e16aa338189b88f6e3aa6d3d927dba4 (diff) | |
download | googletest-18fa6a4db32a30675c0b19bf72f8b5f693d21a23.zip googletest-18fa6a4db32a30675c0b19bf72f8b5f693d21a23.tar.gz googletest-18fa6a4db32a30675c0b19bf72f8b5f693d21a23.tar.bz2 |
Allow clients to un-suppress output from gUnit EXPECT_EXIT tests.
This is useful for running individual tests in a separate process, which is
useful for testing e.g. flag changes which have a process-global effect.
PiperOrigin-RevId: 540580573
Change-Id: I18a5d24d79425a9d595be3369efc44e2f655f6f8
Diffstat (limited to 'googletest/include')
-rw-r--r-- | googletest/include/gtest/gtest.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/googletest/include/gtest/gtest.h b/googletest/include/gtest/gtest.h index 8412503..86777c8 100644 --- a/googletest/include/gtest/gtest.h +++ b/googletest/include/gtest/gtest.h @@ -1055,6 +1055,10 @@ class GTEST_API_ TestEventListeners { return default_xml_generator_; } + // Controls whether events will be forwarded by the repeater to the + // listeners in the list. + void SuppressEventForwarding(bool); + private: friend class TestSuite; friend class TestInfo; @@ -1084,7 +1088,6 @@ class GTEST_API_ TestEventListeners { // Controls whether events will be forwarded by the repeater to the // listeners in the list. bool EventForwardingEnabled() const; - void SuppressEventForwarding(); // The actual list of listeners. internal::TestEventRepeater* repeater_; |