Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
googletest
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
googletest
Commits
ebbeee39
Commit
ebbeee39
authored
Oct 15, 2020
by
Derek Mauro
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3042 from Aralox:Issue-2135-modify-mock-template-args-AX-to-TArgX
PiperOrigin-RevId: 337217118
parents
a4621888
ee66065b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
gmock-nice-strict.h
googlemock/include/gmock/gmock-nice-strict.h
+9
-9
No files found.
googlemock/include/gmock/gmock-nice-strict.h
View file @
ebbeee39
...
@@ -89,9 +89,9 @@ class NiceMock : public MockClass {
...
@@ -89,9 +89,9 @@ class NiceMock : public MockClass {
internal
::
ImplicitCast_
<
MockClass
*>
(
this
));
internal
::
ImplicitCast_
<
MockClass
*>
(
this
));
}
}
template
<
typename
A1
,
typename
A
2
,
typename
...
An
>
template
<
typename
TArg1
,
typename
TArg
2
,
typename
...
An
>
NiceMock
(
A1
&&
arg1
,
A
2
&&
arg2
,
An
&&
...
args
)
NiceMock
(
TArg1
&&
arg1
,
TArg
2
&&
arg2
,
An
&&
...
args
)
:
MockClass
(
std
::
forward
<
A1
>
(
arg1
),
std
::
forward
<
A
2
>
(
arg2
),
:
MockClass
(
std
::
forward
<
TArg1
>
(
arg1
),
std
::
forward
<
TArg
2
>
(
arg2
),
std
::
forward
<
An
>
(
args
)...)
{
std
::
forward
<
An
>
(
args
)...)
{
::
testing
::
Mock
::
AllowUninterestingCalls
(
::
testing
::
Mock
::
AllowUninterestingCalls
(
internal
::
ImplicitCast_
<
MockClass
*>
(
this
));
internal
::
ImplicitCast_
<
MockClass
*>
(
this
));
...
@@ -127,9 +127,9 @@ class NaggyMock : public MockClass {
...
@@ -127,9 +127,9 @@ class NaggyMock : public MockClass {
internal
::
ImplicitCast_
<
MockClass
*>
(
this
));
internal
::
ImplicitCast_
<
MockClass
*>
(
this
));
}
}
template
<
typename
A1
,
typename
A
2
,
typename
...
An
>
template
<
typename
TArg1
,
typename
TArg
2
,
typename
...
An
>
NaggyMock
(
A1
&&
arg1
,
A
2
&&
arg2
,
An
&&
...
args
)
NaggyMock
(
TArg1
&&
arg1
,
TArg
2
&&
arg2
,
An
&&
...
args
)
:
MockClass
(
std
::
forward
<
A1
>
(
arg1
),
std
::
forward
<
A
2
>
(
arg2
),
:
MockClass
(
std
::
forward
<
TArg1
>
(
arg1
),
std
::
forward
<
TArg
2
>
(
arg2
),
std
::
forward
<
An
>
(
args
)...)
{
std
::
forward
<
An
>
(
args
)...)
{
::
testing
::
Mock
::
WarnUninterestingCalls
(
::
testing
::
Mock
::
WarnUninterestingCalls
(
internal
::
ImplicitCast_
<
MockClass
*>
(
this
));
internal
::
ImplicitCast_
<
MockClass
*>
(
this
));
...
@@ -165,9 +165,9 @@ class StrictMock : public MockClass {
...
@@ -165,9 +165,9 @@ class StrictMock : public MockClass {
internal
::
ImplicitCast_
<
MockClass
*>
(
this
));
internal
::
ImplicitCast_
<
MockClass
*>
(
this
));
}
}
template
<
typename
A1
,
typename
A
2
,
typename
...
An
>
template
<
typename
TArg1
,
typename
TArg
2
,
typename
...
An
>
StrictMock
(
A1
&&
arg1
,
A
2
&&
arg2
,
An
&&
...
args
)
StrictMock
(
TArg1
&&
arg1
,
TArg
2
&&
arg2
,
An
&&
...
args
)
:
MockClass
(
std
::
forward
<
A1
>
(
arg1
),
std
::
forward
<
A
2
>
(
arg2
),
:
MockClass
(
std
::
forward
<
TArg1
>
(
arg1
),
std
::
forward
<
TArg
2
>
(
arg2
),
std
::
forward
<
An
>
(
args
)...)
{
std
::
forward
<
An
>
(
args
)...)
{
::
testing
::
Mock
::
FailUninterestingCalls
(
::
testing
::
Mock
::
FailUninterestingCalls
(
internal
::
ImplicitCast_
<
MockClass
*>
(
this
));
internal
::
ImplicitCast_
<
MockClass
*>
(
this
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment