Merge pull request #5008 from K-S-Manikandan:fix/wide-string-isempty

PiperOrigin-RevId: 944044650
Change-Id: I9dcd6625f41f4f098439d222c26383150f7e8f6a
This commit is contained in:
Copybara-Service
2026-07-07 12:49:50 -07:00
2 changed files with 17 additions and 0 deletions
@@ -79,6 +79,13 @@ class [[nodiscard]] IsEmptyMatcher {
return MatchAndExplain(std::string(s), listener);
}
#if GTEST_HAS_STD_WSTRING
// Matches C-style wide strings.
bool MatchAndExplain(const wchar_t* s, MatchResultListener* listener) const {
return MatchAndExplain(std::wstring(s), listener);
}
#endif // GTEST_HAS_STD_WSTRING
// Describes what this matcher matches.
void DescribeTo(std::ostream* os) const { *os << "is empty"; }