From 9afdc0f1449f89f6c50c39f0004c33aa2456df3c Mon Sep 17 00:00:00 2001 From: Steven Moreland Date: Fri, 4 Nov 2022 20:36:52 +0000 Subject: libbinder_ndk: ScopedAStatus ostream<< For developer convenience. Bug: N/A Test: binderVendorDoubleLoadTest Change-Id: I3ca6c67a30682d53dc4767695f19436e5ef992c3 --- libs/binder/ndk/include_cpp/android/binder_auto_utils.h | 9 +++++++-- libs/binder/ndk/tests/binderVendorDoubleLoadTest.cpp | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/libs/binder/ndk/include_cpp/android/binder_auto_utils.h b/libs/binder/ndk/include_cpp/android/binder_auto_utils.h index fccc0afa89..fe5f35c266 100644 --- a/libs/binder/ndk/include_cpp/android/binder_auto_utils.h +++ b/libs/binder/ndk/include_cpp/android/binder_auto_utils.h @@ -30,11 +30,11 @@ #include #include #include - #include - #include + #include +#include #include namespace ndk { @@ -315,6 +315,11 @@ class ScopedAStatus : public impl::ScopedAResourceRepeatString("foo", &outString); EXPECT_EQ(STATUS_OK, AStatus_getExceptionCode(status.get())) - << serviceName << " " << status.getDescription(); + << serviceName << " " << status; EXPECT_EQ("foo", outString) << serviceName; } } -- cgit v1.2.3-59-g8ed1b