aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomasz Wasilczyk <twasilczyk@google.com>2024-01-09 12:46:40 -0800
committerTomasz Wasilczyk <twasilczyk@google.com>2024-01-09 12:47:51 -0800
commit644fa15e7b50e2b663da236b492cc8a9e233dbb7 (patch)
tree8ae67d788e547d9075fa8c60c39d6ebe579c6c82
parentc17fcbd3888a16b30d43048beb2c2025fb9d7a96 (diff)
downloadaidl-644fa15e7b50e2b663da236b492cc8a9e233dbb7.tar.gz
Don't print char16_t to a stream
It's removed from recent libc++ Bug: 175635923 Test: m MODULES-IN-system-tools-aidl Change-Id: I9fa6c24873a81e0670f922be4494bc81c8071c1a
-rw-r--r--tests/aidl_test_service_ndk.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/aidl_test_service_ndk.cpp b/tests/aidl_test_service_ndk.cpp
index 6d398b04..627e7c03 100644
--- a/tests/aidl_test_service_ndk.cpp
+++ b/tests/aidl_test_service_ndk.cpp
@@ -162,6 +162,11 @@ class NativeService : public BnTestService {
ALOGI("Repeating token %s", token_str.str().c_str());
}
+ template <>
+ void LogRepeatedToken(const char16_t& token) {
+ ALOGI("Repeating token (char16_t) %d", token);
+ }
+
ScopedAStatus TestOneway() override { return ScopedAStatus::fromStatus(android::UNKNOWN_ERROR); }
ScopedAStatus Deprecated() override { return ScopedAStatus::ok(); }