summaryrefslogtreecommitdiff
path: root/libs/binder/Status.cpp
diff options
context:
space:
mode:
author Ralph Nathan <ralphnathan@google.com> 2016-04-13 12:42:06 -0700
committer Ralph Nathan <ralphnathan@google.com> 2016-04-13 12:46:25 -0700
commit00cb980fcb6032f3a5ae124dc64ee2df8fb79a31 (patch)
treed96fe67eadac78b39f11f01859c48e2e1f14e0bc /libs/binder/Status.cpp
parentac6335cdc222a0a2e84c0ff99b8821d4c58ef4d2 (diff)
libbinder: Remove templated binder::Status stream operator.
The templated binder::Status stream operator doesn't work with gmock because of ambiguous operator overloading. Limiting the stream operator to just std::stringstream allows it to be used with gmock. BUG=28171901 TEST=Compiles with gmock and CameraBinderTests Change-Id: Ia674b68cbff4911b3f5cc3d8ee57d04a1d6cf6bf
Diffstat (limited to 'libs/binder/Status.cpp')
-rw-r--r--libs/binder/Status.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/binder/Status.cpp b/libs/binder/Status.cpp
index d3520d62e9..5ae6db2f58 100644
--- a/libs/binder/Status.cpp
+++ b/libs/binder/Status.cpp
@@ -158,5 +158,10 @@ String8 Status::toString8() const {
return ret;
}
+std::stringstream& operator<< (std::stringstream& stream, const Status& s) {
+ stream << s.toString8().string();
+ return stream;
+}
+
} // namespace binder
} // namespace android