aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objective-c/GRPCClient/GRPCCall+Tests.h
diff options
context:
space:
mode:
authorGravatar Muxi Yan <mxyan@google.com>2018-10-08 15:51:39 -0700
committerGravatar Muxi Yan <mxyan@google.com>2018-10-08 15:51:39 -0700
commit0fd4727defda5f8bef106a1f3b59263886b9b6c6 (patch)
tree698c2bf1b6b31e6a652b7093b48d0fae81b11090 /src/objective-c/GRPCClient/GRPCCall+Tests.h
parente2e5c8189310841f7edd5ae8a51a616c9d93b309 (diff)
deprecated old API
Diffstat (limited to 'src/objective-c/GRPCClient/GRPCCall+Tests.h')
-rw-r--r--src/objective-c/GRPCClient/GRPCCall+Tests.h25
1 files changed, 2 insertions, 23 deletions
diff --git a/src/objective-c/GRPCClient/GRPCCall+Tests.h b/src/objective-c/GRPCClient/GRPCCall+Tests.h
index 5d35182ae5..edaa5ed582 100644
--- a/src/objective-c/GRPCClient/GRPCCall+Tests.h
+++ b/src/objective-c/GRPCClient/GRPCCall+Tests.h
@@ -18,34 +18,13 @@
#import "GRPCCall.h"
-/**
- * Methods to let tune down the security of gRPC connections for specific hosts. These shouldn't be
- * used in releases, but are sometimes needed for testing.
- */
+// Deprecated interface. Please use GRPCCallOptions instead.
@interface GRPCCall (Tests)
-/**
- * Establish all SSL connections to the provided host using the passed SSL target name and the root
- * certificates found in the file at |certsPath|.
- *
- * Must be called before any gRPC call to that host is made. It's illegal to pass the same host to
- * more than one invocation of the methods of this category.
- */
+ (void)useTestCertsPath:(NSString *)certsPath
testName:(NSString *)testName
forHost:(NSString *)host;
-
-/**
- * Establish all connections to the provided host using cleartext instead of SSL.
- *
- * Must be called before any gRPC call to that host is made. It's illegal to pass the same host to
- * more than one invocation of the methods of this category.
- */
+ (void)useInsecureConnectionsForHost:(NSString *)host;
-
-/**
- * Resets all host configurations to their default values, and flushes all connections from the
- * cache.
- */
+ (void)resetHostSettings;
+
@end