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/tests/InteropTestsLocalSSL.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/tests/InteropTestsLocalSSL.m')
-rw-r--r-- | src/objective-c/tests/InteropTestsLocalSSL.m | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/objective-c/tests/InteropTestsLocalSSL.m b/src/objective-c/tests/InteropTestsLocalSSL.m index a8c4dc7dfd..e8222f602f 100644 --- a/src/objective-c/tests/InteropTestsLocalSSL.m +++ b/src/objective-c/tests/InteropTestsLocalSSL.m @@ -40,15 +40,31 @@ static int32_t kLocalInteropServerOverhead = 10; return kLocalSSLHost; } ++ (NSString *)PEMRootCertificates { + NSBundle *bundle = [NSBundle bundleForClass:[self class]]; + NSString *certsPath = + [bundle pathForResource:@"TestCertificates.bundle/test-certificates" ofType:@"pem"]; + NSError *error; + return [NSString stringWithContentsOfFile:certsPath encoding:NSUTF8StringEncoding error:&error]; +} + ++ (NSString *)hostNameOverride { + return @"foo.test.google.fr"; +} + - (int32_t)encodingOverhead { return kLocalInteropServerOverhead; // bytes } ++ (GRPCTransportType)transportType { + return GRPCTransportTypeChttp2BoringSSL; +} + - (void)setUp { [super setUp]; // Register test server certificates and name. - NSBundle *bundle = [NSBundle bundleForClass:self.class]; + NSBundle *bundle = [NSBundle bundleForClass:[self class]]; NSString *certsPath = [bundle pathForResource:@"TestCertificates.bundle/test-certificates" ofType:@"pem"]; [GRPCCall useTestCertsPath:certsPath testName:@"foo.test.google.fr" forHost:kLocalSSLHost]; |