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

Commit f423c74b authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "binderRpcTest: fix on host" into main

parents 9e28f5b2 cb52900c
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -305,6 +305,9 @@ cc_defaults {
        android: {
            test_suites: ["vts"],
        },
        host: {
            cflags: ["-DBINDER_NO_KERNEL_IPC_TESTING"],
        },
    },
    defaults: [
        "binderRpcTest_common_defaults",
+5 −0
Original line number Diff line number Diff line
@@ -1724,6 +1724,11 @@ TEST_F(BinderARpcNdk, ARpcDelegateAccessorWrongInstance) {
}

TEST_F(BinderARpcNdk, ARpcDelegateNonAccessor) {
    // TODO: test in environments we can get a proxied service?
#ifndef __BIONIC__
    GTEST_SKIP() << "Can only get AIDL services on device.";
#endif

    auto service = defaultServiceManager()->checkService(String16(kKnownAidlService));
    ASSERT_NE(nullptr, service);
    ndk::SpAIBinder binder = ndk::SpAIBinder(AIBinder_fromPlatformBinder(service));