Change deprecated gtest TEST_CASE macros to TEST_SUITE

No functional change. See
https://github.com/google/googletest/blob/master/googletest/docs/primer.md#beware-of-the-nomenclature
(as of 5d3a2cd9c854).

Change-Id: I0f6dc59f014b01d18a09a92f016351a7402d8e6c
Reviewed-on: https://chromium-review.googlesource.com/c/1427499
Reviewed-by: Joshua Peraza <jperaza@chromium.org>
Commit-Queue: Mark Mentovai <mark@chromium.org>
This commit is contained in:
Mark Mentovai 2019-01-22 14:18:02 -05:00 committed by Commit Bot
parent 8694cbf33e
commit 6a209070e4
4 changed files with 15 additions and 15 deletions

View File

@ -326,10 +326,10 @@ TEST_P(CrashpadInfoSizes_ClientOptions, DifferentlySizedStruct) {
}
}
INSTANTIATE_TEST_CASE_P(CrashpadInfoSizes_ClientOptions,
CrashpadInfoSizes_ClientOptions,
testing::Values(FILE_PATH_LITERAL("small"),
FILE_PATH_LITERAL("large")));
INSTANTIATE_TEST_SUITE_P(CrashpadInfoSizes_ClientOptions,
CrashpadInfoSizes_ClientOptions,
testing::Values(FILE_PATH_LITERAL("small"),
FILE_PATH_LITERAL("large")));
} // namespace
} // namespace test

View File

@ -41,7 +41,7 @@ using FromPointerCastTestTypes = testing::Types<void*,
volatile SomeType*,
const volatile SomeType*>;
TYPED_TEST_CASE(FromPointerCastTest, FromPointerCastTestTypes);
TYPED_TEST_SUITE(FromPointerCastTest, FromPointerCastTestTypes);
TYPED_TEST(FromPointerCastTest, ToSigned) {
EXPECT_EQ(FromPointerCast<int64_t>(nullptr), 0);

View File

@ -207,9 +207,9 @@ TEST_P(CompositeHTTPBodyStreamBufferSize, StringsAndFile) {
EXPECT_EQ(actual_string, expected_string);
}
INSTANTIATE_TEST_CASE_P(VariableBufferSize,
CompositeHTTPBodyStreamBufferSize,
testing::Values(1, 2, 9, 16, 31, 128, 1024));
INSTANTIATE_TEST_SUITE_P(VariableBufferSize,
CompositeHTTPBodyStreamBufferSize,
testing::Values(1, 2, 9, 16, 31, 128, 1024));
} // namespace
} // namespace test

View File

@ -371,14 +371,14 @@ TEST_P(HTTPTransport, Upload33k_LengthUnknown) {
// lacking libcrypto.so.1.1, so disabled there for now. On Mac, they could also
// likely be enabled relatively easily, if HTTPTransportMac learned to respect
// the user-supplied cert.
INSTANTIATE_TEST_CASE_P(HTTPTransport,
HTTPTransport,
testing::Values(FILE_PATH_LITERAL("http"),
FILE_PATH_LITERAL("https")));
INSTANTIATE_TEST_SUITE_P(HTTPTransport,
HTTPTransport,
testing::Values(FILE_PATH_LITERAL("http"),
FILE_PATH_LITERAL("https")));
#else
INSTANTIATE_TEST_CASE_P(HTTPTransport,
HTTPTransport,
testing::Values(FILE_PATH_LITERAL("http")));
INSTANTIATE_TEST_SUITE_P(HTTPTransport,
HTTPTransport,
testing::Values(FILE_PATH_LITERAL("http")));
#endif
} // namespace