aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objective-c/tests/InteropTestsLocalCleartext.m
diff options
context:
space:
mode:
authorGravatar Muxi Yan <mxyan@google.com>2017-03-10 11:41:53 -0800
committerGravatar Muxi Yan <mxyan@google.com>2017-03-10 11:41:53 -0800
commitdc87ef5836c1bc0f885941567beee51608056db0 (patch)
tree767742ba8ba1141bce1690f3ee66d40b8c38cd69 /src/objective-c/tests/InteropTestsLocalCleartext.m
parent88a41bfa9d1260c7ad4d4b1610394d65b8311fbe (diff)
Use k-contant and add comment for encoding overhead
Diffstat (limited to 'src/objective-c/tests/InteropTestsLocalCleartext.m')
-rw-r--r--src/objective-c/tests/InteropTestsLocalCleartext.m6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/objective-c/tests/InteropTestsLocalCleartext.m b/src/objective-c/tests/InteropTestsLocalCleartext.m
index b41210f50f..4987660808 100644
--- a/src/objective-c/tests/InteropTestsLocalCleartext.m
+++ b/src/objective-c/tests/InteropTestsLocalCleartext.m
@@ -37,6 +37,10 @@
static NSString * const kLocalCleartextHost = @"localhost:5050";
+// 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 cleartext server. */
@interface InteropTestsLocalCleartext : InteropTests
@end
@@ -48,7 +52,7 @@ static NSString * const kLocalCleartextHost = @"localhost:5050";
}
- (int32_t)encodingOverhead {
- return 10; // bytes
+ return kLocalInteropServerOverhead; // bytes
}
- (void)setUp {