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

Commit 27335707 authored by Myles Watson's avatar Myles Watson Committed by Gerrit Code Review
Browse files

Merge "wakelock test: Use AServiceManager_waitForService"

parents 835eb54d 6a7af1cb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -433,7 +433,7 @@ cc_test {
    sanitize: {
        address: true,
    },
    min_sdk_version: "30",
    min_sdk_version: "Tiramisu",
}

cc_test {
+1 −1
Original line number Diff line number Diff line
@@ -126,7 +126,7 @@ class WakelockNativeTest : public Test {

    WakelockNative::Get().Initialize();

    auto binder_raw = AServiceManager_getService("suspend_control");
    auto binder_raw = AServiceManager_waitForService("suspend_control");
    ASSERT_NE(binder_raw, nullptr);
    binder.set(binder_raw);
    control_service_ = ISuspendControlService::fromBinder(binder);