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

Commit 86dd583d authored by Devin Moore's avatar Devin Moore Committed by Android (Google) Code Review
Browse files

Merge "Remove AddAccessorEmpty test case in binderAllocationLimits" into main

parents 749497e7 fc6f52e8
Loading
Loading
Loading
Loading
+0 −14
Original line number Diff line number Diff line
@@ -323,20 +323,6 @@ TEST(BinderAccessorAllocation, AddAccessorCheckService) {
    status_t status = android::removeAccessorProvider(receipt);
}

TEST(BinderAccessorAllocation, AddAccessorEmpty) {
    std::vector<size_t> expectedMallocs = {
            48, // From ALOGE with empty set of instances
    };
    std::set<std::string> supportedInstances = {};
    auto onMalloc = setExpectedMallocs(std::move(expectedMallocs));

    auto receipt =
            android::addAccessorProvider(std::move(supportedInstances),
                                         [&](const String16&) -> sp<IBinder> { return nullptr; });

    EXPECT_TRUE(receipt.expired());
}

TEST(RpcBinderAllocation, SetupRpcServer) {
    std::string tmp = getenv("TMPDIR") ?: "/tmp";
    std::string addr = tmp + "/binderRpcBenchmark";