Merge pull request #17821 from yashykt/iostests

Extra argument for grpc_endpoint_write
pull/17841/head
Yash Tibrewal 6 years ago committed by GitHub
commit f0ccb92da3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      test/core/iomgr/ios/CFStreamTests/CFStreamEndpointTests.mm

@ -167,7 +167,7 @@ static bool compare_slice_buffer_with_buffer(grpc_slice_buffer *slices, const ch
slice = grpc_slice_from_static_buffer(write_buffer, kBufferSize);
grpc_slice_buffer_add(&write_slices, slice);
init_event_closure(&write_done, &write);
grpc_endpoint_write(ep_, &write_slices, &write_done);
grpc_endpoint_write(ep_, &write_slices, &write_done, nullptr);
XCTAssertEqual([self waitForEvent:&write timeout:kWriteTimeout], YES);
XCTAssertEqual(reinterpret_cast<grpc_error *>(write), GRPC_ERROR_NONE);
@ -224,7 +224,7 @@ static bool compare_slice_buffer_with_buffer(grpc_slice_buffer *slices, const ch
slice = grpc_slice_from_static_buffer(write_buffer, kBufferSize);
grpc_slice_buffer_add(&write_slices, slice);
init_event_closure(&write_done, &write);
grpc_endpoint_write(ep_, &write_slices, &write_done);
grpc_endpoint_write(ep_, &write_slices, &write_done, nullptr);
XCTAssertEqual([self waitForEvent:&write timeout:kWriteTimeout], YES);
XCTAssertEqual(reinterpret_cast<grpc_error *>(write), GRPC_ERROR_NONE);
@ -273,7 +273,7 @@ static bool compare_slice_buffer_with_buffer(grpc_slice_buffer *slices, const ch
slice = grpc_slice_from_static_buffer(write_buffer, kBufferSize);
grpc_slice_buffer_add(&write_slices, slice);
init_event_closure(&write_done, &write);
grpc_endpoint_write(ep_, &write_slices, &write_done);
grpc_endpoint_write(ep_, &write_slices, &write_done, nullptr);
XCTAssertEqual([self waitForEvent:&write timeout:kWriteTimeout], YES);
XCTAssertEqual(reinterpret_cast<grpc_error *>(write), GRPC_ERROR_NONE);

Loading…
Cancel
Save