aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/grpc++/support
diff options
context:
space:
mode:
authorGravatar Mark D. Roth <roth@google.com>2016-11-09 14:43:07 -0800
committerGravatar Mark D. Roth <roth@google.com>2016-11-09 14:43:07 -0800
commitdc5d60b814f9fbf254e3ddf63ecfb558b8545d72 (patch)
tree6ba9547e2467fc3569206c8cc66d6cdfb21a8996 /include/grpc++/support
parent4bbdda4444d740c50774218427a319931e402fe2 (diff)
Allow setting service config via C++ API, for use in tests.
Diffstat (limited to 'include/grpc++/support')
-rw-r--r--include/grpc++/support/channel_arguments.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/grpc++/support/channel_arguments.h b/include/grpc++/support/channel_arguments.h
index 49a3e9461c..37de51e813 100644
--- a/include/grpc++/support/channel_arguments.h
+++ b/include/grpc++/support/channel_arguments.h
@@ -90,6 +90,10 @@ class ChannelArguments {
/// grpclb LB policy will be used, regardless of what is specified here.
void SetLoadBalancingPolicyName(const grpc::string& lb_policy_name);
+ /// Set service config in JSON form.
+ /// Primarily meant for use in unit tests.
+ void SetServiceConfigJSON(const grpc::string& service_config_json);
+
// Generic channel argument setters. Only for advanced use cases.
/// Set an integer argument \a value under \a key.
void SetInt(const grpc::string& key, int value);