Replace TYPED_TEST_CASE with TYPED_TEST_SUITE

This commit is contained in:
Victor Zverovich
2021-04-24 11:35:49 -07:00
parent 6956b10b2d
commit bb006f9735
2 changed files with 9 additions and 8 deletions

View File

@@ -330,10 +330,10 @@ VISIT_TYPE(unsigned long, unsigned long long);
template <typename T> class numeric_arg_test : public testing::Test {};
using types =
::testing::Types<bool, signed char, unsigned char, short, unsigned short,
int, unsigned, long, unsigned long, long long,
unsigned long long, float, double, long double>;
TYPED_TEST_CASE(numeric_arg_test, types);
testing::Types<bool, signed char, unsigned char, short, unsigned short, int,
unsigned, long, unsigned long, long long, unsigned long long,
float, double, long double>;
TYPED_TEST_SUITE(numeric_arg_test, types);
template <typename T, fmt::enable_if_t<std::is_integral<T>::value, int> = 0>
T test_value() {
@@ -510,8 +510,8 @@ struct non_string {};
template <typename T> class IsStringTest : public testing::Test {};
typedef ::testing::Types<char, wchar_t, char16_t, char32_t> StringCharTypes;
TYPED_TEST_CASE(IsStringTest, StringCharTypes);
typedef testing::Types<char, wchar_t, char16_t, char32_t> StringCharTypes;
TYPED_TEST_SUITE(IsStringTest, StringCharTypes);
namespace {
template <typename Char>