diff options
author | Muxi Yan <muxi@users.noreply.github.com> | 2019-01-07 09:50:21 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-07 09:50:21 -0800 |
commit | 36b47ce0de60754cf14258e15d25dd2d1bb5abe0 (patch) | |
tree | 891087733e8609cc0594559dbd17d8b4b9b5b1e9 /src/objective-c/GRPCClient/GRPCCall+Tests.m | |
parent | 46bd2f7adb926053345665d5c487fa20acd2b5b0 (diff) | |
parent | b4a926961abc9e29016b2ba30093f3925de10514 (diff) |
Merge pull request #16190 from muxi/config-isolation
Implement L38: gRPC Objective-C API Upgrade
Diffstat (limited to 'src/objective-c/GRPCClient/GRPCCall+Tests.m')
-rw-r--r-- | src/objective-c/GRPCClient/GRPCCall+Tests.m | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/objective-c/GRPCClient/GRPCCall+Tests.m b/src/objective-c/GRPCClient/GRPCCall+Tests.m index 0db3ad6b39..ac3b6a658f 100644 --- a/src/objective-c/GRPCClient/GRPCCall+Tests.m +++ b/src/objective-c/GRPCClient/GRPCCall+Tests.m @@ -20,6 +20,8 @@ #import "private/GRPCHost.h" +#import "GRPCCallOptions.h" + @implementation GRPCCall (Tests) + (void)useTestCertsPath:(NSString *)certsPath @@ -42,7 +44,7 @@ + (void)useInsecureConnectionsForHost:(NSString *)host { GRPCHost *hostConfig = [GRPCHost hostWithAddress:host]; - hostConfig.secure = NO; + hostConfig.transportType = GRPCTransportTypeInsecure; } + (void)resetHostSettings { |