aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objective-c/GRPCClient/GRPCCall+Tests.h
diff options
context:
space:
mode:
authorGravatar Jorge Canizales <jcanizales@google.com>2015-08-06 12:41:04 -0700
committerGravatar Jorge Canizales <jcanizales@google.com>2015-08-06 12:41:04 -0700
commit55fcf504b9d5da7c4144a0d2a60bea748a1d8757 (patch)
treee79a51b02e197182209b45582964dc1c632dc4f9 /src/objective-c/GRPCClient/GRPCCall+Tests.h
parentb2bd06775e255ebf7de96eb00a5b1738311c682e (diff)
Document that methods in GRPCCall+Tests can only be called once per host
Diffstat (limited to 'src/objective-c/GRPCClient/GRPCCall+Tests.h')
-rw-r--r--src/objective-c/GRPCClient/GRPCCall+Tests.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/objective-c/GRPCClient/GRPCCall+Tests.h b/src/objective-c/GRPCClient/GRPCCall+Tests.h
index 981b154b40..cca1614606 100644
--- a/src/objective-c/GRPCClient/GRPCCall+Tests.h
+++ b/src/objective-c/GRPCClient/GRPCCall+Tests.h
@@ -39,11 +39,16 @@
// 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.
+//
+// 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;
@end