aboutsummaryrefslogtreecommitdiffstats
path: root/googlemock
diff options
context:
space:
mode:
authorMuhammad Hilman Beyri <hilmanbeyri@gmail.com>2020-01-12 21:29:54 -0500
committerMuhammad Hilman Beyri <hilmanbeyri@gmail.com>2020-01-12 21:29:54 -0500
commitc7137f0b8422cb4544a8adb2ebc1de0ea71cae55 (patch)
treeebca475ef18aa708bea515f06b8b28187ddd6329 /googlemock
parent3aa538cbfcc65989721632d2a8d79539512ebdb7 (diff)
downloadgoogletest-c7137f0b8422cb4544a8adb2ebc1de0ea71cae55.tar.gz
googletest-c7137f0b8422cb4544a8adb2ebc1de0ea71cae55.tar.bz2
googletest-c7137f0b8422cb4544a8adb2ebc1de0ea71cae55.zip
Use IsReadableTypeName IsReadableTypeName in OfType function in gmock-matchers_test.cc
Diffstat (limited to 'googlemock')
-rw-r--r--googlemock/test/gmock-matchers_test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/googlemock/test/gmock-matchers_test.cc b/googlemock/test/gmock-matchers_test.cc
index 98b814ba..96ca8959 100644
--- a/googlemock/test/gmock-matchers_test.cc
+++ b/googlemock/test/gmock-matchers_test.cc
@@ -140,7 +140,7 @@ Matcher<int> GreaterThan(int n) {
std::string OfType(const std::string& type_name) {
#if GTEST_HAS_RTTI
- return " (of type " + type_name + ")";
+ return IsReadableTypeName(type_name) ? " (of type " + type_name + ")" : "";
#else
return "";
#endif