Index: base/logging.h |
diff --git a/base/logging.h b/base/logging.h |
index 662deae115bf9eaa6af4e91b75ab4e6ab96742ae..771aa735c61a8313bd01d0b0700dea2dc2080325 100644 |
--- a/base/logging.h |
+++ b/base/logging.h |
@@ -919,4 +919,13 @@ inline std::ostream& operator<<(std::ostream& out, const std::wstring& wstr) { |
} while(0) |
#endif |
+namespace base { |
+ |
+class StringPiece; |
+ |
+// allow StringPiece to be logged (needed for unit testing). |
+extern std::ostream& operator<<(std::ostream& o, const StringPiece& piece); |
+ |
+} // namespace base |
+ |
#endif // BASE_LOGGING_H_ |