Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(539)

Unified Diff: base/string16.h

Issue 9641017: Add PrintTo for string16 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | base/string16.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/string16.h
diff --git a/base/string16.h b/base/string16.h
index 4c7b21f8a0eb76e34a0d4887dd19ca01c944b284..b6dcd0313da6f2cd364df3c63ccbe954da750b18 100644
--- a/base/string16.h
+++ b/base/string16.h
@@ -171,6 +171,9 @@ typedef std::basic_string<char16, base::string16_char_traits> string16;
namespace base {
BASE_EXPORT extern std::ostream& operator<<(std::ostream& out,
const string16& str);
+
+// This is required by googletest to print a readable output on test failures.
+BASE_EXPORT extern void PrintTo(const string16& str, std::ostream* out);
}
#endif // WCHAR_T_IS_UTF32
« no previous file with comments | « no previous file | base/string16.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698