Use IsReadableTypeName IsReadableTypeName in OfType function in gmock-matchers_test.cc
This commit is contained in:
parent
3aa538cbfc
commit
c7137f0b84
|
@ -140,7 +140,7 @@ Matcher<int> GreaterThan(int n) {
|
||||||
|
|
||||||
std::string OfType(const std::string& type_name) {
|
std::string OfType(const std::string& type_name) {
|
||||||
#if GTEST_HAS_RTTI
|
#if GTEST_HAS_RTTI
|
||||||
return " (of type " + type_name + ")";
|
return IsReadableTypeName(type_name) ? " (of type " + type_name + ")" : "";
|
||||||
#else
|
#else
|
||||||
return "";
|
return "";
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue
Block a user