aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Makarand Dharmapurikar <makarandd@google.com>2016-05-25 13:21:53 -0700
committerGravatar Makarand Dharmapurikar <makarandd@google.com>2016-05-25 13:21:53 -0700
commit6d2ed00a1a6c1a2d101d40f125ecb688a37cdad0 (patch)
tree0ef67d41bd0bccac410a6776e77ba1320567deb4
parentde733bd78ce8c1390fa8553dd145b304178c23f4 (diff)
Slight change to surface API.
-rw-r--r--src/objective-c/CronetFramework.podspec2
-rw-r--r--src/objective-c/GRPCClient/GRPCCall+Cronet.h3
-rw-r--r--src/objective-c/GRPCClient/GRPCCall+Cronet.m5
-rw-r--r--src/objective-c/tests/InteropTests.m2
4 files changed, 5 insertions, 7 deletions
diff --git a/src/objective-c/CronetFramework.podspec b/src/objective-c/CronetFramework.podspec
index 62c1507a23..20af7647f7 100644
--- a/src/objective-c/CronetFramework.podspec
+++ b/src/objective-c/CronetFramework.podspec
@@ -35,7 +35,7 @@ Pod::Spec.new do |s|
s.homepage = "http://chromium.org"
s.license = { :type => 'BSD' }
s.vendored_framework = "Cronet.framework"
- s.author = ""
+ s.author = "The Chromium Authors"
s.ios.deployment_target = "8.0"
s.source = { :http => 'https://storage.googleapis.com/grpc-precompiled-binaries/cronet/Cronet.framework.zip' }
s.preserve_paths = "Cronet.framework"
diff --git a/src/objective-c/GRPCClient/GRPCCall+Cronet.h b/src/objective-c/GRPCClient/GRPCCall+Cronet.h
index e63aaec94f..d623ed61a3 100644
--- a/src/objective-c/GRPCClient/GRPCCall+Cronet.h
+++ b/src/objective-c/GRPCClient/GRPCCall+Cronet.h
@@ -39,8 +39,7 @@
*/
@interface GRPCCall (Cronet)
-+(void) setUseCronet:(BOOL) useCronet
- :(cronet_engine *)cronet_engine;
++(void)useCronet:(cronet_engine *)cronet_engine;
+(void *)getCronetEngine;
diff --git a/src/objective-c/GRPCClient/GRPCCall+Cronet.m b/src/objective-c/GRPCClient/GRPCCall+Cronet.m
index 17d6254a47..2409cd4645 100644
--- a/src/objective-c/GRPCClient/GRPCCall+Cronet.m
+++ b/src/objective-c/GRPCClient/GRPCCall+Cronet.m
@@ -38,9 +38,8 @@ static void *g_cronet_engine;
@implementation GRPCCall (Cronet)
-+ (void)setUseCronet:(BOOL)useCronet
- :(cronet_engine *)cronet_engine {
- use_cronet = useCronet;
++ (void)useCronet:(cronet_engine *)cronet_engine {
+ use_cronet = YES;
g_cronet_engine = cronet_engine;
}
diff --git a/src/objective-c/tests/InteropTests.m b/src/objective-c/tests/InteropTests.m
index 8d3ac6eddd..361294d4ac 100644
--- a/src/objective-c/tests/InteropTests.m
+++ b/src/objective-c/tests/InteropTests.m
@@ -98,7 +98,7 @@ static cronet_engine *_engine = NULL;
[Cronet setSslKeyLogFileName:@"cronetkeylogfile.pem"];
[Cronet start];
_engine = [Cronet getGlobalEngine];
- [GRPCCall setUseCronet:true :_engine];
+ [GRPCCall useCronet:_engine];
}
#endif
}