summaryrefslogtreecommitdiff
path: root/libs/binder/include/binder/Status.h
diff options
context:
space:
mode:
Diffstat (limited to 'libs/binder/include/binder/Status.h')
-rw-r--r--libs/binder/include/binder/Status.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/libs/binder/include/binder/Status.h b/libs/binder/include/binder/Status.h
index aaafa36d40..7d889b6b14 100644
--- a/libs/binder/include/binder/Status.h
+++ b/libs/binder/include/binder/Status.h
@@ -18,8 +18,7 @@
#define ANDROID_BINDER_STATUS_H
#include <cstdint>
-#include <sstream> // historical
-#include <ostream>
+#include <sstream>
#include <binder/Parcel.h>
#include <utils/String8.h>
@@ -91,9 +90,6 @@ public:
static Status fromExceptionCode(int32_t exceptionCode,
const char* message);
- // warning: this is still considered an error if it is constructed with a
- // zero value error code. Please use Status::ok() instead and avoid zero
- // error codes
static Status fromServiceSpecificError(int32_t serviceSpecificErrorCode);
static Status fromServiceSpecificError(int32_t serviceSpecificErrorCode,
const String8& message);
@@ -157,9 +153,8 @@ private:
String8 mMessage;
}; // class Status
-static inline std::ostream& operator<< (std::ostream& o, const Status& s) {
- return o << s.toString8();
-}
+// For gtest output logging
+std::stringstream& operator<< (std::stringstream& stream, const Status& s);
} // namespace binder
} // namespace android