clang-format

pull/16271/head
Muxi Yan 7 years ago
parent 8617879613
commit d562ad11ac
  1. 28
      src/objective-c/tests/GRPCClientTests.m

@ -606,20 +606,20 @@ static GRPCProtoMethod *kFullDuplexCallMethod;
call.oauth2AccessToken = @"bogusToken"; call.oauth2AccessToken = @"bogusToken";
id<GRXWriteable> responsesWriteable = id<GRXWriteable> responsesWriteable =
[[GRXWriteable alloc] initWithValueHandler:^(NSData *value) { [[GRXWriteable alloc] initWithValueHandler:^(NSData *value) {
XCTFail(@"Received unexpected response: %@", value); XCTFail(@"Received unexpected response: %@", value);
} }
completionHandler:^(NSError *errorOrNil) { completionHandler:^(NSError *errorOrNil) {
XCTAssertNotNil(errorOrNil, @"Finished without error!"); XCTAssertNotNil(errorOrNil, @"Finished without error!");
NSDictionary *userInfo = errorOrNil.userInfo; NSDictionary *userInfo = errorOrNil.userInfo;
NSString *debugInformation = userInfo[NSDebugDescriptionErrorKey]; NSString *debugInformation = userInfo[NSDebugDescriptionErrorKey];
XCTAssertNotNil(debugInformation); XCTAssertNotNil(debugInformation);
XCTAssertNotEqual([debugInformation length], 0); XCTAssertNotEqual([debugInformation length], 0);
NSString *challengeHeader = call.oauth2ChallengeHeader; NSString *challengeHeader = call.oauth2ChallengeHeader;
XCTAssertGreaterThan(challengeHeader.length, 0, @"No challenge in response headers %@", XCTAssertGreaterThan(challengeHeader.length, 0, @"No challenge in response headers %@",
call.responseHeaders); call.responseHeaders);
[expectation fulfill]; [expectation fulfill];
}]; }];
[call startWithWriteable:responsesWriteable]; [call startWithWriteable:responsesWriteable];

Loading…
Cancel
Save