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, ...@@ -241,7 +241,6 @@ void PrintMethodImplementations(Printer *printer,
printer.Print(" serviceName:(NSString *)serviceName {\n"); printer.Print(" serviceName:(NSString *)serviceName {\n");
printer.Print(" return [self initWithHost:host];\n"); printer.Print(" return [self initWithHost:host];\n");
printer.Print("}\n\n"); printer.Print("}\n\n");
printer.Print("// Class factory method\n");
printer.Print("+ (instancetype)serviceWithHost:(NSString *)host {\n"); printer.Print("+ (instancetype)serviceWithHost:(NSString *)host {\n");
printer.Print(" return [[self alloc] initWithHost:host];\n"); printer.Print(" return [[self alloc] initWithHost:host];\n");
printer.Print("}\n\n\n"); printer.Print("}\n\n\n");
......
...@@ -89,7 +89,7 @@ static NSString * const kRemoteSSLHost = @"grpc-test.sandbox.google.com"; ...@@ -89,7 +89,7 @@ static NSString * const kRemoteSSLHost = @"grpc-test.sandbox.google.com";
} }
- (void)setUp { - (void)setUp {
_service = [[RMTTestService alloc] initWithHost:self.class.host]; _service = [RMTTestService serviceWithHost:self.class.host];
} }
- (void)testEmptyUnaryRPC { - (void)testEmptyUnaryRPC {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment