diff options
author | Muxi Yan <mxyan@google.com> | 2017-03-10 11:41:53 -0800 |
---|---|---|
committer | Muxi Yan <mxyan@google.com> | 2017-03-16 10:04:54 -0700 |
commit | 10112e50defa8b4ea10a153fd206ae8a1f1665a6 (patch) | |
tree | b97adecef3bacdbe4f1874d815145975d0e6cc0b /src/objective-c/tests/InteropTestsLocalSSL.m | |
parent | f69a885f176c1bac9b15d7b270a9dc50fbf3a4f6 (diff) |
Use k-contant and add comment for encoding overhead
Diffstat (limited to 'src/objective-c/tests/InteropTestsLocalSSL.m')
-rw-r--r-- | src/objective-c/tests/InteropTestsLocalSSL.m | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/objective-c/tests/InteropTestsLocalSSL.m b/src/objective-c/tests/InteropTestsLocalSSL.m index 1479c5896c..934d500abc 100644 --- a/src/objective-c/tests/InteropTestsLocalSSL.m +++ b/src/objective-c/tests/InteropTestsLocalSSL.m @@ -37,6 +37,10 @@ static NSString * const kLocalSSLHost = @"localhost:5051"; +// The Protocol Buffers encoding overhead of local interop server. Acquired +// by experiment. Adjust this when server's proto file changes. +static int32_t kLocalInteropServerOverhead = 10; + /** Tests in InteropTests.m, sending the RPCs to a local SSL server. */ @interface InteropTestsLocalSSL : InteropTests @end @@ -48,7 +52,7 @@ static NSString * const kLocalSSLHost = @"localhost:5051"; } - (int32_t)encodingOverhead { - return 10; // bytes + return kLocalInteropServerOverhead; // bytes } - (void)setUp { |