mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Move gtest's printer for CString to a place visible to all tests
This commit is contained in:
@@ -697,4 +697,11 @@ class CInlineFormatMessage {
|
||||
CString m_sFormat;
|
||||
};
|
||||
|
||||
// For gtest
|
||||
#ifdef GTEST_FAIL
|
||||
inline void PrintTo(const CString& s, std::ostream* os) {
|
||||
*os << '"' << s.Escape_n(CString::EDEBUG) << '"';
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // !ZNCSTRING_H
|
||||
|
||||
Reference in New Issue
Block a user