diff options
author | ncteisen <ncteisen@gmail.com> | 2018-07-19 07:57:13 -0700 |
---|---|---|
committer | ncteisen <ncteisen@gmail.com> | 2018-07-19 09:03:21 -0700 |
commit | 7daa0f911b8cd7d519df62b22b09a1d844c90915 (patch) | |
tree | c729fc7149229ea997d767b1531d46b85d6d64b1 /src/android/test/interop | |
parent | 481c1d57e7fc92f74c79b9aa0f7c8f0eaa51000b (diff) |
Fix andriod interop client
Diffstat (limited to 'src/android/test/interop')
-rw-r--r-- | src/android/test/interop/app/src/main/cpp/grpc-interop.cc | 5 |
1 files 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 bbdc84abdd..07834250d2 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<grpc::testing::InteropClient> GetClient(const char* host, credentials = grpc::InsecureChannelCredentials(); } + grpc::testing::ChannelCreationFunc channel_creation_func = + std::bind(grpc::CreateChannel, host_port, credentials); return std::shared_ptr<grpc::testing::InteropClient>( - 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 |