summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEino-Ville Talvala <etalvala@google.com>2016-02-05 00:52:11 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2016-02-05 00:52:11 +0000
commit259eb56171420f62be325eadc38673d967527ab6 (patch)
tree043c9d914c980a0c0e14f7a203a2a3efe8477579
parentae8442856bfdcfd4daf287a880ce7ce4eadaa3e4 (diff)
parentbbab196fe58e5657d90f6f40a19fb93c2a91a8ac (diff)
downloadnative-259eb56171420f62be325eadc38673d967527ab6.tar.gz
Merge "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