aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Muxi Yan <mxyan@google.com>2016-07-19 14:33:23 -0700
committerGravatar Muxi Yan <mxyan@google.com>2016-07-19 14:33:23 -0700
commitb6b0932c28ff636d2e4405ef54d5a62349c2cd18 (patch)
tree42fbe0867f03ac3a1b716328fbb6da281572a2cd /src
parentbff5cbf6b588feb7fd218d4cee5657c8effe885d (diff)
Add fixture description and TODO for test name inferral from test case method name
Diffstat (limited to 'src')
-rw-r--r--src/objective-c/tests/CoreCronetEnd2EndTests/CoreCronetEnd2EndTests.m16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/objective-c/tests/CoreCronetEnd2EndTests/CoreCronetEnd2EndTests.m b/src/objective-c/tests/CoreCronetEnd2EndTests/CoreCronetEnd2EndTests.m
index ec1d222fbd..122200a294 100644
--- a/src/objective-c/tests/CoreCronetEnd2EndTests/CoreCronetEnd2EndTests.m
+++ b/src/objective-c/tests/CoreCronetEnd2EndTests/CoreCronetEnd2EndTests.m
@@ -31,6 +31,18 @@
*
*/
+/*
+ * This test file is derived from fixture h2_ssl.c in core end2end test
+ * (test/core/end2end/fixture/h2_ssl.c). The structure of the fixture is
+ * preserved as much as possible
+ *
+ * This fixture creates a server full stack using chttp2 and a client
+ * full stack using Cronet. End-to-end tests are run against this
+ * configuration
+ *
+ */
+
+
#import <XCTest/XCTest.h>
#include "test/core/end2end/end2end_tests.h"
@@ -166,6 +178,7 @@ static grpc_end2end_test_config configs[] = {
+char *roots_filename;
@interface CoreCronetEnd2EndTests : XCTestCase
@@ -173,7 +186,6 @@ static grpc_end2end_test_config configs[] = {
@implementation CoreCronetEnd2EndTests
-char *roots_filename;
// The setUp() function is run before the test cases run and only run once
+ (void)setUp {
@@ -217,6 +229,8 @@ char *roots_filename;
}
}
+// TODO(mxyan): Use NSStringFromSelector(_cmd) to acquire test name from the
+// test case method name, so that bodies of test cases can stay identical
- (void)testBadHostname {
[self testIndividualCase:"bad_hostname"];
}