Googletest export

Fix the typed test names in the tests for customized typed test parameters.

As required by googletest documentation, the names should not contain an underscore.

PiperOrigin-RevId: 210678652
This commit is contained in:
Abseil Team
2018-08-29 04:09:04 -04:00
committed by Gennadiy Civil
parent 2cc008538c
commit 00d1ffc8c8
3 changed files with 13 additions and 13 deletions

View File

@@ -811,9 +811,9 @@ class TypedTestNames {
template <typename T>
static std::string GetName(int i) {
if (testing::internal::IsSame<T, char>::value)
return std::string("char_") + ::testing::PrintToString(i);
return std::string("char") + ::testing::PrintToString(i);
if (testing::internal::IsSame<T, int>::value)
return std::string("int_") + ::testing::PrintToString(i);
return std::string("int") + ::testing::PrintToString(i);
}
};
@@ -852,10 +852,10 @@ class TypedTestPNames {
template <typename T>
static std::string GetName(int i) {
if (testing::internal::IsSame<T, unsigned char>::value) {
return std::string("unsigned_char_") + ::testing::PrintToString(i);
return std::string("unsignedChar") + ::testing::PrintToString(i);
}
if (testing::internal::IsSame<T, unsigned int>::value) {
return std::string("unsigned_int_") + ::testing::PrintToString(i);
return std::string("unsignedInt") + ::testing::PrintToString(i);
}
}
};