writeWithMessage->writeMessage

pull/16190/head
Muxi Yan 6 years ago
parent 2a9efc3d1f
commit 9925c13b27
  1. 2
      src/objective-c/ProtoRPC/ProtoRPC.h
  2. 4
      src/objective-c/ProtoRPC/ProtoRPC.m
  3. 6
      src/objective-c/tests/InteropTests.m

@ -107,7 +107,7 @@
* Send a message to the server. The message should be a Protobuf message which will be serialized
* internally.
*/
- (void)writeWithMessage:(GPBMessage *)message;
- (void)writeMessage:(GPBMessage *)message;
/**
* Finish the RPC request and half-close the call. The server may still send messages and/or

@ -41,7 +41,7 @@
responseHandler:handler
callOptions:callOptions
responseClass:responseClass];
[_call writeWithMessage:message];
[_call writeMessage:message];
[_call finish];
}
return self;
@ -132,7 +132,7 @@
});
}
- (void)writeWithMessage:(GPBMessage *)message {
- (void)writeMessage:(GPBMessage *)message {
if (![message isKindOfClass:[GPBMessage class]]) {
[NSException raise:NSInvalidArgumentException format:@"Data must be a valid protobuf type."];
}

@ -501,7 +501,7 @@ BOOL isRemoteInteropTest(NSString *host) {
id request = [RMTStreamingOutputCallRequest
messageWithPayloadSize:requests[index]
requestedResponseSize:responses[index]];
[call writeWithMessage:request];
[call writeMessage:request];
} else {
[call finish];
}
@ -517,7 +517,7 @@ BOOL isRemoteInteropTest(NSString *host) {
[expectation fulfill];
}]
callOptions:options];
[call writeWithMessage:request];
[call writeMessage:request];
[self waitForExpectationsWithTimeout:TEST_TIMEOUT handler:nil];
}
@ -651,7 +651,7 @@ BOOL isRemoteInteropTest(NSString *host) {
}]
callOptions:options];
[call writeWithMessage:request];
[call writeMessage:request];
[self waitForExpectationsWithTimeout:TEST_TIMEOUT handler:nil];
}

Loading…
Cancel
Save