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:
@@ -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