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

Commit c62388bf authored by Steven Moreland's avatar Steven Moreland Committed by Automerger Merge Worker
Browse files

Merge "binderRustNdkInteropTest: C++ in-process to Rust" am: 2398cefe am:...

Merge "binderRustNdkInteropTest: C++ in-process to Rust" am: 2398cefe am: a08e29b3 am: 66e1450a

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



Change-Id: Ic7715cb89a32d5003a0484d8bd20fe35d32f2000
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 37d4dcbb 66e1450a
Loading
Loading
Loading
Loading
+5 −7
Original line number Diff line number Diff line
@@ -54,14 +54,12 @@ TEST(RustNdkInterop, NdkCanCallRust) {
    EXPECT_EQ(STATUS_OK, AIBinder_ping(binder.get()));

    auto interface = aidl::IBinderRustNdkInteropTest::fromBinder(binder);
    // TODO(b/167723746): this test requires that fromBinder allow association
    // with an already associated local binder by treating it as remote.
    EXPECT_EQ(interface, nullptr);
    EXPECT_NE(interface, nullptr);

    // std::string in("testing");
    // std::string out;
    // EXPECT_TRUE(interface->echo(in, &out).isOk());
    // EXPECT_EQ(in, out);
    std::string in("testing");
    std::string out;
    EXPECT_TRUE(interface->echo(in, &out).isOk());
    EXPECT_EQ(in, out);
}

int main(int argc, char** argv) {