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

Commit 37b33040 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "binderRpcTest: undo ThreadPoolLimit optimization" am: 00be6932 am:...

Merge "binderRpcTest: undo ThreadPoolLimit optimization" am: 00be6932 am: fd4af96f am: 8e4ba781 am: 2e33fcee

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



Change-Id: I1da69407f31eb040251db3f3f864e08e89310946
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 8c96c96c 2e33fcee
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -464,7 +464,9 @@ TEST_P(BinderRpc, ThreadPoolOverSaturated) {
    constexpr size_t kNumThreads = 10;
    constexpr size_t kNumCalls = kNumThreads + 3;
    auto proc = createRpcTestSocketServerProcess({.numThreads = kNumThreads});
    testThreadPoolOverSaturated(proc.rootIface, kNumCalls, 250 /*ms*/);

    // b/272429574 - below 500ms, the test fails
    testThreadPoolOverSaturated(proc.rootIface, kNumCalls, 500 /*ms*/);
}

TEST_P(BinderRpc, ThreadPoolLimitOutgoing) {
@@ -477,7 +479,9 @@ TEST_P(BinderRpc, ThreadPoolLimitOutgoing) {
    constexpr size_t kNumCalls = kNumOutgoingConnections + 3;
    auto proc = createRpcTestSocketServerProcess(
            {.numThreads = kNumThreads, .numOutgoingConnections = kNumOutgoingConnections});
    testThreadPoolOverSaturated(proc.rootIface, kNumCalls, 250 /*ms*/);

    // b/272429574 - below 500ms, the test fails
    testThreadPoolOverSaturated(proc.rootIface, kNumCalls, 500 /*ms*/);
}

TEST_P(BinderRpc, ThreadingStressTest) {