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

Unified Diff: dbus/object_path.h

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 | « no previous file | dbus/object_path.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dbus/object_path.h
diff --git a/dbus/object_path.h b/dbus/object_path.h
index 89c5287c54a6706850d8ecb0f6007ed1f3e29826..072c23daae6d1aaac34e382077c81664e88feaa1 100644
--- a/dbus/object_path.h
+++ b/dbus/object_path.h
@@ -5,6 +5,7 @@
#ifndef DBUS_OBJECT_PATH_H_
#define DBUS_OBJECT_PATH_H_
+#include <iosfwd>
#include <string>
#include "dbus/dbus_export.h"
@@ -46,6 +47,9 @@ class CHROME_DBUS_EXPORT ObjectPath {
std::string value_;
};
+// This is required by gtest to print a readable output on test failures.
+CHROME_DBUS_EXPORT void PrintTo(const ObjectPath& path, std::ostream* out);
+
} // namespace dbus
#endif // DBUS_OBJECT_PATH_H_
« no previous file with comments | « no previous file | dbus/object_path.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698