Skip to content
Snippets Groups Projects
Commit 2d32771a authored by Nate Kibler's avatar Nate Kibler
Browse files

Removed comment from code generation and updated tests

parent 8d282a2f
No related branches found
No related tags found
No related merge requests found
......@@ -241,7 +241,6 @@ void PrintMethodImplementations(Printer *printer,
printer.Print(" serviceName:(NSString *)serviceName {\n");
printer.Print(" return [self initWithHost:host];\n");
printer.Print("}\n\n");
printer.Print("// Class factory method\n");
printer.Print("+ (instancetype)serviceWithHost:(NSString *)host {\n");
printer.Print(" return [[self alloc] initWithHost:host];\n");
printer.Print("}\n\n\n");
......
......@@ -89,7 +89,7 @@ static NSString * const kRemoteSSLHost = @"grpc-test.sandbox.google.com";
}
- (void)setUp {
_service = [[RMTTestService alloc] initWithHost:self.class.host];
_service = [RMTTestService serviceWithHost:self.class.host];
}
- (void)testEmptyUnaryRPC {
......@@ -274,17 +274,17 @@ static NSString * const kRemoteSSLHost = @"grpc-test.sandbox.google.com";
- (void)testCancelAfterFirstResponseRPC {
__weak XCTestExpectation *expectation = [self expectationWithDescription:@"CancelAfterFirstResponse"];
// A buffered pipe to which we write a single value but never close
GRXBufferedPipe *requestsBuffer = [[GRXBufferedPipe alloc] init];
__block BOOL receivedResponse = NO;
id request = [RMTStreamingOutputCallRequest messageWithPayloadSize:@21782
requestedResponseSize:@31415];
[requestsBuffer writeValue:request];
__block ProtoRPC *call =
[_service RPCToFullDuplexCallWithRequestsWriter:requestsBuffer
eventHandler:^(BOOL done,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment