diff options
author | Derek Mauro <dmauro@google.com> | 2022-01-28 15:26:29 (GMT) |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2022-01-28 15:27:11 (GMT) |
commit | 28e1da21d8d677bc98f12ccc7fc159ff19e8e817 (patch) | |
tree | 46d9ee7a8fcd199838b3877017dbb4b293bf2184 /googletest/samples/sample9_unittest.cc | |
parent | 0b7798b2fba340969a0cf83698e5c0a2e25b7dbc (diff) | |
download | googletest-28e1da21d8d677bc98f12ccc7fc159ff19e8e817.zip googletest-28e1da21d8d677bc98f12ccc7fc159ff19e8e817.tar.gz googletest-28e1da21d8d677bc98f12ccc7fc159ff19e8e817.tar.bz2 |
Finish some missed pieces of the TestCase to TestSuite Migration
PiperOrigin-RevId: 424864779
Change-Id: Iac5cafa3568f5fe41c85c52d28f7d61845f76868
Diffstat (limited to 'googletest/samples/sample9_unittest.cc')
-rw-r--r-- | googletest/samples/sample9_unittest.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/googletest/samples/sample9_unittest.cc b/googletest/samples/sample9_unittest.cc index e502d08..0245b53 100644 --- a/googletest/samples/sample9_unittest.cc +++ b/googletest/samples/sample9_unittest.cc @@ -29,7 +29,7 @@ // This sample shows how to use Google Test listener API to implement // an alternative console output and how to use the UnitTest reflection API -// to enumerate test cases and tests and to inspect their results. +// to enumerate test suites and tests and to inspect their results. #include <stdio.h> @@ -38,7 +38,7 @@ using ::testing::EmptyTestEventListener; using ::testing::InitGoogleTest; using ::testing::Test; -using ::testing::TestCase; +using ::testing::TestSuite; using ::testing::TestEventListeners; using ::testing::TestInfo; using ::testing::TestPartResult; @@ -61,7 +61,7 @@ class TersePrinter : public EmptyTestEventListener { void OnTestStart(const TestInfo& test_info) override { fprintf(stdout, "*** Test %s.%s starting.\n", - test_info.test_case_name(), + test_info.test_suite_name(), test_info.name()); fflush(stdout); } @@ -81,7 +81,7 @@ class TersePrinter : public EmptyTestEventListener { void OnTestEnd(const TestInfo& test_info) override { fprintf(stdout, "*** Test %s.%s ending.\n", - test_info.test_case_name(), + test_info.test_suite_name(), test_info.name()); fflush(stdout); } |