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
6bf1de9a
Commit
6bf1de9a
authored
9 years ago
by
vjpai
Browse files
Options
Downloads
Patches
Plain Diff
Mark a method with GRPC_OVERRIDE to avoid compiler warning
parent
6b43ac41
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/mock_test.cc
+2
-2
2 additions, 2 deletions
test/cpp/end2end/mock_test.cc
with
2 additions
and
2 deletions
test/cpp/end2end/mock_test.cc
+
2
−
2
View file @
6bf1de9a
...
@@ -62,7 +62,7 @@ template <class W, class R>
...
@@ -62,7 +62,7 @@ template <class W, class R>
class
MockClientReaderWriter
GRPC_FINAL
class
MockClientReaderWriter
GRPC_FINAL
:
public
ClientReaderWriterInterface
<
W
,
R
>
{
:
public
ClientReaderWriterInterface
<
W
,
R
>
{
public:
public:
void
WaitForInitialMetadata
()
{}
void
WaitForInitialMetadata
()
GRPC_OVERRIDE
{}
bool
Read
(
R
*
msg
)
GRPC_OVERRIDE
{
return
true
;
}
bool
Read
(
R
*
msg
)
GRPC_OVERRIDE
{
return
true
;
}
bool
Write
(
const
W
&
msg
)
GRPC_OVERRIDE
{
return
true
;
}
bool
Write
(
const
W
&
msg
)
GRPC_OVERRIDE
{
return
true
;
}
bool
WritesDone
()
GRPC_OVERRIDE
{
return
true
;
}
bool
WritesDone
()
GRPC_OVERRIDE
{
return
true
;
}
...
@@ -73,7 +73,7 @@ class MockClientReaderWriter<EchoRequest, EchoResponse> GRPC_FINAL
...
@@ -73,7 +73,7 @@ class MockClientReaderWriter<EchoRequest, EchoResponse> GRPC_FINAL
:
public
ClientReaderWriterInterface
<
EchoRequest
,
EchoResponse
>
{
:
public
ClientReaderWriterInterface
<
EchoRequest
,
EchoResponse
>
{
public:
public:
MockClientReaderWriter
()
:
writes_done_
(
false
)
{}
MockClientReaderWriter
()
:
writes_done_
(
false
)
{}
void
WaitForInitialMetadata
()
{}
void
WaitForInitialMetadata
()
GRPC_OVERRIDE
{}
bool
Read
(
EchoResponse
*
msg
)
GRPC_OVERRIDE
{
bool
Read
(
EchoResponse
*
msg
)
GRPC_OVERRIDE
{
if
(
writes_done_
)
return
false
;
if
(
writes_done_
)
return
false
;
msg
->
set_message
(
last_message_
);
msg
->
set_message
(
last_message_
);
...
...
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