From 657c2bcc675930dbc53d3e65a622257aabfb10a0 Mon Sep 17 00:00:00 2001 From: Tomasz Wasilczyk Date: Tue, 7 Nov 2023 06:57:42 -0800 Subject: Don't use libbase macros in binderRpcTest Bug: 302723053 Test: mma Change-Id: I5c76bc7dbd96c73d7d03a0b12ffc633d10e3f8e6 --- libs/binder/tests/binderRpcTest.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libs') diff --git a/libs/binder/tests/binderRpcTest.cpp b/libs/binder/tests/binderRpcTest.cpp index bc34d4c36f..bbb310a538 100644 --- a/libs/binder/tests/binderRpcTest.cpp +++ b/libs/binder/tests/binderRpcTest.cpp @@ -35,6 +35,7 @@ #include #endif // BINDER_RPC_TO_TRUSTY_TEST +#include "../Utils.h" #include "binderRpcTestCommon.h" #include "binderRpcTestFixture.h" @@ -1197,7 +1198,7 @@ bool testSupportVsockLoopback() { {.fd = serverFd.get(), .events = POLLIN, .revents = 0}, {.fd = connectFd.get(), .events = POLLOUT, .revents = 0}, }; - ret = TEMP_FAILURE_RETRY(poll(pfd, arraysize(pfd), -1)); + ret = TEMP_FAILURE_RETRY(poll(pfd, countof(pfd), -1)); LOG_ALWAYS_FATAL_IF(ret < 0, "Error polling: %s", strerror(errno)); if (pfd[0].revents & POLLIN) { -- cgit v1.2.3-59-g8ed1b