From 7daa0f911b8cd7d519df62b22b09a1d844c90915 Mon Sep 17 00:00:00 2001 From: ncteisen Date: Thu, 19 Jul 2018 07:57:13 -0700 Subject: [PATCH] Fix andriod interop client --- src/android/test/interop/app/src/main/cpp/grpc-interop.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/android/test/interop/app/src/main/cpp/grpc-interop.cc b/src/android/test/interop/app/src/main/cpp/grpc-interop.cc index bbdc84abdd6..07834250d22 100644 --- a/src/android/test/interop/app/src/main/cpp/grpc-interop.cc +++ b/src/android/test/interop/app/src/main/cpp/grpc-interop.cc @@ -45,9 +45,10 @@ std::shared_ptr GetClient(const char* host, credentials = grpc::InsecureChannelCredentials(); } + grpc::testing::ChannelCreationFunc channel_creation_func = + std::bind(grpc::CreateChannel, host_port, credentials); return std::shared_ptr( - new grpc::testing::InteropClient( - grpc::CreateChannel(host_port, credentials), true, false)); + new grpc::testing::InteropClient(channel_creation_func, true, false)); } extern "C" JNIEXPORT jboolean JNICALL