summaryrefslogtreecommitdiffstats
path: root/googletest/include
diff options
context:
space:
mode:
authorCJ Johnson <johnsoncj@google.com>2021-11-03 17:46:13 (GMT)
committerCJ Johnson <johnsoncj@google.com>2021-11-03 17:46:13 (GMT)
commit51536300a188a1a4086910686b00af603b488976 (patch)
tree49dbc7dc7517459598944ce967580f6aa348198f /googletest/include
parentcbf46d3f278a88bf167cb03a37c5dcd8d01fe3bf (diff)
parent3c958ac47cfc00d463f2a8efe62542b322d89164 (diff)
downloadgoogletest-51536300a188a1a4086910686b00af603b488976.zip
googletest-51536300a188a1a4086910686b00af603b488976.tar.gz
googletest-51536300a188a1a4086910686b00af603b488976.tar.bz2
Merge pull request #3638 from limitedAtonement:3637-disabled-output
PiperOrigin-RevId: 407356792
Diffstat (limited to 'googletest/include')
-rw-r--r--googletest/include/gtest/gtest.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/googletest/include/gtest/gtest.h b/googletest/include/gtest/gtest.h
index 3d04b89..db4c620 100644
--- a/googletest/include/gtest/gtest.h
+++ b/googletest/include/gtest/gtest.h
@@ -1123,6 +1123,9 @@ class TestEventListener {
// Fired before the test starts.
virtual void OnTestStart(const TestInfo& test_info) = 0;
+ // Fired when a test is disabled
+ virtual void OnTestDisabled(const TestInfo& test_info) {}
+
// Fired after a failed assertion or a SUCCEED() invocation.
// If you want to throw an exception from this function to skip to the next
// TEST, it must be AssertionException defined above, or inherited from it.
@@ -1172,6 +1175,7 @@ class EmptyTestEventListener : public TestEventListener {
#endif // GTEST_REMOVE_LEGACY_TEST_CASEAPI_
void OnTestStart(const TestInfo& /*test_info*/) override {}
+ void OnTestDisabled(const TestInfo& /*test_info*/) override {}
void OnTestPartResult(const TestPartResult& /*test_part_result*/) override {}
void OnTestEnd(const TestInfo& /*test_info*/) override {}
void OnTestSuiteEnd(const TestSuite& /*test_suite*/) override {}