From bbab196fe58e5657d90f6f40a19fb93c2a91a8ac Mon Sep 17 00:00:00 2001 From: Eino-Ville Talvala Date: Wed, 3 Feb 2016 13:19:49 -0800 Subject: Binder::Status: Add operator<< to help with gtest logging Change-Id: I22fcf7c6314451701ba947af2d69d4e45b22345a --- include/binder/Status.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include') 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 +T& operator<< (T& stream, const Status& s) { + stream << s.toString8().string(); + return stream; +} + } // namespace binder } // namespace android -- cgit v1.2.3-59-g8ed1b