binder: RPC test rename function.
... In preperation for the next CL.
Test: pass
Change-Id: I3068925d91c949985ae4bff7e9390e2d7b6b6f01
diff --git a/libs/binder/tests/binderRpcTest.cpp b/libs/binder/tests/binderRpcTest.cpp
index a4e37ad..880b9ce 100644
--- a/libs/binder/tests/binderRpcTest.cpp
+++ b/libs/binder/tests/binderRpcTest.cpp
@@ -1444,7 +1444,7 @@
PrintToString(certificateFormat);
}
void TearDown() override {
- for (auto& server : mServers) server->shutdown();
+ for (auto& server : mServers) server->shutdownAndWait();
}
// A server that handles client socket connections.
@@ -1452,7 +1452,7 @@
public:
explicit Server() {}
Server(Server&&) = default;
- ~Server() { shutdown(); }
+ ~Server() { shutdownAndWait(); }
[[nodiscard]] AssertionResult setUp() {
auto [socketType, rpcSecurity, certificateFormat] = GetParam();
auto rpcServer = RpcServer::make(newFactory(rpcSecurity));
@@ -1541,7 +1541,7 @@
serverTransport->interruptableWriteFully(mFdTrigger.get(), message.data(),
message.size()));
}
- void shutdown() {
+ void shutdownAndWait() {
mFdTrigger->trigger();
if (mThread != nullptr) {
mThread->join();