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

Unified Diff: dbus/object_path.cc

Issue 13942004: Adding PrintTo of ObjectPath for gtest. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 | « dbus/object_path.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dbus/object_path.cc
diff --git a/dbus/object_path.cc b/dbus/object_path.cc
index 1200a9bace623f3d5d815124b54c3ffab227dada..8606b6bbca1962b884eefdc077ebd1ef73f4fb35 100644
--- a/dbus/object_path.cc
+++ b/dbus/object_path.cc
@@ -4,6 +4,8 @@
#include "dbus/object_path.h"
+#include <ostream>
+
#include "dbus/string_util.h"
namespace dbus {
@@ -24,4 +26,8 @@ bool ObjectPath::operator!=(const ObjectPath& that) const {
return value_ != that.value_;
}
+void PrintTo(const ObjectPath& path, std::ostream* out) {
+ *out << path.value();
+}
+
} // namespace dbus
« no previous file with comments | « dbus/object_path.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698