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
2e729387
Commit
2e729387
authored
9 years ago
by
Vijay Pai
Browse files
Options
Downloads
Patches
Plain Diff
clang-format
parent
13ee2f2d
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
test/cpp/end2end/async_end2end_test.cc
+8
-8
8 additions, 8 deletions
test/cpp/end2end/async_end2end_test.cc
with
8 additions
and
8 deletions
test/cpp/end2end/async_end2end_test.cc
+
8
−
8
View file @
2e729387
...
@@ -876,8 +876,8 @@ class AsyncEnd2endServerTryCancelTest : public AsyncEnd2endTest {
...
@@ -876,8 +876,8 @@ class AsyncEnd2endServerTryCancelTest : public AsyncEnd2endTest {
auto
verif
=
Verifier
(
GetParam
());
auto
verif
=
Verifier
(
GetParam
());
if
(
server_try_cancel
==
CANCEL_DURING_PROCESSING
)
{
if
(
server_try_cancel
==
CANCEL_DURING_PROCESSING
)
{
server_try_cancel_thd
=
new
std
::
thread
(
server_try_cancel_thd
=
&
ServerContext
::
TryCancel
,
&
srv_ctx
);
new
std
::
thread
(
&
ServerContext
::
TryCancel
,
&
srv_ctx
);
// Server will cancel the RPC in a parallel thread while reading the
// Server will cancel the RPC in a parallel thread while reading the
// requests from the client. Since the cancellation can happen at anytime,
// requests from the client. Since the cancellation can happen at anytime,
// some of the cq results (i.e those until cancellation) might be true but
// some of the cq results (i.e those until cancellation) might be true but
...
@@ -897,7 +897,7 @@ class AsyncEnd2endServerTryCancelTest : public AsyncEnd2endTest {
...
@@ -897,7 +897,7 @@ class AsyncEnd2endServerTryCancelTest : public AsyncEnd2endTest {
// something was seen, but it might be tag 11 and not what we
// something was seen, but it might be tag 11 and not what we
// just added
// just added
int
got_tag
=
verif
.
Expect
(
tag_idx
,
expected_server_cq_result
)
int
got_tag
=
verif
.
Expect
(
tag_idx
,
expected_server_cq_result
)
.
Next
(
cq_
.
get
(),
ignore_cq_result
);
.
Next
(
cq_
.
get
(),
ignore_cq_result
);
GPR_ASSERT
((
got_tag
==
tag_idx
)
||
(
got_tag
==
11
&&
want_done_tag
));
GPR_ASSERT
((
got_tag
==
tag_idx
)
||
(
got_tag
==
11
&&
want_done_tag
));
if
(
got_tag
==
11
)
{
if
(
got_tag
==
11
)
{
EXPECT_TRUE
(
srv_ctx
.
IsCancelled
());
EXPECT_TRUE
(
srv_ctx
.
IsCancelled
());
...
@@ -999,8 +999,8 @@ class AsyncEnd2endServerTryCancelTest : public AsyncEnd2endTest {
...
@@ -999,8 +999,8 @@ class AsyncEnd2endServerTryCancelTest : public AsyncEnd2endTest {
auto
verif
=
Verifier
(
GetParam
());
auto
verif
=
Verifier
(
GetParam
());
if
(
server_try_cancel
==
CANCEL_DURING_PROCESSING
)
{
if
(
server_try_cancel
==
CANCEL_DURING_PROCESSING
)
{
server_try_cancel_thd
=
new
std
::
thread
(
server_try_cancel_thd
=
&
ServerContext
::
TryCancel
,
&
srv_ctx
);
new
std
::
thread
(
&
ServerContext
::
TryCancel
,
&
srv_ctx
);
// Server will cancel the RPC in a parallel thread while writing responses
// Server will cancel the RPC in a parallel thread while writing responses
// to the client. Since the cancellation can happen at anytime, some of
// to the client. Since the cancellation can happen at anytime, some of
...
@@ -1022,7 +1022,7 @@ class AsyncEnd2endServerTryCancelTest : public AsyncEnd2endTest {
...
@@ -1022,7 +1022,7 @@ class AsyncEnd2endServerTryCancelTest : public AsyncEnd2endTest {
// something was seen, but it might be tag 11 and not what we
// something was seen, but it might be tag 11 and not what we
// just added
// just added
int
got_tag
=
verif
.
Expect
(
tag_idx
,
expected_cq_result
)
int
got_tag
=
verif
.
Expect
(
tag_idx
,
expected_cq_result
)
.
Next
(
cq_
.
get
(),
ignore_cq_result
);
.
Next
(
cq_
.
get
(),
ignore_cq_result
);
GPR_ASSERT
((
got_tag
==
tag_idx
)
||
(
got_tag
==
11
&&
want_done_tag
));
GPR_ASSERT
((
got_tag
==
tag_idx
)
||
(
got_tag
==
11
&&
want_done_tag
));
if
(
got_tag
==
11
)
{
if
(
got_tag
==
11
)
{
EXPECT_TRUE
(
srv_ctx
.
IsCancelled
());
EXPECT_TRUE
(
srv_ctx
.
IsCancelled
());
...
@@ -1139,8 +1139,8 @@ class AsyncEnd2endServerTryCancelTest : public AsyncEnd2endTest {
...
@@ -1139,8 +1139,8 @@ class AsyncEnd2endServerTryCancelTest : public AsyncEnd2endTest {
auto
verif
=
Verifier
(
GetParam
());
auto
verif
=
Verifier
(
GetParam
());
if
(
server_try_cancel
==
CANCEL_DURING_PROCESSING
)
{
if
(
server_try_cancel
==
CANCEL_DURING_PROCESSING
)
{
server_try_cancel_thd
=
new
std
::
thread
(
server_try_cancel_thd
=
&
ServerContext
::
TryCancel
,
&
srv_ctx
);
new
std
::
thread
(
&
ServerContext
::
TryCancel
,
&
srv_ctx
);
// Since server is going to cancel the RPC in a parallel thread, some of
// Since server is going to cancel the RPC in a parallel thread, some of
// the cq results (i.e those until the cancellation) might be true. Since
// the cq results (i.e those until the cancellation) might be true. Since
...
...
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