Merge "Binder::Status: Add operator<< to help with gtest logging" am: 259eb56171 am: e4fe50ca42
am: 4b41905563

* commit '4b41905563dc35190d60e92c2ea51d210e600caa':
  Binder::Status: Add operator<< to help with gtest logging
diff --git a/include/hwbinder/Status.h b/include/hwbinder/Status.h
index 203a01e..ce947fa 100644
--- a/include/hwbinder/Status.h
+++ b/include/hwbinder/Status.h
@@ -141,6 +141,13 @@
     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