summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Eino-Ville Talvala <etalvala@google.com> 2016-02-05 00:54:57 +0000
committer android-build-merger <android-build-merger@google.com> 2016-02-05 00:54:57 +0000
commite4fe50ca421f0d8508a86f3b03f452d59136f5ae (patch)
treedd047aa826f91a50235dd9cc7ccae0799f13d7e0
parent9d6acce68a257e73463593627bb4b31b140679e7 (diff)
parent259eb56171420f62be325eadc38673d967527ab6 (diff)
Merge "Binder::Status: Add operator<< to help with gtest logging"
am: 259eb56171 * commit '259eb56171420f62be325eadc38673d967527ab6': Binder::Status: Add operator<< to help with gtest logging
-rw-r--r--include/binder/Status.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/binder/Status.h b/include/binder/Status.h
index 203a01e39c..ce947fa3de 100644
--- a/include/binder/Status.h
+++ b/include/binder/Status.h
@@ -141,6 +141,13 @@ private:
String8 mMessage;
}; // class Status
+// For gtest output logging
+template<typename T>
+T& operator<< (T& stream, const Status& s) {
+ stream << s.toString8().string();
+ return stream;
+}
+
} // namespace binder
} // namespace android