Index: third_party/grpc/src/objective-c/GRPCClient/GRPCCall+Tests.h |
diff --git a/third_party/tcmalloc/chromium/src/base/linuxthreads.h b/third_party/grpc/src/objective-c/GRPCClient/GRPCCall+Tests.h |
similarity index 60% |
copy from third_party/tcmalloc/chromium/src/base/linuxthreads.h |
copy to third_party/grpc/src/objective-c/GRPCClient/GRPCCall+Tests.h |
index 5c318fed7ec4c47e7bf082e315992e102abcd620..ccc5723ec702e9333aba8201fec04412d3678f85 100644 |
--- a/third_party/tcmalloc/chromium/src/base/linuxthreads.h |
+++ b/third_party/grpc/src/objective-c/GRPCClient/GRPCCall+Tests.h |
@@ -1,4 +1,6 @@ |
-/* Copyright (c) 2005-2007, Google Inc. |
+/* |
+ * |
+ * Copyright 2015, Google Inc. |
* All rights reserved. |
* |
* Redistribution and use in source and binary forms, with or without |
@@ -27,27 +29,32 @@ |
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
* |
- * --- |
- * Author: Markus Gutschke |
*/ |
-#ifndef _LINUXTHREADS_H |
-#define _LINUXTHREADS_H |
+#import "GRPCCall.h" |
-/* Include thread_lister.h to get the interface that we implement for linux. |
+/** |
+ * 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. |
*/ |
+@interface GRPCCall (Tests) |
-/* We currently only support x86-32 and x86-64 on Linux. Porting to other |
- * related platforms should not be difficult. |
+/** |
+ * 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. |
*/ |
-#if (defined(__i386__) || defined(__x86_64__) || defined(__ARM_ARCH_3__) || \ |
- defined(__mips__) || defined(__PPC__)) && defined(__linux) |
++ (void)useTestCertsPath:(NSString *)certsPath |
+ testName:(NSString *)testName |
+ forHost:(NSString *)host; |
-/* Define the THREADS symbol to make sure that there is exactly one core dumper |
- * built into the library. |
+/** |
+ * 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. |
*/ |
-#define THREADS "Linux /proc" |
- |
-#endif |
- |
-#endif /* _LINUXTHREADS_H */ |
++ (void)useInsecureConnectionsForHost:(NSString *)host; |
+@end |