Move gtest's printer for CString to a place visible to all tests
This commit is contained in:
1 parent
10c98e01a8
commit
1e08e5c702
2 files changed
+7
-5
No files matched your search
@@ -17,11 +17,6 @@
|
||||
#include <gtest/gtest.h>
|
||||
#include <znc/ZNCString.h>
|
||||
|
||||
// GTest uses this function to output objects
|
||||
static void PrintTo(const CString& s, std::ostream* o) {
|
||||
*o << '"' << s.Escape_n(CString::EASCII, CString::EDEBUG) << '"';
|
||||
}
|
||||
|
||||
class EscapeTest : public ::testing::Test {
|
||||
protected:
|
||||
void testEncode(const CString& in, const CString& expectedOut,
|
||||
|
||||
Reference in new issue
Block a user