Skip to content

Commit 999ecaf

Browse files
hadi88copybara-github
authored andcommitted
Include parameterized tests in the list of unit tests.
PiperOrigin-RevId: 759128896
1 parent 2f12d0b commit 999ecaf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

fuzztest/internal/googletest_adaptor.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,9 @@ void SetFuzzTestListingModeValidatorForGoogleTest(bool listing_mode) {
171171
std::vector<const testing::TestInfo*> GetRegisteredTests() {
172172
std::vector<const testing::TestInfo*> result;
173173
auto& unit_test = *testing::UnitTest::GetInstance();
174+
// TODO(b/416466508): Remove this call once the bug is fixed. This function is
175+
// internal to GoogleTest.
176+
unit_test.parameterized_test_registry().RegisterTests();
174177
for (int i = 0; i < unit_test.total_test_suite_count(); ++i) {
175178
for (int j = 0; j < unit_test.GetTestSuite(i)->total_test_count(); ++j) {
176179
result.push_back(unit_test.GetTestSuite(i)->GetTestInfo(j));

0 commit comments

Comments
 (0)