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

Unified Diff: base/values.h

Issue 10915194: Add an ostream operator to Value (based on JSONWriter) so that assertions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove base:: Created 8 years, 3 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/values.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/values.h
diff --git a/base/values.h b/base/values.h
index 83d046c7fea9530999b9d00fa3d1f2edcf44ec24..02a3566ec9cbf1949f122c9a8799efb3f83160e2 100644
--- a/base/values.h
+++ b/base/values.h
@@ -505,6 +505,9 @@ class BASE_EXPORT ValueSerializer {
virtual Value* Deserialize(int* error_code, std::string* error_str) = 0;
};
+// Stream operator so Values can be used in assertion statements.
+BASE_EXPORT std::ostream& operator<<(std::ostream& out, const Value& value);
+
} // namespace base
// http://crbug.com/88666
« no previous file with comments | « no previous file | base/values.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698