aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/security/credentials/fake
diff options
context:
space:
mode:
authorGravatar Mark D. Roth <roth@google.com>2017-06-12 08:29:17 -0700
committerGravatar GitHub <noreply@github.com>2017-06-12 08:29:17 -0700
commit696560cf35a49a0e92249ea92fda67fafcf144c5 (patch)
treed9c65fd67271328cf9ce7b61d61e8582dfd374d7 /src/core/lib/security/credentials/fake
parentc7d9c804966d12d852d08f4f132c716846a10ece (diff)
parent8d5e60b8787d1a6aefca037a08799f58a22aa78d (diff)
Merge pull request #11391 from markdroth/channel_args_helpers
Add helpers for creating channel args.
Diffstat (limited to 'src/core/lib/security/credentials/fake')
-rw-r--r--src/core/lib/security/credentials/fake/fake_credentials.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/core/lib/security/credentials/fake/fake_credentials.c b/src/core/lib/security/credentials/fake/fake_credentials.c
index 3cbb399429..67e74f7b92 100644
--- a/src/core/lib/security/credentials/fake/fake_credentials.c
+++ b/src/core/lib/security/credentials/fake/fake_credentials.c
@@ -78,11 +78,8 @@ grpc_server_credentials *grpc_fake_transport_security_server_credentials_create(
}
grpc_arg grpc_fake_transport_expected_targets_arg(char *expected_targets) {
- grpc_arg arg;
- arg.type = GRPC_ARG_STRING;
- arg.key = GRPC_ARG_FAKE_SECURITY_EXPECTED_TARGETS;
- arg.value.string = expected_targets;
- return arg;
+ return grpc_channel_arg_string_create(GRPC_ARG_FAKE_SECURITY_EXPECTED_TARGETS,
+ expected_targets);
}
const char *grpc_fake_transport_get_expected_targets(