Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e07d273c authored by Yifan Hong's avatar Yifan Hong
Browse files

binder: RPC test rename function.

... In preperation for the next CL.

Test: pass
Change-Id: I3068925d91c949985ae4bff7e9390e2d7b6b6f01
parent a3612f32
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1444,7 +1444,7 @@ public:
                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:
    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 @@ public:
                      serverTransport->interruptableWriteFully(mFdTrigger.get(), message.data(),
                                                               message.size()));
        }
        void shutdown() {
        void shutdownAndWait() {
            mFdTrigger->trigger();
            if (mThread != nullptr) {
                mThread->join();