Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
ebbeee39
Commit
ebbeee39
authored
Oct 15, 2020
by
Derek Mauro
Browse files
Merge pull request #3042 from Aralox:Issue-2135-modify-mock-template-args-AX-to-TArgX
PiperOrigin-RevId: 337217118
parents
a4621888
ee66065b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
googlemock/include/gmock/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 {
internal
::
ImplicitCast_
<
MockClass
*>
(
this
));
}
template
<
typename
A
1
,
typename
A
2
,
typename
...
An
>
NiceMock
(
A
1
&&
arg1
,
A
2
&&
arg2
,
An
&&
...
args
)
:
MockClass
(
std
::
forward
<
A
1
>
(
arg1
),
std
::
forward
<
A
2
>
(
arg2
),
template
<
typename
TArg
1
,
typename
TArg
2
,
typename
...
An
>
NiceMock
(
TArg
1
&&
arg1
,
TArg
2
&&
arg2
,
An
&&
...
args
)
:
MockClass
(
std
::
forward
<
TArg
1
>
(
arg1
),
std
::
forward
<
TArg
2
>
(
arg2
),
std
::
forward
<
An
>
(
args
)...)
{
::
testing
::
Mock
::
AllowUninterestingCalls
(
internal
::
ImplicitCast_
<
MockClass
*>
(
this
));
...
...
@@ -127,9 +127,9 @@ class NaggyMock : public MockClass {
internal
::
ImplicitCast_
<
MockClass
*>
(
this
));
}
template
<
typename
A
1
,
typename
A
2
,
typename
...
An
>
NaggyMock
(
A
1
&&
arg1
,
A
2
&&
arg2
,
An
&&
...
args
)
:
MockClass
(
std
::
forward
<
A
1
>
(
arg1
),
std
::
forward
<
A
2
>
(
arg2
),
template
<
typename
TArg
1
,
typename
TArg
2
,
typename
...
An
>
NaggyMock
(
TArg
1
&&
arg1
,
TArg
2
&&
arg2
,
An
&&
...
args
)
:
MockClass
(
std
::
forward
<
TArg
1
>
(
arg1
),
std
::
forward
<
TArg
2
>
(
arg2
),
std
::
forward
<
An
>
(
args
)...)
{
::
testing
::
Mock
::
WarnUninterestingCalls
(
internal
::
ImplicitCast_
<
MockClass
*>
(
this
));
...
...
@@ -165,9 +165,9 @@ class StrictMock : public MockClass {
internal
::
ImplicitCast_
<
MockClass
*>
(
this
));
}
template
<
typename
A
1
,
typename
A
2
,
typename
...
An
>
StrictMock
(
A
1
&&
arg1
,
A
2
&&
arg2
,
An
&&
...
args
)
:
MockClass
(
std
::
forward
<
A
1
>
(
arg1
),
std
::
forward
<
A
2
>
(
arg2
),
template
<
typename
TArg
1
,
typename
TArg
2
,
typename
...
An
>
StrictMock
(
TArg
1
&&
arg1
,
TArg
2
&&
arg2
,
An
&&
...
args
)
:
MockClass
(
std
::
forward
<
TArg
1
>
(
arg1
),
std
::
forward
<
TArg
2
>
(
arg2
),
std
::
forward
<
An
>
(
args
)...)
{
::
testing
::
Mock
::
FailUninterestingCalls
(
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