summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Steven Moreland <smoreland@google.com> 2023-06-08 20:13:55 +0000
committer Steven Moreland <smoreland@google.com> 2023-06-08 20:13:55 +0000
commit92ef86f1e43c83ce55d2c842633f7709d6c2c4d2 (patch)
tree9a87af5c2ba535eaede0047c50251b354bc52a3a
parent0c590d71bd97558e8b456c1a0b74e53a9e5129af (diff)
binderRustNdkInteropTest: C++ in-process to Rust
C++<->Rust FFI just got that much easier. Bug: 286246993 Test: binderRustNdkInteropTest Change-Id: I92ae9b7f2ff2988f6ac4d248eaa91606062f4709
-rw-r--r--libs/binder/rust/tests/binderRustNdkInteropTest.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/libs/binder/rust/tests/binderRustNdkInteropTest.cpp b/libs/binder/rust/tests/binderRustNdkInteropTest.cpp
index 59ca6edf12..663b9bbe37 100644
--- a/libs/binder/rust/tests/binderRustNdkInteropTest.cpp
+++ b/libs/binder/rust/tests/binderRustNdkInteropTest.cpp
@@ -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) {