commit | 1fe911f5cd0f4c15df8baa78afd864b91f6c0c2a | [log] [tgz] |
---|---|---|
author | Eino-Ville Talvala <etalvala@google.com> | Fri Feb 05 00:52:11 2016 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Fri Feb 05 00:52:11 2016 +0000 |
tree | 23bff4c88c8fa93f2e6472d0939a8cb7fc18b03b | |
parent | 32d59d5a5fb7750b9080296296afef62c266c8e1 [diff] | |
parent | f8329261eddf9207f3525a203cc5562d6d4eff28 [diff] |
Merge "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