diff options
author | misterg <misterg@google.com> | 2019-02-04 16:40:09 (GMT) |
---|---|---|
committer | Gennadiy Civil <misterg@google.com> | 2019-02-04 19:19:50 (GMT) |
commit | 52ea4f7beaa6e05a52ded6b04a73b7eadbc09996 (patch) | |
tree | 46b2dd53f81bb14c60509ed23bcd73a16b3a54a8 /googletest/include/gtest/gtest-param-test.h | |
parent | 876bdfa565b7260394baecdb4a132a738b9ec508 (diff) | |
download | googletest-52ea4f7beaa6e05a52ded6b04a73b7eadbc09996.zip googletest-52ea4f7beaa6e05a52ded6b04a73b7eadbc09996.tar.gz googletest-52ea4f7beaa6e05a52ded6b04a73b7eadbc09996.tar.bz2 |
Googletest export
Mark legacy _TEST_CASE_ macros as deprecated
PiperOrigin-RevId: 232303251
Diffstat (limited to 'googletest/include/gtest/gtest-param-test.h')
-rw-r--r-- | googletest/include/gtest/gtest-param-test.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/googletest/include/gtest/gtest-param-test.h b/googletest/include/gtest/gtest-param-test.h index a0eecc6..7a4986c 100644 --- a/googletest/include/gtest/gtest-param-test.h +++ b/googletest/include/gtest/gtest-param-test.h @@ -580,7 +580,10 @@ internal::CartesianProductHolder10<Generator1, Generator2, Generator3, // Legacy API is deprecated but still available #ifndef GTEST_REMOVE_LEGACY_TEST_CASEAPI_ -#define INSTANTIATE_TEST_CASE_P INSTANTIATE_TEST_SUITE_P +#define INSTANTIATE_TEST_CASE_P \ + static_assert(::testing::internal::InstantiateTestCase_P_IsDeprecated(), \ + ""); \ + INSTANTIATE_TEST_SUITE_P #endif // GTEST_REMOVE_LEGACY_TEST_CASEAPI_ } // namespace testing |