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

Commit 82d05fdf authored by Jooyung Han's avatar Jooyung Han Committed by Automerger Merge Worker
Browse files

Merge "Revert "Testing AIDL delegator class with RPC"" am: 35de4cf0 am:...

Merge "Revert "Testing AIDL delegator class with RPC"" am: 35de4cf0 am: a700ae69 am: 371fcf9f am: c1f3a2be am: 6d17afde

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

Change-Id: I3fad6a378f1c29a88993c26858573e417c67d1b6
parents 714c63fc 6d17afde
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -1307,16 +1307,6 @@ TEST_P(BinderRpc, Fds) {
    ASSERT_EQ(beforeFds, countFds()) << (system("ls -l /proc/self/fd/"), "fd leak?");
}

TEST_P(BinderRpc, AidlDelegatorTest) {
    auto proc = createRpcTestSocketServerProcess({});
    auto myDelegator = sp<IBinderRpcTestDelegator>::make(proc.rootIface);
    ASSERT_NE(nullptr, myDelegator);

    std::string doubled;
    EXPECT_OK(myDelegator->doubleString("cool ", &doubled));
    EXPECT_EQ("cool cool ", doubled);
}

static bool testSupportVsockLoopback() {
    // We don't need to enable TLS to know if vsock is supported.
    unsigned int vsockPort = allocateVsockPort();