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

Commit ce5956b1 authored by Tomasz Wasilczyk's avatar Tomasz Wasilczyk Committed by Automerger Merge Worker
Browse files

Merge "Binder tests: add explicit constructor to initialize ProcessSession"...

Merge "Binder tests: add explicit constructor to initialize ProcessSession" am: 8e9174b7 am: 1f052f59

Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2645141



Change-Id: I42138c7105fec5a05a3bb8964a186c74d654e99f
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents ffe453db 1f052f59
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -79,6 +79,7 @@ struct BinderRpcTestProcessSession {
        expectAlreadyShutdown = true;
    }

    BinderRpcTestProcessSession(std::unique_ptr<ProcessSession> proc) : proc(std::move(proc)){};
    BinderRpcTestProcessSession(BinderRpcTestProcessSession&&) = default;
    ~BinderRpcTestProcessSession() {
        if (!expectAlreadyShutdown) {
@@ -138,9 +139,7 @@ public:
    }

    BinderRpcTestProcessSession createRpcTestSocketServerProcess(const BinderRpcOptions& options) {
        BinderRpcTestProcessSession ret{
                .proc = createRpcTestSocketServerProcessEtc(options),
        };
        BinderRpcTestProcessSession ret(createRpcTestSocketServerProcessEtc(options));

        ret.rootBinder = ret.proc->sessions.empty() ? nullptr : ret.proc->sessions.at(0).root;
        ret.rootIface = interface_cast<IBinderRpcTest>(ret.rootBinder);