diff --git a/googlemock/include/gmock/gmock-more-matchers.h b/googlemock/include/gmock/gmock-more-matchers.h index 39aad4c1..b64e832f 100644 --- a/googlemock/include/gmock/gmock-more-matchers.h +++ b/googlemock/include/gmock/gmock-more-matchers.h @@ -79,6 +79,12 @@ class [[nodiscard]] IsEmptyMatcher { return MatchAndExplain(std::string(s), listener); } + // Matches C-style wide strings. + bool MatchAndExplain(const wchar_t* s, + MatchResultListener* listener) const { + return MatchAndExplain(std::wstring(s), listener); + } + // Describes what this matcher matches. void DescribeTo(std::ostream* os) const { *os << "is empty"; }