aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/security/credentials/fake
diff options
context:
space:
mode:
authorGravatar Mark D. Roth <roth@google.com>2017-06-09 09:08:23 -0700
committerGravatar Mark D. Roth <roth@google.com>2017-06-09 09:08:23 -0700
commit8d5e60b8787d1a6aefca037a08799f58a22aa78d (patch)
tree1793acde49dfa0407c5da12816304a691c622221 /src/core/lib/security/credentials/fake
parent74923accac565cd7a4bd07b6ff054e8464f65fc1 (diff)
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 15288e1dbe..6457de7234 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(