Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
3db76b92
Commit
3db76b92
authored
8 years ago
by
Jan Tattermusch
Committed by
GitHub
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #7066 from y-zeng/ios-test
Fix InteropTests.m
parents
ca171cea
afb62f80
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/objective-c/tests/InteropTests.m
+6
-5
6 additions, 5 deletions
src/objective-c/tests/InteropTests.m
with
6 additions
and
5 deletions
src/objective-c/tests/InteropTests.m
+
6
−
5
View file @
3db76b92
...
@@ -58,7 +58,7 @@
...
@@ -58,7 +58,7 @@
requestedResponseSize
:(
NSNumber
*
)
responseSize
{
requestedResponseSize
:(
NSNumber
*
)
responseSize
{
RMTStreamingOutputCallRequest
*
request
=
[
self
message
];
RMTStreamingOutputCallRequest
*
request
=
[
self
message
];
RMTResponseParameters
*
parameters
=
[
RMTResponseParameters
message
];
RMTResponseParameters
*
parameters
=
[
RMTResponseParameters
message
];
parameters
.
size
=
(
int
)
responseSize
.
int
eger
Value
;
parameters
.
size
=
responseSize
.
intValue
;
[
request
.
responseParametersArray
addObject
:
parameters
];
[
request
.
responseParametersArray
addObject
:
parameters
];
request
.
payload
.
body
=
[
NSMutableData
dataWithLength
:
payloadSize
.
unsignedIntegerValue
];
request
.
payload
.
body
=
[
NSMutableData
dataWithLength
:
payloadSize
.
unsignedIntegerValue
];
return
request
;
return
request
;
...
@@ -188,7 +188,7 @@ static cronet_engine *cronetEngine = NULL;
...
@@ -188,7 +188,7 @@ static cronet_engine *cronetEngine = NULL;
RMTStreamingOutputCallRequest
*
request
=
[
RMTStreamingOutputCallRequest
message
];
RMTStreamingOutputCallRequest
*
request
=
[
RMTStreamingOutputCallRequest
message
];
for
(
NSNumber
*
size
in
expectedSizes
)
{
for
(
NSNumber
*
size
in
expectedSizes
)
{
RMTResponseParameters
*
parameters
=
[
RMTResponseParameters
message
];
RMTResponseParameters
*
parameters
=
[
RMTResponseParameters
message
];
parameters
.
size
=
(
int
)
[
size
int
eger
Value
];
parameters
.
size
=
[
size
intValue
];
[
request
.
responseParametersArray
addObject
:
parameters
];
[
request
.
responseParametersArray
addObject
:
parameters
];
}
}
...
@@ -284,9 +284,10 @@ static cronet_engine *cronetEngine = NULL;
...
@@ -284,9 +284,10 @@ static cronet_engine *cronetEngine = NULL;
// A buffered pipe to which we never write any value acts as a writer that just hangs.
// A buffered pipe to which we never write any value acts as a writer that just hangs.
GRXBufferedPipe
*
requestsBuffer
=
[[
GRXBufferedPipe
alloc
]
init
];
GRXBufferedPipe
*
requestsBuffer
=
[[
GRXBufferedPipe
alloc
]
init
];
GRPCProtoCall
*
call
=
[
_service
RPCToStreamingInputCallWithRequestsWriter
:
requestsBuffer
GRPCProtoCall
*
call
=
handler:
^
(
RMTStreamingInputCallResponse
*
response
,
[
_service
RPCToStreamingInputCallWithRequestsWriter
:
requestsBuffer
NSError
*
error
)
{
handler:
^
(
RMTStreamingInputCallResponse
*
response
,
NSError
*
error
)
{
XCTAssertEqual
(
error
.
code
,
GRPC_STATUS_CANCELLED
);
XCTAssertEqual
(
error
.
code
,
GRPC_STATUS_CANCELLED
);
[
expectation
fulfill
];
[
expectation
fulfill
];
}];
}];
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment