diff options
| -rw-r--r-- | include/binder/Status.h | 7 |
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 |