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
29b47e45
Commit
29b47e45
authored
Oct 16, 2018
by
Abseil Team
Committed by
Gennadiy Civil
Oct 18, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Googletest export
C++11 code cleanup. PiperOrigin-RevId: 217364243
parent
a651a4d4
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
341 additions
and
440 deletions
+341
-440
gmock-actions.h
googlemock/include/gmock/gmock-actions.h
+6
-5
gmock-generated-actions.h
googlemock/include/gmock/gmock-generated-actions.h
+147
-168
gmock-generated-actions.h.pump
googlemock/include/gmock/gmock-generated-actions.h.pump
+4
-2
gmock-generated-function-mockers.h
googlemock/include/gmock/gmock-generated-function-mockers.h
+85
-90
gmock-generated-function-mockers.h.pump
...ock/include/gmock/gmock-generated-function-mockers.h.pump
+4
-2
gmock-generated-matchers.h
googlemock/include/gmock/gmock-generated-matchers.h
+66
-115
gmock-generated-matchers.h.pump
googlemock/include/gmock/gmock-generated-matchers.h.pump
+3
-2
gmock-matchers.h
googlemock/include/gmock/gmock-matchers.h
+8
-8
gmock-spec-builders.h
googlemock/include/gmock/gmock-spec-builders.h
+17
-20
gtest-port.h
googletest/include/gtest/internal/gtest-port.h
+0
-27
gtest-type-util.h.pump
googletest/include/gtest/internal/gtest-type-util.h.pump
+1
-1
No files found.
googlemock/include/gmock/gmock-actions.h
View file @
29b47e45
...
@@ -43,6 +43,7 @@
...
@@ -43,6 +43,7 @@
#include <algorithm>
#include <algorithm>
#include <string>
#include <string>
#include <utility>
#include "gmock/internal/gmock-internal-utils.h"
#include "gmock/internal/gmock-internal-utils.h"
#include "gmock/internal/gmock-port.h"
#include "gmock/internal/gmock-port.h"
...
@@ -527,7 +528,7 @@ class ActionAdaptor : public ActionInterface<F1> {
...
@@ -527,7 +528,7 @@ class ActionAdaptor : public ActionInterface<F1> {
// on return. Useful for move-only types, but could be used on any type.
// on return. Useful for move-only types, but could be used on any type.
template
<
typename
T
>
template
<
typename
T
>
struct
ByMoveWrapper
{
struct
ByMoveWrapper
{
explicit
ByMoveWrapper
(
T
value
)
:
payload
(
internal
::
move
(
value
))
{}
explicit
ByMoveWrapper
(
T
value
)
:
payload
(
std
::
move
(
value
))
{}
T
payload
;
T
payload
;
};
};
...
@@ -564,7 +565,7 @@ class ReturnAction {
...
@@ -564,7 +565,7 @@ class ReturnAction {
// Constructs a ReturnAction object from the value to be returned.
// Constructs a ReturnAction object from the value to be returned.
// 'value' is passed by value instead of by const reference in order
// 'value' is passed by value instead of by const reference in order
// to allow Return("string literal") to compile.
// to allow Return("string literal") to compile.
explicit
ReturnAction
(
R
value
)
:
value_
(
new
R
(
internal
::
move
(
value
)))
{}
explicit
ReturnAction
(
R
value
)
:
value_
(
new
R
(
std
::
move
(
value
)))
{}
// This template type conversion operator allows Return(x) to be
// This template type conversion operator allows Return(x) to be
// used in ANY function that returns x's type.
// used in ANY function that returns x's type.
...
@@ -632,7 +633,7 @@ class ReturnAction {
...
@@ -632,7 +633,7 @@ class ReturnAction {
GTEST_CHECK_
(
!
performed_
)
GTEST_CHECK_
(
!
performed_
)
<<
"A ByMove() action should only be performed once."
;
<<
"A ByMove() action should only be performed once."
;
performed_
=
true
;
performed_
=
true
;
return
internal
::
move
(
wrapper_
->
payload
);
return
std
::
move
(
wrapper_
->
payload
);
}
}
private
:
private
:
...
@@ -1116,7 +1117,7 @@ Action<To>::Action(const Action<From>& from)
...
@@ -1116,7 +1117,7 @@ Action<To>::Action(const Action<From>& from)
// will trigger a compiler error about using array as initializer.
// will trigger a compiler error about using array as initializer.
template
<
typename
R
>
template
<
typename
R
>
internal
::
ReturnAction
<
R
>
Return
(
R
value
)
{
internal
::
ReturnAction
<
R
>
Return
(
R
value
)
{
return
internal
::
ReturnAction
<
R
>
(
internal
::
move
(
value
));
return
internal
::
ReturnAction
<
R
>
(
std
::
move
(
value
));
}
}
// Creates an action that returns NULL.
// Creates an action that returns NULL.
...
@@ -1149,7 +1150,7 @@ inline internal::ReturnRefOfCopyAction<R> ReturnRefOfCopy(const R& x) {
...
@@ -1149,7 +1150,7 @@ inline internal::ReturnRefOfCopyAction<R> ReturnRefOfCopy(const R& x) {
// invariant.
// invariant.
template
<
typename
R
>
template
<
typename
R
>
internal
::
ByMoveWrapper
<
R
>
ByMove
(
R
x
)
{
internal
::
ByMoveWrapper
<
R
>
ByMove
(
R
x
)
{
return
internal
::
ByMoveWrapper
<
R
>
(
internal
::
move
(
x
));
return
internal
::
ByMoveWrapper
<
R
>
(
std
::
move
(
x
));
}
}
// Creates an action that does the default action for the give mock function.
// Creates an action that does the default action for the give mock function.
...
...
googlemock/include/gmock/gmock-generated-actions.h
View file @
29b47e45
...
@@ -41,6 +41,8 @@
...
@@ -41,6 +41,8 @@
#ifndef GMOCK_INCLUDE_GMOCK_GMOCK_GENERATED_ACTIONS_H_
#ifndef GMOCK_INCLUDE_GMOCK_GMOCK_GENERATED_ACTIONS_H_
#define GMOCK_INCLUDE_GMOCK_GMOCK_GENERATED_ACTIONS_H_
#define GMOCK_INCLUDE_GMOCK_GMOCK_GENERATED_ACTIONS_H_
#include <utility>
#include "gmock/gmock-actions.h"
#include "gmock/gmock-actions.h"
#include "gmock/internal/gmock-port.h"
#include "gmock/internal/gmock-port.h"
...
@@ -1161,90 +1163,67 @@ DoAll(Action1 a1, Action2 a2, Action3 a3, Action4 a4, Action5 a5, Action6 a6,
...
@@ -1161,90 +1163,67 @@ DoAll(Action1 a1, Action2 a2, Action3 a3, Action4 a4, Action5 a5, Action6 a6,
#define GMOCK_INTERNAL_INIT_AND_0_VALUE_PARAMS()\
#define GMOCK_INTERNAL_INIT_AND_0_VALUE_PARAMS()\
()
()
#define GMOCK_INTERNAL_INIT_AND_1_VALUE_PARAMS(p0)\
#define GMOCK_INTERNAL_INIT_AND_1_VALUE_PARAMS(p0)\
(p0##_type gmock_p0) : p0(::
testing::internal
::move(gmock_p0))
(p0##_type gmock_p0) : p0(::
std
::move(gmock_p0))
#define GMOCK_INTERNAL_INIT_AND_2_VALUE_PARAMS(p0, p1)\
#define GMOCK_INTERNAL_INIT_AND_2_VALUE_PARAMS(p0, p1)\
(p0##_type gmock_p0, \
(p0##_type gmock_p0, p1##_type gmock_p1) : p0(::std::move(gmock_p0)), \
p1##_type gmock_p1) : p0(::testing::internal::move(gmock_p0)), \
p1(::std::move(gmock_p1))
p1(::testing::internal::move(gmock_p1))
#define GMOCK_INTERNAL_INIT_AND_3_VALUE_PARAMS(p0, p1, p2)\
#define GMOCK_INTERNAL_INIT_AND_3_VALUE_PARAMS(p0, p1, p2)\
(p0##_type gmock_p0, p1##_type gmock_p1, \
(p0##_type gmock_p0, p1##_type gmock_p1, \
p2##_type gmock_p2) : p0(::testing::internal::move(gmock_p0)), \
p2##_type gmock_p2) : p0(::std::move(gmock_p0)), \
p1(::testing::internal::move(gmock_p1)), \
p1(::std::move(gmock_p1)), p2(::std::move(gmock_p2))
p2(::testing::internal::move(gmock_p2))
#define GMOCK_INTERNAL_INIT_AND_4_VALUE_PARAMS(p0, p1, p2, p3)\
#define GMOCK_INTERNAL_INIT_AND_4_VALUE_PARAMS(p0, p1, p2, p3)\
(p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2, \
(p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2, \
p3##_type gmock_p3) : p0(::testing::internal::move(gmock_p0)), \
p3##_type gmock_p3) : p0(::std::move(gmock_p0)), \
p1(::testing::internal::move(gmock_p1)), \
p1(::std::move(gmock_p1)), p2(::std::move(gmock_p2)), \
p2(::testing::internal::move(gmock_p2)), \
p3(::std::move(gmock_p3))
p3(::testing::internal::move(gmock_p3))
#define GMOCK_INTERNAL_INIT_AND_5_VALUE_PARAMS(p0, p1, p2, p3, p4)\
#define GMOCK_INTERNAL_INIT_AND_5_VALUE_PARAMS(p0, p1, p2, p3, p4)\
(p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2, \
(p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2, \
p3##_type gmock_p3, \
p3##_type gmock_p3, p4##_type gmock_p4) : p0(::std::move(gmock_p0)), \
p4##_type gmock_p4) : p0(::testing::internal::move(gmock_p0)), \
p1(::std::move(gmock_p1)), p2(::std::move(gmock_p2)), \
p1(::testing::internal::move(gmock_p1)), \
p3(::std::move(gmock_p3)), p4(::std::move(gmock_p4))
p2(::testing::internal::move(gmock_p2)), \
p3(::testing::internal::move(gmock_p3)), \
p4(::testing::internal::move(gmock_p4))
#define GMOCK_INTERNAL_INIT_AND_6_VALUE_PARAMS(p0, p1, p2, p3, p4, p5)\
#define GMOCK_INTERNAL_INIT_AND_6_VALUE_PARAMS(p0, p1, p2, p3, p4, p5)\
(p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2, \
(p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2, \
p3##_type gmock_p3, p4##_type gmock_p4, \
p3##_type gmock_p3, p4##_type gmock_p4, \
p5##_type gmock_p5) : p0(::testing::internal::move(gmock_p0)), \
p5##_type gmock_p5) : p0(::std::move(gmock_p0)), \
p1(::testing::internal::move(gmock_p1)), \
p1(::std::move(gmock_p1)), p2(::std::move(gmock_p2)), \
p2(::testing::internal::move(gmock_p2)), \
p3(::std::move(gmock_p3)), p4(::std::move(gmock_p4)), \
p3(::testing::internal::move(gmock_p3)), \
p5(::std::move(gmock_p5))
p4(::testing::internal::move(gmock_p4)), \
p5(::testing::internal::move(gmock_p5))
#define GMOCK_INTERNAL_INIT_AND_7_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6)\
#define GMOCK_INTERNAL_INIT_AND_7_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6)\
(p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2, \
(p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2, \
p3##_type gmock_p3, p4##_type gmock_p4, p5##_type gmock_p5, \
p3##_type gmock_p3, p4##_type gmock_p4, p5##_type gmock_p5, \
p6##_type gmock_p6) : p0(::testing::internal::move(gmock_p0)), \
p6##_type gmock_p6) : p0(::std::move(gmock_p0)), \
p1(::testing::internal::move(gmock_p1)), \
p1(::std::move(gmock_p1)), p2(::std::move(gmock_p2)), \
p2(::testing::internal::move(gmock_p2)), \
p3(::std::move(gmock_p3)), p4(::std::move(gmock_p4)), \
p3(::testing::internal::move(gmock_p3)), \
p5(::std::move(gmock_p5)), p6(::std::move(gmock_p6))
p4(::testing::internal::move(gmock_p4)), \
p5(::testing::internal::move(gmock_p5)), \
p6(::testing::internal::move(gmock_p6))
#define GMOCK_INTERNAL_INIT_AND_8_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6, p7)\
#define GMOCK_INTERNAL_INIT_AND_8_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6, p7)\
(p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2, \
(p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2, \
p3##_type gmock_p3, p4##_type gmock_p4, p5##_type gmock_p5, \
p3##_type gmock_p3, p4##_type gmock_p4, p5##_type gmock_p5, \
p6##_type gmock_p6, \
p6##_type gmock_p6, p7##_type gmock_p7) : p0(::std::move(gmock_p0)), \
p7##_type gmock_p7) : p0(::testing::internal::move(gmock_p0)), \
p1(::std::move(gmock_p1)), p2(::std::move(gmock_p2)), \
p1(::testing::internal::move(gmock_p1)), \
p3(::std::move(gmock_p3)), p4(::std::move(gmock_p4)), \
p2(::testing::internal::move(gmock_p2)), \
p5(::std::move(gmock_p5)), p6(::std::move(gmock_p6)), \
p3(::testing::internal::move(gmock_p3)), \
p7(::std::move(gmock_p7))
p4(::testing::internal::move(gmock_p4)), \
p5(::testing::internal::move(gmock_p5)), \
p6(::testing::internal::move(gmock_p6)), \
p7(::testing::internal::move(gmock_p7))
#define GMOCK_INTERNAL_INIT_AND_9_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6, \
#define GMOCK_INTERNAL_INIT_AND_9_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6, \
p7, p8)\
p7, p8)\
(p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2, \
(p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2, \
p3##_type gmock_p3, p4##_type gmock_p4, p5##_type gmock_p5, \
p3##_type gmock_p3, p4##_type gmock_p4, p5##_type gmock_p5, \
p6##_type gmock_p6, p7##_type gmock_p7, \
p6##_type gmock_p6, p7##_type gmock_p7, \
p8##_type gmock_p8) : p0(::testing::internal::move(gmock_p0)), \
p8##_type gmock_p8) : p0(::std::move(gmock_p0)), \
p1(::testing::internal::move(gmock_p1)), \
p1(::std::move(gmock_p1)), p2(::std::move(gmock_p2)), \
p2(::testing::internal::move(gmock_p2)), \
p3(::std::move(gmock_p3)), p4(::std::move(gmock_p4)), \
p3(::testing::internal::move(gmock_p3)), \
p5(::std::move(gmock_p5)), p6(::std::move(gmock_p6)), \
p4(::testing::internal::move(gmock_p4)), \
p7(::std::move(gmock_p7)), p8(::std::move(gmock_p8))
p5(::testing::internal::move(gmock_p5)), \
p6(::testing::internal::move(gmock_p6)), \
p7(::testing::internal::move(gmock_p7)), \
p8(::testing::internal::move(gmock_p8))
#define GMOCK_INTERNAL_INIT_AND_10_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6, \
#define GMOCK_INTERNAL_INIT_AND_10_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6, \
p7, p8, p9)\
p7, p8, p9)\
(p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2, \
(p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2, \
p3##_type gmock_p3, p4##_type gmock_p4, p5##_type gmock_p5, \
p3##_type gmock_p3, p4##_type gmock_p4, p5##_type gmock_p5, \
p6##_type gmock_p6, p7##_type gmock_p7, p8##_type gmock_p8, \
p6##_type gmock_p6, p7##_type gmock_p7, p8##_type gmock_p8, \
p9##_type gmock_p9) : p0(::testing::internal::move(gmock_p0)), \
p9##_type gmock_p9) : p0(::std::move(gmock_p0)), \
p1(::testing::internal::move(gmock_p1)), \
p1(::std::move(gmock_p1)), p2(::std::move(gmock_p2)), \
p2(::testing::internal::move(gmock_p2)), \
p3(::std::move(gmock_p3)), p4(::std::move(gmock_p4)), \
p3(::testing::internal::move(gmock_p3)), \
p5(::std::move(gmock_p5)), p6(::std::move(gmock_p6)), \
p4(::testing::internal::move(gmock_p4)), \
p7(::std::move(gmock_p7)), p8(::std::move(gmock_p8)), \
p5(::testing::internal::move(gmock_p5)), \
p9(::std::move(gmock_p9))
p6(::testing::internal::move(gmock_p6)), \
p7(::testing::internal::move(gmock_p7)), \
p8(::testing::internal::move(gmock_p8)), \
p9(::testing::internal::move(gmock_p9))
// Declares the fields for storing the value parameters.
// Declares the fields for storing the value parameters.
#define GMOCK_INTERNAL_DEFN_AND_0_VALUE_PARAMS()
#define GMOCK_INTERNAL_DEFN_AND_0_VALUE_PARAMS()
...
@@ -1481,7 +1460,7 @@ DoAll(Action1 a1, Action2 a2, Action3 a3, Action4 a4, Action5 a5, Action6 a6,
...
@@ -1481,7 +1460,7 @@ DoAll(Action1 a1, Action2 a2, Action3 a3, Action4 a4, Action5 a5, Action6 a6,
class name##ActionP {\
class name##ActionP {\
public:\
public:\
explicit name##ActionP(p0##_type gmock_p0) : \
explicit name##ActionP(p0##_type gmock_p0) : \
p0(::
testing::internal
::forward<p0##_type>(gmock_p0)) {}\
p0(::
std
::forward<p0##_type>(gmock_p0)) {}\
template <typename F>\
template <typename F>\
class gmock_Impl : public ::testing::ActionInterface<F> {\
class gmock_Impl : public ::testing::ActionInterface<F> {\
public:\
public:\
...
@@ -1490,7 +1469,7 @@ DoAll(Action1 a1, Action2 a2, Action3 a3, Action4 a4, Action5 a5, Action6 a6,
...
@@ -1490,7 +1469,7 @@ DoAll(Action1 a1, Action2 a2, Action3 a3, Action4 a4, Action5 a5, Action6 a6,
typedef typename ::testing::internal::Function<F>::ArgumentTuple\
typedef typename ::testing::internal::Function<F>::ArgumentTuple\
args_type;\
args_type;\
explicit gmock_Impl(p0##_type gmock_p0) : \
explicit gmock_Impl(p0##_type gmock_p0) : \
p0(::
testing::internal
::forward<p0##_type>(gmock_p0)) {}\
p0(::
std
::forward<p0##_type>(gmock_p0)) {}\
virtual return_type Perform(const args_type& args) {\
virtual return_type Perform(const args_type& args) {\
return ::testing::internal::ActionHelper<return_type, gmock_Impl>::\
return ::testing::internal::ActionHelper<return_type, gmock_Impl>::\
Perform(this, args);\
Perform(this, args);\
...
@@ -1533,8 +1512,8 @@ DoAll(Action1 a1, Action2 a2, Action3 a3, Action4 a4, Action5 a5, Action6 a6,
...
@@ -1533,8 +1512,8 @@ DoAll(Action1 a1, Action2 a2, Action3 a3, Action4 a4, Action5 a5, Action6 a6,
class name##ActionP2 {\
class name##ActionP2 {\
public:\
public:\
name##ActionP2(p0##_type gmock_p0, \
name##ActionP2(p0##_type gmock_p0, \
p1##_type gmock_p1) : p0(::
testing::internal
::forward<p0##_type>(gmock_p0)), \
p1##_type gmock_p1) : p0(::
std
::forward<p0##_type>(gmock_p0)), \
p1(::
testing::internal
::forward<p1##_type>(gmock_p1)) {}\
p1(::
std
::forward<p1##_type>(gmock_p1)) {}\
template <typename F>\
template <typename F>\
class gmock_Impl : public ::testing::ActionInterface<F> {\
class gmock_Impl : public ::testing::ActionInterface<F> {\
public:\
public:\
...
@@ -1543,8 +1522,8 @@ DoAll(Action1 a1, Action2 a2, Action3 a3, Action4 a4, Action5 a5, Action6 a6,
...
@@ -1543,8 +1522,8 @@ DoAll(Action1 a1, Action2 a2, Action3 a3, Action4 a4, Action5 a5, Action6 a6,
typedef typename ::testing::internal::Function<F>::ArgumentTuple\
typedef typename ::testing::internal::Function<F>::ArgumentTuple\
args_type;\
args_type;\
gmock_Impl(p0##_type gmock_p0, \
gmock_Impl(p0##_type gmock_p0, \
p1##_type gmock_p1) : p0(::
testing::internal
::forward<p0##_type>(gmock_p0)), \
p1##_type gmock_p1) : p0(::
std
::forward<p0##_type>(gmock_p0)), \
p1(::
testing::internal
::forward<p1##_type>(gmock_p1)) {}\
p1(::
std
::forward<p1##_type>(gmock_p1)) {}\
virtual return_type Perform(const args_type& args) {\
virtual return_type Perform(const args_type& args) {\
return ::testing::internal::ActionHelper<return_type, gmock_Impl>::\
return ::testing::internal::ActionHelper<return_type, gmock_Impl>::\
Perform(this, args);\
Perform(this, args);\
...
@@ -1590,9 +1569,9 @@ DoAll(Action1 a1, Action2 a2, Action3 a3, Action4 a4, Action5 a5, Action6 a6,
...
@@ -1590,9 +1569,9 @@ DoAll(Action1 a1, Action2 a2, Action3 a3, Action4 a4, Action5 a5, Action6 a6,
class name##ActionP3 {\
class name##ActionP3 {\
public:\
public:\
name##ActionP3(p0##_type gmock_p0, p1##_type gmock_p1, \
name##ActionP3(p0##_type gmock_p0, p1##_type gmock_p1, \
p2##_type gmock_p2) : p0(::
testing::internal
::forward<p0##_type>(gmock_p0)), \
p2##_type gmock_p2) : p0(::
std
::forward<p0##_type>(gmock_p0)), \
p1(::
testing::internal
::forward<p1##_type>(gmock_p1)), \
p1(::
std
::forward<p1##_type>(gmock_p1)), \
p2(::
testing::internal
::forward<p2##_type>(gmock_p2)) {}\
p2(::
std
::forward<p2##_type>(gmock_p2)) {}\
template <typename F>\
template <typename F>\
class gmock_Impl : public ::testing::ActionInterface<F> {\
class gmock_Impl : public ::testing::ActionInterface<F> {\
public:\
public:\
...
@@ -1601,9 +1580,9 @@ DoAll(Action1 a1, Action2 a2, Action3 a3, Action4 a4, Action5 a5, Action6 a6,
...
@@ -1601,9 +1580,9 @@ DoAll(Action1 a1, Action2 a2, Action3 a3, Action4 a4, Action5 a5, Action6 a6,
typedef typename ::testing::internal::Function<F>::ArgumentTuple\
typedef typename ::testing::internal::Function<F>::ArgumentTuple\
args_type;\
args_type;\
gmock_Impl(p0##_type gmock_p0, p1##_type gmock_p1, \
gmock_Impl(p0##_type gmock_p0, p1##_type gmock_p1, \
p2##_type gmock_p2) : p0(::
testing::internal
::forward<p0##_type>(gmock_p0)), \
p2##_type gmock_p2) : p0(::
std
::forward<p0##_type>(gmock_p0)), \
p1(::
testing::internal
::forward<p1##_type>(gmock_p1)), \
p1(::
std
::forward<p1##_type>(gmock_p1)), \
p2(::
testing::internal
::forward<p2##_type>(gmock_p2)) {}\
p2(::
std
::forward<p2##_type>(gmock_p2)) {}\
virtual return_type Perform(const args_type& args) {\
virtual return_type Perform(const args_type& args) {\
return ::testing::internal::ActionHelper<return_type, gmock_Impl>::\
return ::testing::internal::ActionHelper<return_type, gmock_Impl>::\
Perform(this, args);\
Perform(this, args);\
...
@@ -1654,10 +1633,10 @@ DoAll(Action1 a1, Action2 a2, Action3 a3, Action4 a4, Action5 a5, Action6 a6,
...
@@ -1654,10 +1633,10 @@ DoAll(Action1 a1, Action2 a2, Action3 a3, Action4 a4, Action5 a5, Action6 a6,
public:\
public:\
name##ActionP4(p0##_type gmock_p0, p1##_type gmock_p1, \
name##ActionP4(p0##_type gmock_p0, p1##_type gmock_p1, \
p2##_type gmock_p2, \
p2##_type gmock_p2, \
p3##_type gmock_p3) : p0(::
testing::internal
::forward<p0##_type>(gmock_p0)), \
p3##_type gmock_p3) : p0(::
std
::forward<p0##_type>(gmock_p0)), \
p1(::
testing::internal
::forward<p1##_type>(gmock_p1)), \
p1(::
std
::forward<p1##_type>(gmock_p1)), \
p2(::
testing::internal
::forward<p2##_type>(gmock_p2)), \
p2(::
std
::forward<p2##_type>(gmock_p2)), \
p3(::
testing::internal
::forward<p3##_type>(gmock_p3)) {}\
p3(::
std
::forward<p3##_type>(gmock_p3)) {}\
template <typename F>\
template <typename F>\
class gmock_Impl : public ::testing::ActionInterface<F> {\
class gmock_Impl : public ::testing::ActionInterface<F> {\
public:\
public:\
...
@@ -1666,10 +1645,10 @@ DoAll(Action1 a1, Action2 a2, Action3 a3, Action4 a4, Action5 a5, Action6 a6,
...
@@ -1666,10 +1645,10 @@ DoAll(Action1 a1, Action2 a2, Action3 a3, Action4 a4, Action5 a5, Action6 a6,
typedef typename ::testing::internal::Function<F>::ArgumentTuple\
typedef typename ::testing::internal::Function<F>::ArgumentTuple\
args_type;\
args_type;\
gmock_Impl(p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2, \
gmock_Impl(p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2, \
p3##_type gmock_p3) : p0(::
testing::internal
::forward<p0##_type>(gmock_p0)), \
p3##_type gmock_p3) : p0(::
std
::forward<p0##_type>(gmock_p0)), \
p1(::
testing::internal
::forward<p1##_type>(gmock_p1)), \
p1(::
std
::forward<p1##_type>(gmock_p1)), \
p2(::
testing::internal
::forward<p2##_type>(gmock_p2)), \
p2(::
std
::forward<p2##_type>(gmock_p2)), \
p3(::
testing::internal
::forward<p3##_type>(gmock_p3)) {}\
p3(::
std
::forward<p3##_type>(gmock_p3)) {}\
virtual return_type Perform(const args_type& args) {\
virtual return_type Perform(const args_type& args) {\
return ::testing::internal::ActionHelper<return_type, gmock_Impl>::\
return ::testing::internal::ActionHelper<return_type, gmock_Impl>::\
Perform(this, args);\
Perform(this, args);\
...
@@ -1726,11 +1705,11 @@ DoAll(Action1 a1, Action2 a2, Action3 a3, Action4 a4, Action5 a5, Action6 a6,
...
@@ -1726,11 +1705,11 @@ DoAll(Action1 a1, Action2 a2, Action3 a3, Action4 a4, Action5 a5, Action6 a6,
public:\
public:\
name##ActionP5(p0##_type gmock_p0, p1##_type gmock_p1, \
name##ActionP5(p0##_type gmock_p0, p1##_type gmock_p1, \
p2##_type gmock_p2, p3##_type gmock_p3, \
p2##_type gmock_p2, p3##_type gmock_p3, \
p4##_type gmock_p4) : p0(::
testing::internal
::forward<p0##_type>(gmock_p0)), \
p4##_type gmock_p4) : p0(::
std
::forward<p0##_type>(gmock_p0)), \
p1(::
testing::internal
::forward<p1##_type>(gmock_p1)), \
p1(::
std
::forward<p1##_type>(gmock_p1)), \
p2(::
testing::internal
::forward<p2##_type>(gmock_p2)), \
p2(::
std
::forward<p2##_type>(gmock_p2)), \
p3(::
testing::internal
::forward<p3##_type>(gmock_p3)), \
p3(::
std
::forward<p3##_type>(gmock_p3)), \
p4(::
testing::internal
::forward<p4##_type>(gmock_p4)) {}\
p4(::
std
::forward<p4##_type>(gmock_p4)) {}\
template <typename F>\
template <typename F>\
class gmock_Impl : public ::testing::ActionInterface<F> {\
class gmock_Impl : public ::testing::ActionInterface<F> {\
public:\
public:\
...
@@ -1740,11 +1719,11 @@ DoAll(Action1 a1, Action2 a2, Action3 a3, Action4 a4, Action5 a5, Action6 a6,
...
@@ -1740,11 +1719,11 @@ DoAll(Action1 a1, Action2 a2, Action3 a3, Action4 a4, Action5 a5, Action6 a6,
args_type;\
args_type;\
gmock_Impl(p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2, \
gmock_Impl(p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2, \
p3##_type gmock_p3, \
p3##_type gmock_p3, \
p4##_type gmock_p4) : p0(::
testing::internal
::forward<p0##_type>(gmock_p0)), \
p4##_type gmock_p4) : p0(::
std
::forward<p0##_type>(gmock_p0)), \
p1(::
testing::internal
::forward<p1##_type>(gmock_p1)), \
p1(::
std
::forward<p1##_type>(gmock_p1)), \
p2(::
testing::internal
::forward<p2##_type>(gmock_p2)), \
p2(::
std
::forward<p2##_type>(gmock_p2)), \
p3(::
testing::internal
::forward<p3##_type>(gmock_p3)), \
p3(::
std
::forward<p3##_type>(gmock_p3)), \
p4(::
testing::internal
::forward<p4##_type>(gmock_p4)) {}\
p4(::
std
::forward<p4##_type>(gmock_p4)) {}\
virtual return_type Perform(const args_type& args) {\
virtual return_type Perform(const args_type& args) {\
return ::testing::internal::ActionHelper<return_type, gmock_Impl>::\
return ::testing::internal::ActionHelper<return_type, gmock_Impl>::\
Perform(this, args);\
Perform(this, args);\
...
@@ -1803,12 +1782,12 @@ DoAll(Action1 a1, Action2 a2, Action3 a3, Action4 a4, Action5 a5, Action6 a6,
...
@@ -1803,12 +1782,12 @@ DoAll(Action1 a1, Action2 a2, Action3 a3, Action4 a4, Action5 a5, Action6 a6,
public:\
public:\
name##ActionP6(p0##_type gmock_p0, p1##_type gmock_p1, \
name##ActionP6(p0##_type gmock_p0, p1##_type gmock_p1, \
p2##_type gmock_p2, p3##_type gmock_p3, p4##_type gmock_p4, \
p2##_type gmock_p2, p3##_type gmock_p3, p4##_type gmock_p4, \
p5##_type gmock_p5) : p0(::
testing::internal
::forward<p0##_type>(gmock_p0)), \
p5##_type gmock_p5) : p0(::
std
::forward<p0##_type>(gmock_p0)), \
p1(::
testing::internal
::forward<p1##_type>(gmock_p1)), \
p1(::
std
::forward<p1##_type>(gmock_p1)), \
p2(::
testing::internal
::forward<p2##_type>(gmock_p2)), \
p2(::
std
::forward<p2##_type>(gmock_p2)), \
p3(::
testing::internal
::forward<p3##_type>(gmock_p3)), \
p3(::
std
::forward<p3##_type>(gmock_p3)), \
p4(::
testing::internal
::forward<p4##_type>(gmock_p4)), \
p4(::
std
::forward<p4##_type>(gmock_p4)), \
p5(::
testing::internal
::forward<p5##_type>(gmock_p5)) {}\
p5(::
std
::forward<p5##_type>(gmock_p5)) {}\
template <typename F>\
template <typename F>\
class gmock_Impl : public ::testing::ActionInterface<F> {\
class gmock_Impl : public ::testing::ActionInterface<F> {\
public:\
public:\
...
@@ -1818,12 +1797,12 @@ DoAll(Action1 a1, Action2 a2, Action3 a3, Action4 a4, Action5 a5, Action6 a6,
...
@@ -1818,12 +1797,12 @@ DoAll(Action1 a1, Action2 a2, Action3 a3, Action4 a4, Action5 a5, Action6 a6,
args_type;\
args_type;\
gmock_Impl(p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2, \
gmock_Impl(p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2, \
p3##_type gmock_p3, p4##_type gmock_p4, \
p3##_type gmock_p3, p4##_type gmock_p4, \
p5##_type gmock_p5) : p0(::
testing::internal
::forward<p0##_type>(gmock_p0)), \
p5##_type gmock_p5) : p0(::
std
::forward<p0##_type>(gmock_p0)), \
p1(::
testing::internal
::forward<p1##_type>(gmock_p1)), \
p1(::
std
::forward<p1##_type>(gmock_p1)), \
p2(::
testing::internal
::forward<p2##_type>(gmock_p2)), \
p2(::
std
::forward<p2##_type>(gmock_p2)), \
p3(::
testing::internal
::forward<p3##_type>(gmock_p3)), \
p3(::
std
::forward<p3##_type>(gmock_p3)), \
p4(::
testing::internal
::forward<p4##_type>(gmock_p4)), \
p4(::
std
::forward<p4##_type>(gmock_p4)), \
p5(::
testing::internal
::forward<p5##_type>(gmock_p5)) {}\
p5(::
std
::forward<p5##_type>(gmock_p5)) {}\
virtual return_type Perform(const args_type& args) {\
virtual return_type Perform(const args_type& args) {\
return ::testing::internal::ActionHelper<return_type, gmock_Impl>::\
return ::testing::internal::ActionHelper<return_type, gmock_Impl>::\
Perform(this, args);\
Perform(this, args);\
...
@@ -1886,13 +1865,13 @@ DoAll(Action1 a1, Action2 a2, Action3 a3, Action4 a4, Action5 a5, Action6 a6,
...
@@ -1886,13 +1865,13 @@ DoAll(Action1 a1, Action2 a2, Action3 a3, Action4 a4, Action5 a5, Action6 a6,
name##ActionP7(p0##_type gmock_p0, p1##_type gmock_p1, \
name##ActionP7(p0##_type gmock_p0, p1##_type gmock_p1, \
p2##_type gmock_p2, p3##_type gmock_p3, p4##_type gmock_p4, \
p2##_type gmock_p2, p3##_type gmock_p3, p4##_type gmock_p4, \
p5##_type gmock_p5, \
p5##_type gmock_p5, \
p6##_type gmock_p6) : p0(::
testing::internal
::forward<p0##_type>(gmock_p0)), \
p6##_type gmock_p6) : p0(::
std
::forward<p0##_type>(gmock_p0)), \
p1(::
testing::internal
::forward<p1##_type>(gmock_p1)), \
p1(::
std
::forward<p1##_type>(gmock_p1)), \
p2(::
testing::internal
::forward<p2##_type>(gmock_p2)), \
p2(::
std
::forward<p2##_type>(gmock_p2)), \
p3(::
testing::internal
::forward<p3##_type>(gmock_p3)), \
p3(::
std
::forward<p3##_type>(gmock_p3)), \
p4(::
testing::internal
::forward<p4##_type>(gmock_p4)), \
p4(::
std
::forward<p4##_type>(gmock_p4)), \
p5(::
testing::internal
::forward<p5##_type>(gmock_p5)), \
p5(::
std
::forward<p5##_type>(gmock_p5)), \
p6(::
testing::internal
::forward<p6##_type>(gmock_p6)) {}\
p6(::
std
::forward<p6##_type>(gmock_p6)) {}\
template <typename F>\
template <typename F>\
class gmock_Impl : public ::testing::ActionInterface<F> {\
class gmock_Impl : public ::testing::ActionInterface<F> {\
public:\
public:\
...
@@ -1902,13 +1881,13 @@ DoAll(Action1 a1, Action2 a2, Action3 a3, Action4 a4, Action5 a5, Action6 a6,
...
@@ -1902,13 +1881,13 @@ DoAll(Action1 a1, Action2 a2, Action3 a3, Action4 a4, Action5 a5, Action6 a6,
args_type;\
args_type;\
gmock_Impl(p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2, \
gmock_Impl(p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2, \
p3##_type gmock_p3, p4##_type gmock_p4, p5##_type gmock_p5, \
p3##_type gmock_p3, p4##_type gmock_p4, p5##_type gmock_p5, \
p6##_type gmock_p6) : p0(::
testing::internal
::forward<p0##_type>(gmock_p0)), \
p6##_type gmock_p6) : p0(::
std
::forward<p0##_type>(gmock_p0)), \
p1(::
testing::internal
::forward<p1##_type>(gmock_p1)), \
p1(::
std
::forward<p1##_type>(gmock_p1)), \
p2(::
testing::internal
::forward<p2##_type>(gmock_p2)), \
p2(::
std
::forward<p2##_type>(gmock_p2)), \
p3(::
testing::internal
::forward<p3##_type>(gmock_p3)), \
p3(::
std
::forward<p3##_type>(gmock_p3)), \
p4(::
testing::internal
::forward<p4##_type>(gmock_p4)), \
p4(::
std
::forward<p4##_type>(gmock_p4)), \
p5(::
testing::internal
::forward<p5##_type>(gmock_p5)), \
p5(::
std
::forward<p5##_type>(gmock_p5)), \
p6(::
testing::internal
::forward<p6##_type>(gmock_p6)) {}\
p6(::
std
::forward<p6##_type>(gmock_p6)) {}\
virtual return_type Perform(const args_type& args) {\
virtual return_type Perform(const args_type& args) {\
return ::testing::internal::ActionHelper<return_type, gmock_Impl>::\
return ::testing::internal::ActionHelper<return_type, gmock_Impl>::\
Perform(this, args);\
Perform(this, args);\
...
@@ -1977,14 +1956,14 @@ DoAll(Action1 a1, Action2 a2, Action3 a3, Action4 a4, Action5 a5, Action6 a6,
...
@@ -1977,14 +1956,14 @@ DoAll(Action1 a1, Action2 a2, Action3 a3, Action4 a4, Action5 a5, Action6 a6,
name##ActionP8(p0##_type gmock_p0, p1##_type gmock_p1, \
name##ActionP8(p0##_type gmock_p0, p1##_type gmock_p1, \
p2##_type gmock_p2, p3##_type gmock_p3, p4##_type gmock_p4, \
p2##_type gmock_p2, p3##_type gmock_p3, p4##_type gmock_p4, \
p5##_type gmock_p5, p6##_type gmock_p6, \
p5##_type gmock_p5, p6##_type gmock_p6, \
p7##_type gmock_p7) : p0(::
testing::internal
::forward<p0##_type>(gmock_p0)), \
p7##_type gmock_p7) : p0(::
std
::forward<p0##_type>(gmock_p0)), \
p1(::
testing::internal
::forward<p1##_type>(gmock_p1)), \
p1(::
std
::forward<p1##_type>(gmock_p1)), \
p2(::
testing::internal
::forward<p2##_type>(gmock_p2)), \
p2(::
std
::forward<p2##_type>(gmock_p2)), \
p3(::
testing::internal
::forward<p3##_type>(gmock_p3)), \
p3(::
std
::forward<p3##_type>(gmock_p3)), \
p4(::
testing::internal
::forward<p4##_type>(gmock_p4)), \
p4(::
std
::forward<p4##_type>(gmock_p4)), \
p5(::
testing::internal
::forward<p5##_type>(gmock_p5)), \
p5(::
std
::forward<p5##_type>(gmock_p5)), \
p6(::
testing::internal
::forward<p6##_type>(gmock_p6)), \
p6(::
std
::forward<p6##_type>(gmock_p6)), \
p7(::
testing::internal
::forward<p7##_type>(gmock_p7)) {}\
p7(::
std
::forward<p7##_type>(gmock_p7)) {}\
template <typename F>\
template <typename F>\
class gmock_Impl : public ::testing::ActionInterface<F> {\
class gmock_Impl : public ::testing::ActionInterface<F> {\
public:\
public:\
...
@@ -1995,14 +1974,14 @@ DoAll(Action1 a1, Action2 a2, Action3 a3, Action4 a4, Action5 a5, Action6 a6,
...
@@ -1995,14 +1974,14 @@ DoAll(Action1 a1, Action2 a2, Action3 a3, Action4 a4, Action5 a5, Action6 a6,
gmock_Impl(p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2, \
gmock_Impl(p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2, \
p3##_type gmock_p3, p4##_type gmock_p4, p5##_type gmock_p5, \
p3##_type gmock_p3, p4##_type gmock_p4, p5##_type gmock_p5, \
p6##_type gmock_p6, \
p6##_type gmock_p6, \
p7##_type gmock_p7) : p0(::
testing::internal
::forward<p0##_type>(gmock_p0)), \
p7##_type gmock_p7) : p0(::
std
::forward<p0##_type>(gmock_p0)), \
p1(::
testing::internal
::forward<p1##_type>(gmock_p1)), \
p1(::
std
::forward<p1##_type>(gmock_p1)), \
p2(::
testing::internal
::forward<p2##_type>(gmock_p2)), \
p2(::
std
::forward<p2##_type>(gmock_p2)), \
p3(::
testing::internal
::forward<p3##_type>(gmock_p3)), \
p3(::
std
::forward<p3##_type>(gmock_p3)), \
p4(::
testing::internal
::forward<p4##_type>(gmock_p4)), \
p4(::
std
::forward<p4##_type>(gmock_p4)), \
p5(::
testing::internal
::forward<p5##_type>(gmock_p5)), \
p5(::
std
::forward<p5##_type>(gmock_p5)), \
p6(::
testing::internal
::forward<p6##_type>(gmock_p6)), \
p6(::
std
::forward<p6##_type>(gmock_p6)), \
p7(::
testing::internal
::forward<p7##_type>(gmock_p7)) {}\
p7(::
std
::forward<p7##_type>(gmock_p7)) {}\
virtual return_type Perform(const args_type& args) {\
virtual return_type Perform(const args_type& args) {\
return ::testing::internal::ActionHelper<return_type, gmock_Impl>::\
return ::testing::internal::ActionHelper<return_type, gmock_Impl>::\
Perform(this, args);\
Perform(this, args);\
...
@@ -2075,15 +2054,15 @@ DoAll(Action1 a1, Action2 a2, Action3 a3, Action4 a4, Action5 a5, Action6 a6,
...
@@ -2075,15 +2054,15 @@ DoAll(Action1 a1, Action2 a2, Action3 a3, Action4 a4, Action5 a5, Action6 a6,
name##ActionP9(p0##_type gmock_p0, p1##_type gmock_p1, \
name##ActionP9(p0##_type gmock_p0, p1##_type gmock_p1, \
p2##_type gmock_p2, p3##_type gmock_p3, p4##_type gmock_p4, \
p2##_type gmock_p2, p3##_type gmock_p3, p4##_type gmock_p4, \
p5##_type gmock_p5, p6##_type gmock_p6, p7##_type gmock_p7, \
p5##_type gmock_p5, p6##_type gmock_p6, p7##_type gmock_p7, \
p8##_type gmock_p8) : p0(::
testing::internal
::forward<p0##_type>(gmock_p0)), \
p8##_type gmock_p8) : p0(::
std
::forward<p0##_type>(gmock_p0)), \
p1(::
testing::internal
::forward<p1##_type>(gmock_p1)), \
p1(::
std
::forward<p1##_type>(gmock_p1)), \
p2(::
testing::internal
::forward<p2##_type>(gmock_p2)), \
p2(::
std
::forward<p2##_type>(gmock_p2)), \
p3(::
testing::internal
::forward<p3##_type>(gmock_p3)), \
p3(::
std
::forward<p3##_type>(gmock_p3)), \
p4(::
testing::internal
::forward<p4##_type>(gmock_p4)), \
p4(::
std
::forward<p4##_type>(gmock_p4)), \
p5(::
testing::internal
::forward<p5##_type>(gmock_p5)), \
p5(::
std
::forward<p5##_type>(gmock_p5)), \
p6(::
testing::internal
::forward<p6##_type>(gmock_p6)), \
p6(::
std
::forward<p6##_type>(gmock_p6)), \
p7(::
testing::internal
::forward<p7##_type>(gmock_p7)), \
p7(::
std
::forward<p7##_type>(gmock_p7)), \
p8(::
testing::internal
::forward<p8##_type>(gmock_p8)) {}\
p8(::
std
::forward<p8##_type>(gmock_p8)) {}\
template <typename F>\
template <typename F>\
class gmock_Impl : public ::testing::ActionInterface<F> {\
class gmock_Impl : public ::testing::ActionInterface<F> {\
public:\
public:\
...
@@ -2094,15 +2073,15 @@ DoAll(Action1 a1, Action2 a2, Action3 a3, Action4 a4, Action5 a5, Action6 a6,
...
@@ -2094,15 +2073,15 @@ DoAll(Action1 a1, Action2 a2, Action3 a3, Action4 a4, Action5 a5, Action6 a6,
gmock_Impl(p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2, \
gmock_Impl(p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2, \
p3##_type gmock_p3, p4##_type gmock_p4, p5##_type gmock_p5, \
p3##_type gmock_p3, p4##_type gmock_p4, p5##_type gmock_p5, \
p6##_type gmock_p6, p7##_type gmock_p7, \
p6##_type gmock_p6, p7##_type gmock_p7, \
p8##_type gmock_p8) : p0(::
testing::internal
::forward<p0##_type>(gmock_p0)), \
p8##_type gmock_p8) : p0(::
std
::forward<p0##_type>(gmock_p0)), \
p1(::
testing::internal
::forward<p1##_type>(gmock_p1)), \
p1(::
std
::forward<p1##_type>(gmock_p1)), \
p2(::
testing::internal
::forward<p2##_type>(gmock_p2)), \
p2(::
std
::forward<p2##_type>(gmock_p2)), \
p3(::
testing::internal
::forward<p3##_type>(gmock_p3)), \
p3(::
std
::forward<p3##_type>(gmock_p3)), \
p4(::
testing::internal
::forward<p4##_type>(gmock_p4)), \
p4(::
std
::forward<p4##_type>(gmock_p4)), \
p5(::
testing::internal
::forward<p5##_type>(gmock_p5)), \
p5(::
std
::forward<p5##_type>(gmock_p5)), \
p6(::
testing::internal
::forward<p6##_type>(gmock_p6)), \
p6(::
std
::forward<p6##_type>(gmock_p6)), \
p7(::
testing::internal
::forward<p7##_type>(gmock_p7)), \
p7(::
std
::forward<p7##_type>(gmock_p7)), \
p8(::
testing::internal
::forward<p8##_type>(gmock_p8)) {}\
p8(::
std
::forward<p8##_type>(gmock_p8)) {}\
virtual return_type Perform(const args_type& args) {\
virtual return_type Perform(const args_type& args) {\
return ::testing::internal::ActionHelper<return_type, gmock_Impl>::\
return ::testing::internal::ActionHelper<return_type, gmock_Impl>::\
Perform(this, args);\
Perform(this, args);\
...
@@ -2180,16 +2159,16 @@ DoAll(Action1 a1, Action2 a2, Action3 a3, Action4 a4, Action5 a5, Action6 a6,
...
@@ -2180,16 +2159,16 @@ DoAll(Action1 a1, Action2 a2, Action3 a3, Action4 a4, Action5 a5, Action6 a6,
p2##_type gmock_p2, p3##_type gmock_p3, p4##_type gmock_p4, \
p2##_type gmock_p2, p3##_type gmock_p3, p4##_type gmock_p4, \
p5##_type gmock_p5, p6##_type gmock_p6, p7##_type gmock_p7, \
p5##_type gmock_p5, p6##_type gmock_p6, p7##_type gmock_p7, \
p8##_type gmock_p8, \
p8##_type gmock_p8, \
p9##_type gmock_p9) : p0(::
testing::internal
::forward<p0##_type>(gmock_p0)), \
p9##_type gmock_p9) : p0(::
std
::forward<p0##_type>(gmock_p0)), \
p1(::
testing::internal
::forward<p1##_type>(gmock_p1)), \
p1(::
std
::forward<p1##_type>(gmock_p1)), \
p2(::
testing::internal
::forward<p2##_type>(gmock_p2)), \
p2(::
std
::forward<p2##_type>(gmock_p2)), \
p3(::
testing::internal
::forward<p3##_type>(gmock_p3)), \
p3(::
std
::forward<p3##_type>(gmock_p3)), \
p4(::
testing::internal
::forward<p4##_type>(gmock_p4)), \
p4(::
std
::forward<p4##_type>(gmock_p4)), \
p5(::
testing::internal
::forward<p5##_type>(gmock_p5)), \
p5(::
std
::forward<p5##_type>(gmock_p5)), \
p6(::
testing::internal
::forward<p6##_type>(gmock_p6)), \
p6(::
std
::forward<p6##_type>(gmock_p6)), \
p7(::
testing::internal
::forward<p7##_type>(gmock_p7)), \
p7(::
std
::forward<p7##_type>(gmock_p7)), \
p8(::
testing::internal
::forward<p8##_type>(gmock_p8)), \
p8(::
std
::forward<p8##_type>(gmock_p8)), \
p9(::
testing::internal
::forward<p9##_type>(gmock_p9)) {}\
p9(::
std
::forward<p9##_type>(gmock_p9)) {}\
template <typename F>\
template <typename F>\
class gmock_Impl : public ::testing::ActionInterface<F> {\
class gmock_Impl : public ::testing::ActionInterface<F> {\
public:\
public:\
...
@@ -2200,16 +2179,16 @@ DoAll(Action1 a1, Action2 a2, Action3 a3, Action4 a4, Action5 a5, Action6 a6,
...
@@ -2200,16 +2179,16 @@ DoAll(Action1 a1, Action2 a2, Action3 a3, Action4 a4, Action5 a5, Action6 a6,
gmock_Impl(p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2, \
gmock_Impl(p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2, \
p3##_type gmock_p3, p4##_type gmock_p4, p5##_type gmock_p5, \
p3##_type gmock_p3, p4##_type gmock_p4, p5##_type gmock_p5, \
p6##_type gmock_p6, p7##_type gmock_p7, p8##_type gmock_p8, \
p6##_type gmock_p6, p7##_type gmock_p7, p8##_type gmock_p8, \
p9##_type gmock_p9) : p0(::
testing::internal
::forward<p0##_type>(gmock_p0)), \
p9##_type gmock_p9) : p0(::
std
::forward<p0##_type>(gmock_p0)), \
p1(::
testing::internal
::forward<p1##_type>(gmock_p1)), \
p1(::
std
::forward<p1##_type>(gmock_p1)), \
p2(::
testing::internal
::forward<p2##_type>(gmock_p2)), \
p2(::
std
::forward<p2##_type>(gmock_p2)), \
p3(::
testing::internal
::forward<p3##_type>(gmock_p3)), \
p3(::
std
::forward<p3##_type>(gmock_p3)), \
p4(::
testing::internal
::forward<p4##_type>(gmock_p4)), \
p4(::
std
::forward<p4##_type>(gmock_p4)), \
p5(::
testing::internal
::forward<p5##_type>(gmock_p5)), \
p5(::
std
::forward<p5##_type>(gmock_p5)), \
p6(::
testing::internal
::forward<p6##_type>(gmock_p6)), \
p6(::
std
::forward<p6##_type>(gmock_p6)), \
p7(::
testing::internal
::forward<p7##_type>(gmock_p7)), \
p7(::
std
::forward<p7##_type>(gmock_p7)), \
p8(::
testing::internal
::forward<p8##_type>(gmock_p8)), \
p8(::
std
::forward<p8##_type>(gmock_p8)), \
p9(::
testing::internal
::forward<p9##_type>(gmock_p9)) {}\
p9(::
std
::forward<p9##_type>(gmock_p9)) {}\
virtual return_type Perform(const args_type& args) {\
virtual return_type Perform(const args_type& args) {\
return ::testing::internal::ActionHelper<return_type, gmock_Impl>::\
return ::testing::internal::ActionHelper<return_type, gmock_Impl>::\
Perform(this, args);\
Perform(this, args);\
...
...
googlemock/include/gmock/gmock-generated-actions.h.pump
View file @
29b47e45
...
@@ -43,6 +43,8 @@ $$}} This meta comment fixes auto-indentation in editors.
...
@@ -43,6 +43,8 @@ $$}} This meta comment fixes auto-indentation in editors.
#ifndef GMOCK_INCLUDE_GMOCK_GMOCK_GENERATED_ACTIONS_H_
#ifndef GMOCK_INCLUDE_GMOCK_GMOCK_GENERATED_ACTIONS_H_
#define GMOCK_INCLUDE_GMOCK_GMOCK_GENERATED_ACTIONS_H_
#define GMOCK_INCLUDE_GMOCK_GMOCK_GENERATED_ACTIONS_H_
#include <utility>
#include "gmock/gmock-actions.h"
#include "gmock/gmock-actions.h"
#include "gmock/internal/gmock-port.h"
#include "gmock/internal/gmock-port.h"
...
@@ -525,7 +527,7 @@ _VALUE_PARAMS($for j, [[p$j]]) $for j [[, typename p$j##_type]]
...
@@ -525,7 +527,7 @@ _VALUE_PARAMS($for j, [[p$j]]) $for j [[, typename p$j##_type]]
$
for
i
[[
$
for
i
[[
$
range
j
0.
.
i
-
1
$
range
j
0.
.
i
-
1
#define GMOCK_INTERNAL_INIT_AND_$i[[]]_VALUE_PARAMS($for j, [[p$j]])\
#define GMOCK_INTERNAL_INIT_AND_$i[[]]_VALUE_PARAMS($for j, [[p$j]])\
($for j, [[p$j##_type gmock_p$j]])$if i>0 [[ : ]]$for j, [[p$j(::
testing::internal
::move(gmock_p$j))]]
($for j, [[p$j##_type gmock_p$j]])$if i>0 [[ : ]]$for j, [[p$j(::
std
::move(gmock_p$j))]]
]]
]]
...
@@ -658,7 +660,7 @@ $var class_name = [[name##Action[[$if i==0 [[]] $elif i==1 [[P]]
...
@@ -658,7 +660,7 @@ $var class_name = [[name##Action[[$if i==0 [[]] $elif i==1 [[P]]
$
range
j
0.
.
i
-
1
$
range
j
0.
.
i
-
1
$
var
ctor_param_list
=
[[
$
for
j
,
[[
p
$
j
##
_type
gmock_p
$
j
]]]]
$
var
ctor_param_list
=
[[
$
for
j
,
[[
p
$
j
##
_type
gmock_p
$
j
]]]]
$
var
param_types_and_names
=
[[
$
for
j
,
[[
p
$
j
##
_type
p
$
j
]]]]
$
var
param_types_and_names
=
[[
$
for
j
,
[[
p
$
j
##
_type
p
$
j
]]]]
$
var
inits
=
[[
$
if
i
==
0
[[]]
$
else
[[
:
$
for
j
,
[[
p
$
j
(
::
testing
::
internal
::
forward
<
p
$
j
##
_type
>
(
gmock_p
$
j
))]]]]]]
$
var
inits
=
[[
$
if
i
==
0
[[]]
$
else
[[
:
$
for
j
,
[[
p
$
j
(
::
std
::
forward
<
p
$
j
##
_type
>
(
gmock_p
$
j
))]]]]]]
$
var
param_field_decls
=
[[
$
for
j
$
var
param_field_decls
=
[[
$
for
j
[[
[[
...
...
googlemock/include/gmock/gmock-generated-function-mockers.h
View file @
29b47e45
...
@@ -41,6 +41,8 @@
...
@@ -41,6 +41,8 @@
#ifndef GMOCK_INCLUDE_GMOCK_GMOCK_GENERATED_FUNCTION_MOCKERS_H_
#ifndef GMOCK_INCLUDE_GMOCK_GMOCK_GENERATED_FUNCTION_MOCKERS_H_
#define GMOCK_INCLUDE_GMOCK_GMOCK_GENERATED_FUNCTION_MOCKERS_H_
#define GMOCK_INCLUDE_GMOCK_GMOCK_GENERATED_FUNCTION_MOCKERS_H_
#include <utility>
#include "gmock/gmock-spec-builders.h"
#include "gmock/gmock-spec-builders.h"
#include "gmock/internal/gmock-internal-utils.h"
#include "gmock/internal/gmock-internal-utils.h"
...
@@ -98,7 +100,7 @@ class FunctionMocker<R(A1)> : public
...
@@ -98,7 +100,7 @@ class FunctionMocker<R(A1)> : public
// by the C++ standard [14.6.4] here, as the base class type is
// by the C++ standard [14.6.4] here, as the base class type is
// dependent on the template argument (and thus shouldn't be
// dependent on the template argument (and thus shouldn't be
// looked into when resolving InvokeWith).
// looked into when resolving InvokeWith).
return
this
->
InvokeWith
(
ArgumentTuple
(
internal
::
forward
<
A1
>
(
a1
)));
return
this
->
InvokeWith
(
ArgumentTuple
(
std
::
forward
<
A1
>
(
a1
)));
}
}
};
};
...
@@ -118,8 +120,8 @@ class FunctionMocker<R(A1, A2)> : public
...
@@ -118,8 +120,8 @@ class FunctionMocker<R(A1, A2)> : public
// by the C++ standard [14.6.4] here, as the base class type is
// by the C++ standard [14.6.4] here, as the base class type is
// dependent on the template argument (and thus shouldn't be
// dependent on the template argument (and thus shouldn't be
// looked into when resolving InvokeWith).
// looked into when resolving InvokeWith).
return
this
->
InvokeWith
(
ArgumentTuple
(
internal
::
forward
<
A1
>
(
a1
),
return
this
->
InvokeWith
(
ArgumentTuple
(
std
::
forward
<
A1
>
(
a1
),
internal
::
forward
<
A2
>
(
a2
)));
std
::
forward
<
A2
>
(
a2
)));
}
}
};
};
...
@@ -140,8 +142,8 @@ class FunctionMocker<R(A1, A2, A3)> : public
...
@@ -140,8 +142,8 @@ class FunctionMocker<R(A1, A2, A3)> : public
// by the C++ standard [14.6.4] here, as the base class type is
// by the C++ standard [14.6.4] here, as the base class type is
// dependent on the template argument (and thus shouldn't be
// dependent on the template argument (and thus shouldn't be
// looked into when resolving InvokeWith).
// looked into when resolving InvokeWith).
return
this
->
InvokeWith
(
ArgumentTuple
(
internal
::
forward
<
A1
>
(
a1
),
return
this
->
InvokeWith
(
ArgumentTuple
(
std
::
forward
<
A1
>
(
a1
),
internal
::
forward
<
A2
>
(
a2
),
internal
::
forward
<
A3
>
(
a3
)));
std
::
forward
<
A2
>
(
a2
),
std
::
forward
<
A3
>
(
a3
)));
}
}
};
};
...
@@ -162,9 +164,8 @@ class FunctionMocker<R(A1, A2, A3, A4)> : public
...
@@ -162,9 +164,8 @@ class FunctionMocker<R(A1, A2, A3, A4)> : public
// by the C++ standard [14.6.4] here, as the base class type is
// by the C++ standard [14.6.4] here, as the base class type is
// dependent on the template argument (and thus shouldn't be
// dependent on the template argument (and thus shouldn't be
// looked into when resolving InvokeWith).
// looked into when resolving InvokeWith).
return
this
->
InvokeWith
(
ArgumentTuple
(
internal
::
forward
<
A1
>
(
a1
),
return
this
->
InvokeWith
(
ArgumentTuple
(
std
::
forward
<
A1
>
(
a1
),
internal
::
forward
<
A2
>
(
a2
),
internal
::
forward
<
A3
>
(
a3
),
std
::
forward
<
A2
>
(
a2
),
std
::
forward
<
A3
>
(
a3
),
std
::
forward
<
A4
>
(
a4
)));
internal
::
forward
<
A4
>
(
a4
)));
}
}
};
};
...
@@ -186,9 +187,9 @@ class FunctionMocker<R(A1, A2, A3, A4, A5)> : public
...
@@ -186,9 +187,9 @@ class FunctionMocker<R(A1, A2, A3, A4, A5)> : public
// by the C++ standard [14.6.4] here, as the base class type is
// by the C++ standard [14.6.4] here, as the base class type is
// dependent on the template argument (and thus shouldn't be
// dependent on the template argument (and thus shouldn't be
// looked into when resolving InvokeWith).
// looked into when resolving InvokeWith).
return
this
->
InvokeWith
(
ArgumentTuple
(
internal
::
forward
<
A1
>
(
a1
),
return
this
->
InvokeWith
(
ArgumentTuple
(
std
::
forward
<
A1
>
(
a1
),
internal
::
forward
<
A2
>
(
a2
),
internal
::
forward
<
A3
>
(
a3
),
std
::
forward
<
A2
>
(
a2
),
std
::
forward
<
A3
>
(
a3
),
std
::
forward
<
A4
>
(
a4
),
internal
::
forward
<
A4
>
(
a4
),
internal
::
forward
<
A5
>
(
a5
)));
std
::
forward
<
A5
>
(
a5
)));
}
}
};
};
...
@@ -211,10 +212,9 @@ class FunctionMocker<R(A1, A2, A3, A4, A5, A6)> : public
...
@@ -211,10 +212,9 @@ class FunctionMocker<R(A1, A2, A3, A4, A5, A6)> : public
// by the C++ standard [14.6.4] here, as the base class type is
// by the C++ standard [14.6.4] here, as the base class type is
// dependent on the template argument (and thus shouldn't be
// dependent on the template argument (and thus shouldn't be
// looked into when resolving InvokeWith).
// looked into when resolving InvokeWith).
return
this
->
InvokeWith
(
ArgumentTuple
(
internal
::
forward
<
A1
>
(
a1
),
return
this
->
InvokeWith
(
ArgumentTuple
(
std
::
forward
<
A1
>
(
a1
),
internal
::
forward
<
A2
>
(
a2
),
internal
::
forward
<
A3
>
(
a3
),
std
::
forward
<
A2
>
(
a2
),
std
::
forward
<
A3
>
(
a3
),
std
::
forward
<
A4
>
(
a4
),
internal
::
forward
<
A4
>
(
a4
),
internal
::
forward
<
A5
>
(
a5
),
std
::
forward
<
A5
>
(
a5
),
std
::
forward
<
A6
>
(
a6
)));
internal
::
forward
<
A6
>
(
a6
)));
}
}
};
};
...
@@ -237,10 +237,9 @@ class FunctionMocker<R(A1, A2, A3, A4, A5, A6, A7)> : public
...
@@ -237,10 +237,9 @@ class FunctionMocker<R(A1, A2, A3, A4, A5, A6, A7)> : public
// by the C++ standard [14.6.4] here, as the base class type is
// by the C++ standard [14.6.4] here, as the base class type is
// dependent on the template argument (and thus shouldn't be
// dependent on the template argument (and thus shouldn't be
// looked into when resolving InvokeWith).
// looked into when resolving InvokeWith).
return
this
->
InvokeWith
(
ArgumentTuple
(
internal
::
forward
<
A1
>
(
a1
),
return
this
->
InvokeWith
(
ArgumentTuple
(
std
::
forward
<
A1
>
(
a1
),
internal
::
forward
<
A2
>
(
a2
),
internal
::
forward
<
A3
>
(
a3
),
std
::
forward
<
A2
>
(
a2
),
std
::
forward
<
A3
>
(
a3
),
std
::
forward
<
A4
>
(
a4
),
internal
::
forward
<
A4
>
(
a4
),
internal
::
forward
<
A5
>
(
a5
),
std
::
forward
<
A5
>
(
a5
),
std
::
forward
<
A6
>
(
a6
),
std
::
forward
<
A7
>
(
a7
)));
internal
::
forward
<
A6
>
(
a6
),
internal
::
forward
<
A7
>
(
a7
)));
}
}
};
};
...
@@ -263,11 +262,10 @@ class FunctionMocker<R(A1, A2, A3, A4, A5, A6, A7, A8)> : public
...
@@ -263,11 +262,10 @@ class FunctionMocker<R(A1, A2, A3, A4, A5, A6, A7, A8)> : public
// by the C++ standard [14.6.4] here, as the base class type is
// by the C++ standard [14.6.4] here, as the base class type is
// dependent on the template argument (and thus shouldn't be
// dependent on the template argument (and thus shouldn't be
// looked into when resolving InvokeWith).
// looked into when resolving InvokeWith).
return
this
->
InvokeWith
(
ArgumentTuple
(
internal
::
forward
<
A1
>
(
a1
),
return
this
->
InvokeWith
(
ArgumentTuple
(
std
::
forward
<
A1
>
(
a1
),
internal
::
forward
<
A2
>
(
a2
),
internal
::
forward
<
A3
>
(
a3
),
std
::
forward
<
A2
>
(
a2
),
std
::
forward
<
A3
>
(
a3
),
std
::
forward
<
A4
>
(
a4
),
internal
::
forward
<
A4
>
(
a4
),
internal
::
forward
<
A5
>
(
a5
),
std
::
forward
<
A5
>
(
a5
),
std
::
forward
<
A6
>
(
a6
),
std
::
forward
<
A7
>
(
a7
),
internal
::
forward
<
A6
>
(
a6
),
internal
::
forward
<
A7
>
(
a7
),
std
::
forward
<
A8
>
(
a8
)));
internal
::
forward
<
A8
>
(
a8
)));
}
}
};
};
...
@@ -292,11 +290,10 @@ class FunctionMocker<R(A1, A2, A3, A4, A5, A6, A7, A8, A9)> : public
...
@@ -292,11 +290,10 @@ class FunctionMocker<R(A1, A2, A3, A4, A5, A6, A7, A8, A9)> : public
// by the C++ standard [14.6.4] here, as the base class type is
// by the C++ standard [14.6.4] here, as the base class type is
// dependent on the template argument (and thus shouldn't be
// dependent on the template argument (and thus shouldn't be
// looked into when resolving InvokeWith).
// looked into when resolving InvokeWith).
return
this
->
InvokeWith
(
ArgumentTuple
(
internal
::
forward
<
A1
>
(
a1
),
return
this
->
InvokeWith
(
ArgumentTuple
(
std
::
forward
<
A1
>
(
a1
),
internal
::
forward
<
A2
>
(
a2
),
internal
::
forward
<
A3
>
(
a3
),
std
::
forward
<
A2
>
(
a2
),
std
::
forward
<
A3
>
(
a3
),
std
::
forward
<
A4
>
(
a4
),
internal
::
forward
<
A4
>
(
a4
),
internal
::
forward
<
A5
>
(
a5
),
std
::
forward
<
A5
>
(
a5
),
std
::
forward
<
A6
>
(
a6
),
std
::
forward
<
A7
>
(
a7
),
internal
::
forward
<
A6
>
(
a6
),
internal
::
forward
<
A7
>
(
a7
),
std
::
forward
<
A8
>
(
a8
),
std
::
forward
<
A9
>
(
a9
)));
internal
::
forward
<
A8
>
(
a8
),
internal
::
forward
<
A9
>
(
a9
)));
}
}
};
};
...
@@ -323,12 +320,10 @@ class FunctionMocker<R(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10)> : public
...
@@ -323,12 +320,10 @@ class FunctionMocker<R(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10)> : public
// by the C++ standard [14.6.4] here, as the base class type is
// by the C++ standard [14.6.4] here, as the base class type is
// dependent on the template argument (and thus shouldn't be
// dependent on the template argument (and thus shouldn't be
// looked into when resolving InvokeWith).
// looked into when resolving InvokeWith).
return
this
->
InvokeWith
(
ArgumentTuple
(
internal
::
forward
<
A1
>
(
a1
),
return
this
->
InvokeWith
(
ArgumentTuple
(
std
::
forward
<
A1
>
(
a1
),
internal
::
forward
<
A2
>
(
a2
),
internal
::
forward
<
A3
>
(
a3
),
std
::
forward
<
A2
>
(
a2
),
std
::
forward
<
A3
>
(
a3
),
std
::
forward
<
A4
>
(
a4
),
internal
::
forward
<
A4
>
(
a4
),
internal
::
forward
<
A5
>
(
a5
),
std
::
forward
<
A5
>
(
a5
),
std
::
forward
<
A6
>
(
a6
),
std
::
forward
<
A7
>
(
a7
),
internal
::
forward
<
A6
>
(
a6
),
internal
::
forward
<
A7
>
(
a7
),
std
::
forward
<
A8
>
(
a8
),
std
::
forward
<
A9
>
(
a9
),
std
::
forward
<
A10
>
(
a10
)));
internal
::
forward
<
A8
>
(
a8
),
internal
::
forward
<
A9
>
(
a9
),
internal
::
forward
<
A10
>
(
a10
)));
}
}
};
};
...
@@ -451,7 +446,7 @@ using internal::FunctionMocker;
...
@@ -451,7 +446,7 @@ using internal::FunctionMocker;
this_method_does_not_take_1_argument); \
this_method_does_not_take_1_argument); \
GMOCK_MOCKER_(1, constness, Method).SetOwnerAndName(this, #Method); \
GMOCK_MOCKER_(1, constness, Method).SetOwnerAndName(this, #Method); \
return GMOCK_MOCKER_(1, constness, \
return GMOCK_MOCKER_(1, constness, \
Method).Invoke(::
testing::internal
::forward<GMOCK_ARG_(tn, 1, \
Method).Invoke(::
std
::forward<GMOCK_ARG_(tn, 1, \
__VA_ARGS__)>(gmock_a1)); \
__VA_ARGS__)>(gmock_a1)); \
} \
} \
::testing::MockSpec<__VA_ARGS__> \
::testing::MockSpec<__VA_ARGS__> \
...
@@ -479,9 +474,9 @@ using internal::FunctionMocker;
...
@@ -479,9 +474,9 @@ using internal::FunctionMocker;
this_method_does_not_take_2_arguments); \
this_method_does_not_take_2_arguments); \
GMOCK_MOCKER_(2, constness, Method).SetOwnerAndName(this, #Method); \
GMOCK_MOCKER_(2, constness, Method).SetOwnerAndName(this, #Method); \
return GMOCK_MOCKER_(2, constness, \
return GMOCK_MOCKER_(2, constness, \
Method).Invoke(::
testing::internal
::forward<GMOCK_ARG_(tn, 1, \
Method).Invoke(::
std
::forward<GMOCK_ARG_(tn, 1, \
__VA_ARGS__)>(gmock_a1), \
__VA_ARGS__)>(gmock_a1), \
::
testing::internal
::forward<GMOCK_ARG_(tn, 2, __VA_ARGS__)>(gmock_a2)); \
::
std
::forward<GMOCK_ARG_(tn, 2, __VA_ARGS__)>(gmock_a2)); \
} \
} \
::testing::MockSpec<__VA_ARGS__> \
::testing::MockSpec<__VA_ARGS__> \
gmock_##Method(GMOCK_MATCHER_(tn, 1, __VA_ARGS__) gmock_a1, \
gmock_##Method(GMOCK_MATCHER_(tn, 1, __VA_ARGS__) gmock_a1, \
...
@@ -511,10 +506,10 @@ using internal::FunctionMocker;
...
@@ -511,10 +506,10 @@ using internal::FunctionMocker;
this_method_does_not_take_3_arguments); \
this_method_does_not_take_3_arguments); \
GMOCK_MOCKER_(3, constness, Method).SetOwnerAndName(this, #Method); \
GMOCK_MOCKER_(3, constness, Method).SetOwnerAndName(this, #Method); \
return GMOCK_MOCKER_(3, constness, \
return GMOCK_MOCKER_(3, constness, \
Method).Invoke(::
testing::internal
::forward<GMOCK_ARG_(tn, 1, \
Method).Invoke(::
std
::forward<GMOCK_ARG_(tn, 1, \
__VA_ARGS__)>(gmock_a1), \
__VA_ARGS__)>(gmock_a1), \
::
testing::internal
::forward<GMOCK_ARG_(tn, 2, __VA_ARGS__)>(gmock_a2), \
::
std
::forward<GMOCK_ARG_(tn, 2, __VA_ARGS__)>(gmock_a2), \
::
testing::internal
::forward<GMOCK_ARG_(tn, 3, __VA_ARGS__)>(gmock_a3)); \
::
std
::forward<GMOCK_ARG_(tn, 3, __VA_ARGS__)>(gmock_a3)); \
} \
} \
::testing::MockSpec<__VA_ARGS__> \
::testing::MockSpec<__VA_ARGS__> \
gmock_##Method(GMOCK_MATCHER_(tn, 1, __VA_ARGS__) gmock_a1, \
gmock_##Method(GMOCK_MATCHER_(tn, 1, __VA_ARGS__) gmock_a1, \
...
@@ -547,11 +542,11 @@ using internal::FunctionMocker;
...
@@ -547,11 +542,11 @@ using internal::FunctionMocker;
this_method_does_not_take_4_arguments); \
this_method_does_not_take_4_arguments); \
GMOCK_MOCKER_(4, constness, Method).SetOwnerAndName(this, #Method); \
GMOCK_MOCKER_(4, constness, Method).SetOwnerAndName(this, #Method); \
return GMOCK_MOCKER_(4, constness, \
return GMOCK_MOCKER_(4, constness, \
Method).Invoke(::
testing::internal
::forward<GMOCK_ARG_(tn, 1, \
Method).Invoke(::
std
::forward<GMOCK_ARG_(tn, 1, \
__VA_ARGS__)>(gmock_a1), \
__VA_ARGS__)>(gmock_a1), \
::
testing::internal
::forward<GMOCK_ARG_(tn, 2, __VA_ARGS__)>(gmock_a2), \
::
std
::forward<GMOCK_ARG_(tn, 2, __VA_ARGS__)>(gmock_a2), \
::
testing::internal
::forward<GMOCK_ARG_(tn, 3, __VA_ARGS__)>(gmock_a3), \
::
std
::forward<GMOCK_ARG_(tn, 3, __VA_ARGS__)>(gmock_a3), \
::
testing::internal
::forward<GMOCK_ARG_(tn, 4, __VA_ARGS__)>(gmock_a4)); \
::
std
::forward<GMOCK_ARG_(tn, 4, __VA_ARGS__)>(gmock_a4)); \
} \
} \
::testing::MockSpec<__VA_ARGS__> \
::testing::MockSpec<__VA_ARGS__> \
gmock_##Method(GMOCK_MATCHER_(tn, 1, __VA_ARGS__) gmock_a1, \
gmock_##Method(GMOCK_MATCHER_(tn, 1, __VA_ARGS__) gmock_a1, \
...
@@ -587,12 +582,12 @@ using internal::FunctionMocker;
...
@@ -587,12 +582,12 @@ using internal::FunctionMocker;
this_method_does_not_take_5_arguments); \
this_method_does_not_take_5_arguments); \
GMOCK_MOCKER_(5, constness, Method).SetOwnerAndName(this, #Method); \
GMOCK_MOCKER_(5, constness, Method).SetOwnerAndName(this, #Method); \
return GMOCK_MOCKER_(5, constness, \
return GMOCK_MOCKER_(5, constness, \
Method).Invoke(::
testing::internal
::forward<GMOCK_ARG_(tn, 1, \
Method).Invoke(::
std
::forward<GMOCK_ARG_(tn, 1, \
__VA_ARGS__)>(gmock_a1), \
__VA_ARGS__)>(gmock_a1), \
::
testing::internal
::forward<GMOCK_ARG_(tn, 2, __VA_ARGS__)>(gmock_a2), \
::
std
::forward<GMOCK_ARG_(tn, 2, __VA_ARGS__)>(gmock_a2), \
::
testing::internal
::forward<GMOCK_ARG_(tn, 3, __VA_ARGS__)>(gmock_a3), \
::
std
::forward<GMOCK_ARG_(tn, 3, __VA_ARGS__)>(gmock_a3), \
::
testing::internal
::forward<GMOCK_ARG_(tn, 4, __VA_ARGS__)>(gmock_a4), \
::
std
::forward<GMOCK_ARG_(tn, 4, __VA_ARGS__)>(gmock_a4), \
::
testing::internal
::forward<GMOCK_ARG_(tn, 5, __VA_ARGS__)>(gmock_a5)); \
::
std
::forward<GMOCK_ARG_(tn, 5, __VA_ARGS__)>(gmock_a5)); \
} \
} \
::testing::MockSpec<__VA_ARGS__> \
::testing::MockSpec<__VA_ARGS__> \
gmock_##Method(GMOCK_MATCHER_(tn, 1, __VA_ARGS__) gmock_a1, \
gmock_##Method(GMOCK_MATCHER_(tn, 1, __VA_ARGS__) gmock_a1, \
...
@@ -631,13 +626,13 @@ using internal::FunctionMocker;
...
@@ -631,13 +626,13 @@ using internal::FunctionMocker;
this_method_does_not_take_6_arguments); \
this_method_does_not_take_6_arguments); \
GMOCK_MOCKER_(6, constness, Method).SetOwnerAndName(this, #Method); \
GMOCK_MOCKER_(6, constness, Method).SetOwnerAndName(this, #Method); \
return GMOCK_MOCKER_(6, constness, \
return GMOCK_MOCKER_(6, constness, \
Method).Invoke(::
testing::internal
::forward<GMOCK_ARG_(tn, 1, \
Method).Invoke(::
std
::forward<GMOCK_ARG_(tn, 1, \
__VA_ARGS__)>(gmock_a1), \
__VA_ARGS__)>(gmock_a1), \
::
testing::internal
::forward<GMOCK_ARG_(tn, 2, __VA_ARGS__)>(gmock_a2), \
::
std
::forward<GMOCK_ARG_(tn, 2, __VA_ARGS__)>(gmock_a2), \
::
testing::internal
::forward<GMOCK_ARG_(tn, 3, __VA_ARGS__)>(gmock_a3), \
::
std
::forward<GMOCK_ARG_(tn, 3, __VA_ARGS__)>(gmock_a3), \
::
testing::internal
::forward<GMOCK_ARG_(tn, 4, __VA_ARGS__)>(gmock_a4), \
::
std
::forward<GMOCK_ARG_(tn, 4, __VA_ARGS__)>(gmock_a4), \
::
testing::internal
::forward<GMOCK_ARG_(tn, 5, __VA_ARGS__)>(gmock_a5), \
::
std
::forward<GMOCK_ARG_(tn, 5, __VA_ARGS__)>(gmock_a5), \
::
testing::internal
::forward<GMOCK_ARG_(tn, 6, __VA_ARGS__)>(gmock_a6)); \
::
std
::forward<GMOCK_ARG_(tn, 6, __VA_ARGS__)>(gmock_a6)); \
} \
} \
::testing::MockSpec<__VA_ARGS__> \
::testing::MockSpec<__VA_ARGS__> \
gmock_##Method(GMOCK_MATCHER_(tn, 1, __VA_ARGS__) gmock_a1, \
gmock_##Method(GMOCK_MATCHER_(tn, 1, __VA_ARGS__) gmock_a1, \
...
@@ -678,14 +673,14 @@ using internal::FunctionMocker;
...
@@ -678,14 +673,14 @@ using internal::FunctionMocker;
this_method_does_not_take_7_arguments); \
this_method_does_not_take_7_arguments); \
GMOCK_MOCKER_(7, constness, Method).SetOwnerAndName(this, #Method); \
GMOCK_MOCKER_(7, constness, Method).SetOwnerAndName(this, #Method); \
return GMOCK_MOCKER_(7, constness, \
return GMOCK_MOCKER_(7, constness, \
Method).Invoke(::
testing::internal
::forward<GMOCK_ARG_(tn, 1, \
Method).Invoke(::
std
::forward<GMOCK_ARG_(tn, 1, \
__VA_ARGS__)>(gmock_a1), \
__VA_ARGS__)>(gmock_a1), \
::
testing::internal
::forward<GMOCK_ARG_(tn, 2, __VA_ARGS__)>(gmock_a2), \
::
std
::forward<GMOCK_ARG_(tn, 2, __VA_ARGS__)>(gmock_a2), \
::
testing::internal
::forward<GMOCK_ARG_(tn, 3, __VA_ARGS__)>(gmock_a3), \
::
std
::forward<GMOCK_ARG_(tn, 3, __VA_ARGS__)>(gmock_a3), \
::
testing::internal
::forward<GMOCK_ARG_(tn, 4, __VA_ARGS__)>(gmock_a4), \
::
std
::forward<GMOCK_ARG_(tn, 4, __VA_ARGS__)>(gmock_a4), \
::
testing::internal
::forward<GMOCK_ARG_(tn, 5, __VA_ARGS__)>(gmock_a5), \
::
std
::forward<GMOCK_ARG_(tn, 5, __VA_ARGS__)>(gmock_a5), \
::
testing::internal
::forward<GMOCK_ARG_(tn, 6, __VA_ARGS__)>(gmock_a6), \
::
std
::forward<GMOCK_ARG_(tn, 6, __VA_ARGS__)>(gmock_a6), \
::
testing::internal
::forward<GMOCK_ARG_(tn, 7, __VA_ARGS__)>(gmock_a7)); \
::
std
::forward<GMOCK_ARG_(tn, 7, __VA_ARGS__)>(gmock_a7)); \
} \
} \
::testing::MockSpec<__VA_ARGS__> \
::testing::MockSpec<__VA_ARGS__> \
gmock_##Method(GMOCK_MATCHER_(tn, 1, __VA_ARGS__) gmock_a1, \
gmock_##Method(GMOCK_MATCHER_(tn, 1, __VA_ARGS__) gmock_a1, \
...
@@ -729,15 +724,15 @@ using internal::FunctionMocker;
...
@@ -729,15 +724,15 @@ using internal::FunctionMocker;
this_method_does_not_take_8_arguments); \
this_method_does_not_take_8_arguments); \
GMOCK_MOCKER_(8, constness, Method).SetOwnerAndName(this, #Method); \
GMOCK_MOCKER_(8, constness, Method).SetOwnerAndName(this, #Method); \
return GMOCK_MOCKER_(8, constness, \
return GMOCK_MOCKER_(8, constness, \
Method).Invoke(::
testing::internal
::forward<GMOCK_ARG_(tn, 1, \
Method).Invoke(::
std
::forward<GMOCK_ARG_(tn, 1, \
__VA_ARGS__)>(gmock_a1), \
__VA_ARGS__)>(gmock_a1), \
::
testing::internal
::forward<GMOCK_ARG_(tn, 2, __VA_ARGS__)>(gmock_a2), \
::
std
::forward<GMOCK_ARG_(tn, 2, __VA_ARGS__)>(gmock_a2), \
::
testing::internal
::forward<GMOCK_ARG_(tn, 3, __VA_ARGS__)>(gmock_a3), \
::
std
::forward<GMOCK_ARG_(tn, 3, __VA_ARGS__)>(gmock_a3), \
::
testing::internal
::forward<GMOCK_ARG_(tn, 4, __VA_ARGS__)>(gmock_a4), \
::
std
::forward<GMOCK_ARG_(tn, 4, __VA_ARGS__)>(gmock_a4), \
::
testing::internal
::forward<GMOCK_ARG_(tn, 5, __VA_ARGS__)>(gmock_a5), \
::
std
::forward<GMOCK_ARG_(tn, 5, __VA_ARGS__)>(gmock_a5), \
::
testing::internal
::forward<GMOCK_ARG_(tn, 6, __VA_ARGS__)>(gmock_a6), \
::
std
::forward<GMOCK_ARG_(tn, 6, __VA_ARGS__)>(gmock_a6), \
::
testing::internal
::forward<GMOCK_ARG_(tn, 7, __VA_ARGS__)>(gmock_a7), \
::
std
::forward<GMOCK_ARG_(tn, 7, __VA_ARGS__)>(gmock_a7), \
::
testing::internal
::forward<GMOCK_ARG_(tn, 8, __VA_ARGS__)>(gmock_a8)); \
::
std
::forward<GMOCK_ARG_(tn, 8, __VA_ARGS__)>(gmock_a8)); \
} \
} \
::testing::MockSpec<__VA_ARGS__> \
::testing::MockSpec<__VA_ARGS__> \
gmock_##Method(GMOCK_MATCHER_(tn, 1, __VA_ARGS__) gmock_a1, \
gmock_##Method(GMOCK_MATCHER_(tn, 1, __VA_ARGS__) gmock_a1, \
...
@@ -784,16 +779,16 @@ using internal::FunctionMocker;
...
@@ -784,16 +779,16 @@ using internal::FunctionMocker;
this_method_does_not_take_9_arguments); \
this_method_does_not_take_9_arguments); \
GMOCK_MOCKER_(9, constness, Method).SetOwnerAndName(this, #Method); \
GMOCK_MOCKER_(9, constness, Method).SetOwnerAndName(this, #Method); \
return GMOCK_MOCKER_(9, constness, \
return GMOCK_MOCKER_(9, constness, \
Method).Invoke(::
testing::internal
::forward<GMOCK_ARG_(tn, 1, \
Method).Invoke(::
std
::forward<GMOCK_ARG_(tn, 1, \
__VA_ARGS__)>(gmock_a1), \
__VA_ARGS__)>(gmock_a1), \
::
testing::internal
::forward<GMOCK_ARG_(tn, 2, __VA_ARGS__)>(gmock_a2), \
::
std
::forward<GMOCK_ARG_(tn, 2, __VA_ARGS__)>(gmock_a2), \
::
testing::internal
::forward<GMOCK_ARG_(tn, 3, __VA_ARGS__)>(gmock_a3), \
::
std
::forward<GMOCK_ARG_(tn, 3, __VA_ARGS__)>(gmock_a3), \
::
testing::internal
::forward<GMOCK_ARG_(tn, 4, __VA_ARGS__)>(gmock_a4), \
::
std
::forward<GMOCK_ARG_(tn, 4, __VA_ARGS__)>(gmock_a4), \
::
testing::internal
::forward<GMOCK_ARG_(tn, 5, __VA_ARGS__)>(gmock_a5), \
::
std
::forward<GMOCK_ARG_(tn, 5, __VA_ARGS__)>(gmock_a5), \
::
testing::internal
::forward<GMOCK_ARG_(tn, 6, __VA_ARGS__)>(gmock_a6), \
::
std
::forward<GMOCK_ARG_(tn, 6, __VA_ARGS__)>(gmock_a6), \
::
testing::internal
::forward<GMOCK_ARG_(tn, 7, __VA_ARGS__)>(gmock_a7), \
::
std
::forward<GMOCK_ARG_(tn, 7, __VA_ARGS__)>(gmock_a7), \
::
testing::internal
::forward<GMOCK_ARG_(tn, 8, __VA_ARGS__)>(gmock_a8), \
::
std
::forward<GMOCK_ARG_(tn, 8, __VA_ARGS__)>(gmock_a8), \
::
testing::internal
::forward<GMOCK_ARG_(tn, 9, __VA_ARGS__)>(gmock_a9)); \
::
std
::forward<GMOCK_ARG_(tn, 9, __VA_ARGS__)>(gmock_a9)); \
} \
} \
::testing::MockSpec<__VA_ARGS__> \
::testing::MockSpec<__VA_ARGS__> \
gmock_##Method(GMOCK_MATCHER_(tn, 1, __VA_ARGS__) gmock_a1, \
gmock_##Method(GMOCK_MATCHER_(tn, 1, __VA_ARGS__) gmock_a1, \
...
@@ -843,17 +838,17 @@ using internal::FunctionMocker;
...
@@ -843,17 +838,17 @@ using internal::FunctionMocker;
this_method_does_not_take_10_arguments); \
this_method_does_not_take_10_arguments); \
GMOCK_MOCKER_(10, constness, Method).SetOwnerAndName(this, #Method); \
GMOCK_MOCKER_(10, constness, Method).SetOwnerAndName(this, #Method); \
return GMOCK_MOCKER_(10, constness, \
return GMOCK_MOCKER_(10, constness, \
Method).Invoke(::
testing::internal
::forward<GMOCK_ARG_(tn, 1, \
Method).Invoke(::
std
::forward<GMOCK_ARG_(tn, 1, \
__VA_ARGS__)>(gmock_a1), \
__VA_ARGS__)>(gmock_a1), \
::
testing::internal
::forward<GMOCK_ARG_(tn, 2, __VA_ARGS__)>(gmock_a2), \
::
std
::forward<GMOCK_ARG_(tn, 2, __VA_ARGS__)>(gmock_a2), \
::
testing::internal
::forward<GMOCK_ARG_(tn, 3, __VA_ARGS__)>(gmock_a3), \
::
std
::forward<GMOCK_ARG_(tn, 3, __VA_ARGS__)>(gmock_a3), \
::
testing::internal
::forward<GMOCK_ARG_(tn, 4, __VA_ARGS__)>(gmock_a4), \
::
std
::forward<GMOCK_ARG_(tn, 4, __VA_ARGS__)>(gmock_a4), \
::
testing::internal
::forward<GMOCK_ARG_(tn, 5, __VA_ARGS__)>(gmock_a5), \
::
std
::forward<GMOCK_ARG_(tn, 5, __VA_ARGS__)>(gmock_a5), \
::
testing::internal
::forward<GMOCK_ARG_(tn, 6, __VA_ARGS__)>(gmock_a6), \
::
std
::forward<GMOCK_ARG_(tn, 6, __VA_ARGS__)>(gmock_a6), \
::
testing::internal
::forward<GMOCK_ARG_(tn, 7, __VA_ARGS__)>(gmock_a7), \
::
std
::forward<GMOCK_ARG_(tn, 7, __VA_ARGS__)>(gmock_a7), \
::
testing::internal
::forward<GMOCK_ARG_(tn, 8, __VA_ARGS__)>(gmock_a8), \
::
std
::forward<GMOCK_ARG_(tn, 8, __VA_ARGS__)>(gmock_a8), \
::
testing::internal
::forward<GMOCK_ARG_(tn, 9, __VA_ARGS__)>(gmock_a9), \
::
std
::forward<GMOCK_ARG_(tn, 9, __VA_ARGS__)>(gmock_a9), \
::
testing::internal
::forward<GMOCK_ARG_(tn, 10, __VA_ARGS__)>(gmock_a10)); \
::
std
::forward<GMOCK_ARG_(tn, 10, __VA_ARGS__)>(gmock_a10)); \
} \
} \
::testing::MockSpec<__VA_ARGS__> \
::testing::MockSpec<__VA_ARGS__> \
gmock_##Method(GMOCK_MATCHER_(tn, 1, __VA_ARGS__) gmock_a1, \
gmock_##Method(GMOCK_MATCHER_(tn, 1, __VA_ARGS__) gmock_a1, \
...
...
googlemock/include/gmock/gmock-generated-function-mockers.h.pump
View file @
29b47e45
...
@@ -42,6 +42,8 @@ $var n = 10 $$ The maximum arity we support.
...
@@ -42,6 +42,8 @@ $var n = 10 $$ The maximum arity we support.
#ifndef GMOCK_INCLUDE_GMOCK_GMOCK_GENERATED_FUNCTION_MOCKERS_H_
#ifndef GMOCK_INCLUDE_GMOCK_GMOCK_GENERATED_FUNCTION_MOCKERS_H_
#define GMOCK_INCLUDE_GMOCK_GMOCK_GENERATED_FUNCTION_MOCKERS_H_
#define GMOCK_INCLUDE_GMOCK_GMOCK_GENERATED_FUNCTION_MOCKERS_H_
#include <utility>
#include "gmock/gmock-spec-builders.h"
#include "gmock/gmock-spec-builders.h"
#include "gmock/internal/gmock-internal-utils.h"
#include "gmock/internal/gmock-internal-utils.h"
...
@@ -69,7 +71,7 @@ $for i [[
...
@@ -69,7 +71,7 @@ $for i [[
$
range
j
1.
.
i
$
range
j
1.
.
i
$
var
typename_As
=
[[
$
for
j
[[,
typename
A
$
j
]]]]
$
var
typename_As
=
[[
$
for
j
[[,
typename
A
$
j
]]]]
$
var
As
=
[[
$
for
j
,
[[
A
$
j
]]]]
$
var
As
=
[[
$
for
j
,
[[
A
$
j
]]]]
$
var
as
=
[[
$
for
j
,
[[
internal
::
forward
<
A
$
j
>
(
a
$
j
)]]]]
$
var
as
=
[[
$
for
j
,
[[
std
::
forward
<
A
$
j
>
(
a
$
j
)]]]]
$
var
Aas
=
[[
$
for
j
,
[[
A
$
j
a
$
j
]]]]
$
var
Aas
=
[[
$
for
j
,
[[
A
$
j
a
$
j
]]]]
$
var
ms
=
[[
$
for
j
,
[[
m
$
j
]]]]
$
var
ms
=
[[
$
for
j
,
[[
m
$
j
]]]]
$
var
matchers
=
[[
$
for
j
,
[[
const
Matcher
<
A
$
j
>&
m
$
j
]]]]
$
var
matchers
=
[[
$
for
j
,
[[
const
Matcher
<
A
$
j
>&
m
$
j
]]]]
...
@@ -184,7 +186,7 @@ $for i [[
...
@@ -184,7 +186,7 @@ $for i [[
$
range
j
1.
.
i
$
range
j
1.
.
i
$
var
arg_as
=
[[
$
for
j
,
[[
GMOCK_ARG_
(
tn
,
$
j
,
__VA_ARGS__
)
gmock_a
$
j
]]]]
$
var
arg_as
=
[[
$
for
j
,
[[
GMOCK_ARG_
(
tn
,
$
j
,
__VA_ARGS__
)
gmock_a
$
j
]]]]
$
var
as
=
[[
$
for
j
,
\
$
var
as
=
[[
$
for
j
,
\
[[
::
testing
::
internal
::
forward
<
GMOCK_ARG_
(
tn
,
$
j
,
__VA_ARGS__
)
>
(
gmock_a
$
j
)]]]]
[[
::
std
::
forward
<
GMOCK_ARG_
(
tn
,
$
j
,
__VA_ARGS__
)
>
(
gmock_a
$
j
)]]]]
$
var
matcher_arg_as
=
[[
$
for
j
,
\
$
var
matcher_arg_as
=
[[
$
for
j
,
\
[[
GMOCK_MATCHER_
(
tn
,
$
j
,
__VA_ARGS__
)
gmock_a
$
j
]]]]
[[
GMOCK_MATCHER_
(
tn
,
$
j
,
__VA_ARGS__
)
gmock_a
$
j
]]]]
$
var
matcher_as
=
[[
$
for
j
,
[[
gmock_a
$
j
]]]]
$
var
matcher_as
=
[[
$
for
j
,
[[
gmock_a
$
j
]]]]
...
...
googlemock/include/gmock/gmock-generated-matchers.h
View file @
29b47e45
...
@@ -43,6 +43,7 @@
...
@@ -43,6 +43,7 @@
#include <iterator>
#include <iterator>
#include <sstream>
#include <sstream>
#include <string>
#include <string>
#include <utility>
#include <vector>
#include <vector>
#include "gmock/gmock-matchers.h"
#include "gmock/gmock-matchers.h"
...
@@ -380,7 +381,6 @@ Args(const InnerMatcher& matcher) {
...
@@ -380,7 +381,6 @@ Args(const InnerMatcher& matcher) {
}
}
}
// namespace testing
}
// namespace testing
...
@@ -657,7 +657,7 @@ Args(const InnerMatcher& matcher) {
...
@@ -657,7 +657,7 @@ Args(const InnerMatcher& matcher) {
GTEST_REFERENCE_TO_CONST_(arg_type)> {\
GTEST_REFERENCE_TO_CONST_(arg_type)> {\
public:\
public:\
explicit gmock_Impl(p0##_type gmock_p0)\
explicit gmock_Impl(p0##_type gmock_p0)\
: p0(::
testing::internal
::move(gmock_p0)) {}\
: p0(::
std
::move(gmock_p0)) {}\
virtual bool MatchAndExplain(\
virtual bool MatchAndExplain(\
GTEST_REFERENCE_TO_CONST_(arg_type) arg,\
GTEST_REFERENCE_TO_CONST_(arg_type) arg,\
::testing::MatchResultListener* result_listener) const;\
::testing::MatchResultListener* result_listener) const;\
...
@@ -685,8 +685,7 @@ Args(const InnerMatcher& matcher) {
...
@@ -685,8 +685,7 @@ Args(const InnerMatcher& matcher) {
return ::testing::Matcher<arg_type>(\
return ::testing::Matcher<arg_type>(\
new gmock_Impl<arg_type>(p0));\
new gmock_Impl<arg_type>(p0));\
}\
}\
explicit name##MatcherP(p0##_type gmock_p0) : \
explicit name##MatcherP(p0##_type gmock_p0) : p0(::std::move(gmock_p0)) {\
p0(::testing::internal::move(gmock_p0)) {\
}\
}\
p0##_type const p0;\
p0##_type const p0;\
private:\
private:\
...
@@ -711,8 +710,7 @@ Args(const InnerMatcher& matcher) {
...
@@ -711,8 +710,7 @@ Args(const InnerMatcher& matcher) {
GTEST_REFERENCE_TO_CONST_(arg_type)> {\
GTEST_REFERENCE_TO_CONST_(arg_type)> {\
public:\
public:\
gmock_Impl(p0##_type gmock_p0, p1##_type gmock_p1)\
gmock_Impl(p0##_type gmock_p0, p1##_type gmock_p1)\
: p0(::testing::internal::move(gmock_p0)), \
: p0(::std::move(gmock_p0)), p1(::std::move(gmock_p1)) {}\
p1(::testing::internal::move(gmock_p1)) {}\
virtual bool MatchAndExplain(\
virtual bool MatchAndExplain(\
GTEST_REFERENCE_TO_CONST_(arg_type) arg,\
GTEST_REFERENCE_TO_CONST_(arg_type) arg,\
::testing::MatchResultListener* result_listener) const;\
::testing::MatchResultListener* result_listener) const;\
...
@@ -742,8 +740,8 @@ Args(const InnerMatcher& matcher) {
...
@@ -742,8 +740,8 @@ Args(const InnerMatcher& matcher) {
new gmock_Impl<arg_type>(p0, p1));\
new gmock_Impl<arg_type>(p0, p1));\
}\
}\
name##MatcherP2(p0##_type gmock_p0, \
name##MatcherP2(p0##_type gmock_p0, \
p1##_type gmock_p1) : p0(::
testing::internal
::move(gmock_p0)), \
p1##_type gmock_p1) : p0(::
std
::move(gmock_p0)), \
p1(::
testing::internal
::move(gmock_p1)) {\
p1(::
std
::move(gmock_p1)) {\
}\
}\
p0##_type const p0;\
p0##_type const p0;\
p1##_type const p1;\
p1##_type const p1;\
...
@@ -771,9 +769,8 @@ Args(const InnerMatcher& matcher) {
...
@@ -771,9 +769,8 @@ Args(const InnerMatcher& matcher) {
GTEST_REFERENCE_TO_CONST_(arg_type)> {\
GTEST_REFERENCE_TO_CONST_(arg_type)> {\
public:\
public:\
gmock_Impl(p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2)\
gmock_Impl(p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2)\
: p0(::testing::internal::move(gmock_p0)), \
: p0(::std::move(gmock_p0)), p1(::std::move(gmock_p1)), \
p1(::testing::internal::move(gmock_p1)), \
p2(::std::move(gmock_p2)) {}\
p2(::testing::internal::move(gmock_p2)) {}\
virtual bool MatchAndExplain(\
virtual bool MatchAndExplain(\
GTEST_REFERENCE_TO_CONST_(arg_type) arg,\
GTEST_REFERENCE_TO_CONST_(arg_type) arg,\
::testing::MatchResultListener* result_listener) const;\
::testing::MatchResultListener* result_listener) const;\
...
@@ -804,9 +801,8 @@ Args(const InnerMatcher& matcher) {
...
@@ -804,9 +801,8 @@ Args(const InnerMatcher& matcher) {
new gmock_Impl<arg_type>(p0, p1, p2));\
new gmock_Impl<arg_type>(p0, p1, p2));\
}\
}\
name##MatcherP3(p0##_type gmock_p0, p1##_type gmock_p1, \
name##MatcherP3(p0##_type gmock_p0, p1##_type gmock_p1, \
p2##_type gmock_p2) : p0(::testing::internal::move(gmock_p0)), \
p2##_type gmock_p2) : p0(::std::move(gmock_p0)), \
p1(::testing::internal::move(gmock_p1)), \
p1(::std::move(gmock_p1)), p2(::std::move(gmock_p2)) {\
p2(::testing::internal::move(gmock_p2)) {\
}\
}\
p0##_type const p0;\
p0##_type const p0;\
p1##_type const p1;\
p1##_type const p1;\
...
@@ -837,10 +833,8 @@ Args(const InnerMatcher& matcher) {
...
@@ -837,10 +833,8 @@ Args(const InnerMatcher& matcher) {
public:\
public:\
gmock_Impl(p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2, \
gmock_Impl(p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2, \
p3##_type gmock_p3)\
p3##_type gmock_p3)\
: p0(::testing::internal::move(gmock_p0)), \
: p0(::std::move(gmock_p0)), p1(::std::move(gmock_p1)), \
p1(::testing::internal::move(gmock_p1)), \
p2(::std::move(gmock_p2)), p3(::std::move(gmock_p3)) {}\
p2(::testing::internal::move(gmock_p2)), \
p3(::testing::internal::move(gmock_p3)) {}\
virtual bool MatchAndExplain(\
virtual bool MatchAndExplain(\
GTEST_REFERENCE_TO_CONST_(arg_type) arg,\
GTEST_REFERENCE_TO_CONST_(arg_type) arg,\
::testing::MatchResultListener* result_listener) const;\
::testing::MatchResultListener* result_listener) const;\
...
@@ -873,11 +867,9 @@ Args(const InnerMatcher& matcher) {
...
@@ -873,11 +867,9 @@ Args(const InnerMatcher& matcher) {
new gmock_Impl<arg_type>(p0, p1, p2, p3));\
new gmock_Impl<arg_type>(p0, p1, p2, p3));\
}\
}\
name##MatcherP4(p0##_type gmock_p0, p1##_type gmock_p1, \
name##MatcherP4(p0##_type gmock_p0, p1##_type gmock_p1, \
p2##_type gmock_p2, \
p2##_type gmock_p2, p3##_type gmock_p3) : p0(::std::move(gmock_p0)), \
p3##_type gmock_p3) : p0(::testing::internal::move(gmock_p0)), \
p1(::std::move(gmock_p1)), p2(::std::move(gmock_p2)), \
p1(::testing::internal::move(gmock_p1)), \
p3(::std::move(gmock_p3)) {\
p2(::testing::internal::move(gmock_p2)), \
p3(::testing::internal::move(gmock_p3)) {\
}\
}\
p0##_type const p0;\
p0##_type const p0;\
p1##_type const p1;\
p1##_type const p1;\
...
@@ -913,11 +905,9 @@ Args(const InnerMatcher& matcher) {
...
@@ -913,11 +905,9 @@ Args(const InnerMatcher& matcher) {
public:\
public:\
gmock_Impl(p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2, \
gmock_Impl(p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2, \
p3##_type gmock_p3, p4##_type gmock_p4)\
p3##_type gmock_p3, p4##_type gmock_p4)\
: p0(::testing::internal::move(gmock_p0)), \
: p0(::std::move(gmock_p0)), p1(::std::move(gmock_p1)), \
p1(::testing::internal::move(gmock_p1)), \
p2(::std::move(gmock_p2)), p3(::std::move(gmock_p3)), \
p2(::testing::internal::move(gmock_p2)), \
p4(::std::move(gmock_p4)) {}\
p3(::testing::internal::move(gmock_p3)), \
p4(::testing::internal::move(gmock_p4)) {}\
virtual bool MatchAndExplain(\
virtual bool MatchAndExplain(\
GTEST_REFERENCE_TO_CONST_(arg_type) arg,\
GTEST_REFERENCE_TO_CONST_(arg_type) arg,\
::testing::MatchResultListener* result_listener) const;\
::testing::MatchResultListener* result_listener) const;\
...
@@ -952,11 +942,9 @@ Args(const InnerMatcher& matcher) {
...
@@ -952,11 +942,9 @@ Args(const InnerMatcher& matcher) {
}\
}\
name##MatcherP5(p0##_type gmock_p0, p1##_type gmock_p1, \
name##MatcherP5(p0##_type gmock_p0, p1##_type gmock_p1, \
p2##_type gmock_p2, p3##_type gmock_p3, \
p2##_type gmock_p2, p3##_type gmock_p3, \
p4##_type gmock_p4) : p0(::testing::internal::move(gmock_p0)), \
p4##_type gmock_p4) : p0(::std::move(gmock_p0)), \
p1(::testing::internal::move(gmock_p1)), \
p1(::std::move(gmock_p1)), p2(::std::move(gmock_p2)), \
p2(::testing::internal::move(gmock_p2)), \
p3(::std::move(gmock_p3)), p4(::std::move(gmock_p4)) {\
p3(::testing::internal::move(gmock_p3)), \
p4(::testing::internal::move(gmock_p4)) {\
}\
}\
p0##_type const p0;\
p0##_type const p0;\
p1##_type const p1;\
p1##_type const p1;\
...
@@ -993,12 +981,9 @@ Args(const InnerMatcher& matcher) {
...
@@ -993,12 +981,9 @@ Args(const InnerMatcher& matcher) {
public:\
public:\
gmock_Impl(p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2, \
gmock_Impl(p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2, \
p3##_type gmock_p3, p4##_type gmock_p4, p5##_type gmock_p5)\
p3##_type gmock_p3, p4##_type gmock_p4, p5##_type gmock_p5)\
: p0(::testing::internal::move(gmock_p0)), \
: p0(::std::move(gmock_p0)), p1(::std::move(gmock_p1)), \
p1(::testing::internal::move(gmock_p1)), \
p2(::std::move(gmock_p2)), p3(::std::move(gmock_p3)), \
p2(::testing::internal::move(gmock_p2)), \
p4(::std::move(gmock_p4)), p5(::std::move(gmock_p5)) {}\
p3(::testing::internal::move(gmock_p3)), \
p4(::testing::internal::move(gmock_p4)), \
p5(::testing::internal::move(gmock_p5)) {}\
virtual bool MatchAndExplain(\
virtual bool MatchAndExplain(\
GTEST_REFERENCE_TO_CONST_(arg_type) arg,\
GTEST_REFERENCE_TO_CONST_(arg_type) arg,\
::testing::MatchResultListener* result_listener) const;\
::testing::MatchResultListener* result_listener) const;\
...
@@ -1034,12 +1019,10 @@ Args(const InnerMatcher& matcher) {
...
@@ -1034,12 +1019,10 @@ Args(const InnerMatcher& matcher) {
}\
}\
name##MatcherP6(p0##_type gmock_p0, p1##_type gmock_p1, \
name##MatcherP6(p0##_type gmock_p0, p1##_type gmock_p1, \
p2##_type gmock_p2, p3##_type gmock_p3, p4##_type gmock_p4, \
p2##_type gmock_p2, p3##_type gmock_p3, p4##_type gmock_p4, \
p5##_type gmock_p5) : p0(::testing::internal::move(gmock_p0)), \
p5##_type gmock_p5) : p0(::std::move(gmock_p0)), \
p1(::testing::internal::move(gmock_p1)), \
p1(::std::move(gmock_p1)), p2(::std::move(gmock_p2)), \
p2(::testing::internal::move(gmock_p2)), \
p3(::std::move(gmock_p3)), p4(::std::move(gmock_p4)), \
p3(::testing::internal::move(gmock_p3)), \
p5(::std::move(gmock_p5)) {\
p4(::testing::internal::move(gmock_p4)), \
p5(::testing::internal::move(gmock_p5)) {\
}\
}\
p0##_type const p0;\
p0##_type const p0;\
p1##_type const p1;\
p1##_type const p1;\
...
@@ -1079,13 +1062,10 @@ Args(const InnerMatcher& matcher) {
...
@@ -1079,13 +1062,10 @@ Args(const InnerMatcher& matcher) {
gmock_Impl(p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2, \
gmock_Impl(p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2, \
p3##_type gmock_p3, p4##_type gmock_p4, p5##_type gmock_p5, \
p3##_type gmock_p3, p4##_type gmock_p4, p5##_type gmock_p5, \
p6##_type gmock_p6)\
p6##_type gmock_p6)\
: p0(::testing::internal::move(gmock_p0)), \
: p0(::std::move(gmock_p0)), p1(::std::move(gmock_p1)), \
p1(::testing::internal::move(gmock_p1)), \
p2(::std::move(gmock_p2)), p3(::std::move(gmock_p3)), \
p2(::testing::internal::move(gmock_p2)), \
p4(::std::move(gmock_p4)), p5(::std::move(gmock_p5)), \
p3(::testing::internal::move(gmock_p3)), \
p6(::std::move(gmock_p6)) {}\
p4(::testing::internal::move(gmock_p4)), \
p5(::testing::internal::move(gmock_p5)), \
p6(::testing::internal::move(gmock_p6)) {}\
virtual bool MatchAndExplain(\
virtual bool MatchAndExplain(\
GTEST_REFERENCE_TO_CONST_(arg_type) arg,\
GTEST_REFERENCE_TO_CONST_(arg_type) arg,\
::testing::MatchResultListener* result_listener) const;\
::testing::MatchResultListener* result_listener) const;\
...
@@ -1123,14 +1103,10 @@ Args(const InnerMatcher& matcher) {
...
@@ -1123,14 +1103,10 @@ Args(const InnerMatcher& matcher) {
}\
}\
name##MatcherP7(p0##_type gmock_p0, p1##_type gmock_p1, \
name##MatcherP7(p0##_type gmock_p0, p1##_type gmock_p1, \
p2##_type gmock_p2, p3##_type gmock_p3, p4##_type gmock_p4, \
p2##_type gmock_p2, p3##_type gmock_p3, p4##_type gmock_p4, \
p5##_type gmock_p5, \
p5##_type gmock_p5, p6##_type gmock_p6) : p0(::std::move(gmock_p0)), \
p6##_type gmock_p6) : p0(::testing::internal::move(gmock_p0)), \
p1(::std::move(gmock_p1)), p2(::std::move(gmock_p2)), \
p1(::testing::internal::move(gmock_p1)), \
p3(::std::move(gmock_p3)), p4(::std::move(gmock_p4)), \
p2(::testing::internal::move(gmock_p2)), \
p5(::std::move(gmock_p5)), p6(::std::move(gmock_p6)) {\
p3(::testing::internal::move(gmock_p3)), \
p4(::testing::internal::move(gmock_p4)), \
p5(::testing::internal::move(gmock_p5)), \
p6(::testing::internal::move(gmock_p6)) {\
}\
}\
p0##_type const p0;\
p0##_type const p0;\
p1##_type const p1;\
p1##_type const p1;\
...
@@ -1174,14 +1150,10 @@ Args(const InnerMatcher& matcher) {
...
@@ -1174,14 +1150,10 @@ Args(const InnerMatcher& matcher) {
gmock_Impl(p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2, \
gmock_Impl(p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2, \
p3##_type gmock_p3, p4##_type gmock_p4, p5##_type gmock_p5, \
p3##_type gmock_p3, p4##_type gmock_p4, p5##_type gmock_p5, \
p6##_type gmock_p6, p7##_type gmock_p7)\
p6##_type gmock_p6, p7##_type gmock_p7)\
: p0(::testing::internal::move(gmock_p0)), \
: p0(::std::move(gmock_p0)), p1(::std::move(gmock_p1)), \
p1(::testing::internal::move(gmock_p1)), \
p2(::std::move(gmock_p2)), p3(::std::move(gmock_p3)), \
p2(::testing::internal::move(gmock_p2)), \
p4(::std::move(gmock_p4)), p5(::std::move(gmock_p5)), \
p3(::testing::internal::move(gmock_p3)), \
p6(::std::move(gmock_p6)), p7(::std::move(gmock_p7)) {}\
p4(::testing::internal::move(gmock_p4)), \
p5(::testing::internal::move(gmock_p5)), \
p6(::testing::internal::move(gmock_p6)), \
p7(::testing::internal::move(gmock_p7)) {}\
virtual bool MatchAndExplain(\
virtual bool MatchAndExplain(\
GTEST_REFERENCE_TO_CONST_(arg_type) arg,\
GTEST_REFERENCE_TO_CONST_(arg_type) arg,\
::testing::MatchResultListener* result_listener) const;\
::testing::MatchResultListener* result_listener) const;\
...
@@ -1221,14 +1193,11 @@ Args(const InnerMatcher& matcher) {
...
@@ -1221,14 +1193,11 @@ Args(const InnerMatcher& matcher) {
name##MatcherP8(p0##_type gmock_p0, p1##_type gmock_p1, \
name##MatcherP8(p0##_type gmock_p0, p1##_type gmock_p1, \
p2##_type gmock_p2, p3##_type gmock_p3, p4##_type gmock_p4, \
p2##_type gmock_p2, p3##_type gmock_p3, p4##_type gmock_p4, \
p5##_type gmock_p5, p6##_type gmock_p6, \
p5##_type gmock_p5, p6##_type gmock_p6, \
p7##_type gmock_p7) : p0(::testing::internal::move(gmock_p0)), \
p7##_type gmock_p7) : p0(::std::move(gmock_p0)), \
p1(::testing::internal::move(gmock_p1)), \
p1(::std::move(gmock_p1)), p2(::std::move(gmock_p2)), \
p2(::testing::internal::move(gmock_p2)), \
p3(::std::move(gmock_p3)), p4(::std::move(gmock_p4)), \
p3(::testing::internal::move(gmock_p3)), \
p5(::std::move(gmock_p5)), p6(::std::move(gmock_p6)), \
p4(::testing::internal::move(gmock_p4)), \
p7(::std::move(gmock_p7)) {\
p5(::testing::internal::move(gmock_p5)), \
p6(::testing::internal::move(gmock_p6)), \
p7(::testing::internal::move(gmock_p7)) {\
}\
}\
p0##_type const p0;\
p0##_type const p0;\
p1##_type const p1;\
p1##_type const p1;\
...
@@ -1275,15 +1244,11 @@ Args(const InnerMatcher& matcher) {
...
@@ -1275,15 +1244,11 @@ Args(const InnerMatcher& matcher) {
gmock_Impl(p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2, \
gmock_Impl(p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2, \
p3##_type gmock_p3, p4##_type gmock_p4, p5##_type gmock_p5, \
p3##_type gmock_p3, p4##_type gmock_p4, p5##_type gmock_p5, \
p6##_type gmock_p6, p7##_type gmock_p7, p8##_type gmock_p8)\
p6##_type gmock_p6, p7##_type gmock_p7, p8##_type gmock_p8)\
: p0(::testing::internal::move(gmock_p0)), \
: p0(::std::move(gmock_p0)), p1(::std::move(gmock_p1)), \
p1(::testing::internal::move(gmock_p1)), \
p2(::std::move(gmock_p2)), p3(::std::move(gmock_p3)), \
p2(::testing::internal::move(gmock_p2)), \
p4(::std::move(gmock_p4)), p5(::std::move(gmock_p5)), \
p3(::testing::internal::move(gmock_p3)), \
p6(::std::move(gmock_p6)), p7(::std::move(gmock_p7)), \
p4(::testing::internal::move(gmock_p4)), \
p8(::std::move(gmock_p8)) {}\
p5(::testing::internal::move(gmock_p5)), \
p6(::testing::internal::move(gmock_p6)), \
p7(::testing::internal::move(gmock_p7)), \
p8(::testing::internal::move(gmock_p8)) {}\
virtual bool MatchAndExplain(\
virtual bool MatchAndExplain(\
GTEST_REFERENCE_TO_CONST_(arg_type) arg,\
GTEST_REFERENCE_TO_CONST_(arg_type) arg,\
::testing::MatchResultListener* result_listener) const;\
::testing::MatchResultListener* result_listener) const;\
...
@@ -1324,15 +1289,11 @@ Args(const InnerMatcher& matcher) {
...
@@ -1324,15 +1289,11 @@ Args(const InnerMatcher& matcher) {
name##MatcherP9(p0##_type gmock_p0, p1##_type gmock_p1, \
name##MatcherP9(p0##_type gmock_p0, p1##_type gmock_p1, \
p2##_type gmock_p2, p3##_type gmock_p3, p4##_type gmock_p4, \
p2##_type gmock_p2, p3##_type gmock_p3, p4##_type gmock_p4, \
p5##_type gmock_p5, p6##_type gmock_p6, p7##_type gmock_p7, \
p5##_type gmock_p5, p6##_type gmock_p6, p7##_type gmock_p7, \
p8##_type gmock_p8) : p0(::testing::internal::move(gmock_p0)), \
p8##_type gmock_p8) : p0(::std::move(gmock_p0)), \
p1(::testing::internal::move(gmock_p1)), \
p1(::std::move(gmock_p1)), p2(::std::move(gmock_p2)), \
p2(::testing::internal::move(gmock_p2)), \
p3(::std::move(gmock_p3)), p4(::std::move(gmock_p4)), \
p3(::testing::internal::move(gmock_p3)), \
p5(::std::move(gmock_p5)), p6(::std::move(gmock_p6)), \
p4(::testing::internal::move(gmock_p4)), \
p7(::std::move(gmock_p7)), p8(::std::move(gmock_p8)) {\
p5(::testing::internal::move(gmock_p5)), \
p6(::testing::internal::move(gmock_p6)), \
p7(::testing::internal::move(gmock_p7)), \
p8(::testing::internal::move(gmock_p8)) {\
}\
}\
p0##_type const p0;\
p0##_type const p0;\
p1##_type const p1;\
p1##_type const p1;\
...
@@ -1383,16 +1344,11 @@ Args(const InnerMatcher& matcher) {
...
@@ -1383,16 +1344,11 @@ Args(const InnerMatcher& matcher) {
p3##_type gmock_p3, p4##_type gmock_p4, p5##_type gmock_p5, \
p3##_type gmock_p3, p4##_type gmock_p4, p5##_type gmock_p5, \
p6##_type gmock_p6, p7##_type gmock_p7, p8##_type gmock_p8, \
p6##_type gmock_p6, p7##_type gmock_p7, p8##_type gmock_p8, \
p9##_type gmock_p9)\
p9##_type gmock_p9)\
: p0(::testing::internal::move(gmock_p0)), \
: p0(::std::move(gmock_p0)), p1(::std::move(gmock_p1)), \
p1(::testing::internal::move(gmock_p1)), \
p2(::std::move(gmock_p2)), p3(::std::move(gmock_p3)), \
p2(::testing::internal::move(gmock_p2)), \
p4(::std::move(gmock_p4)), p5(::std::move(gmock_p5)), \
p3(::testing::internal::move(gmock_p3)), \
p6(::std::move(gmock_p6)), p7(::std::move(gmock_p7)), \
p4(::testing::internal::move(gmock_p4)), \
p8(::std::move(gmock_p8)), p9(::std::move(gmock_p9)) {}\
p5(::testing::internal::move(gmock_p5)), \
p6(::testing::internal::move(gmock_p6)), \
p7(::testing::internal::move(gmock_p7)), \
p8(::testing::internal::move(gmock_p8)), \
p9(::testing::internal::move(gmock_p9)) {}\
virtual bool MatchAndExplain(\
virtual bool MatchAndExplain(\
GTEST_REFERENCE_TO_CONST_(arg_type) arg,\
GTEST_REFERENCE_TO_CONST_(arg_type) arg,\
::testing::MatchResultListener* result_listener) const;\
::testing::MatchResultListener* result_listener) const;\
...
@@ -1434,17 +1390,12 @@ Args(const InnerMatcher& matcher) {
...
@@ -1434,17 +1390,12 @@ Args(const InnerMatcher& matcher) {
name##MatcherP10(p0##_type gmock_p0, p1##_type gmock_p1, \
name##MatcherP10(p0##_type gmock_p0, p1##_type gmock_p1, \
p2##_type gmock_p2, p3##_type gmock_p3, p4##_type gmock_p4, \
p2##_type gmock_p2, p3##_type gmock_p3, p4##_type gmock_p4, \
p5##_type gmock_p5, p6##_type gmock_p6, p7##_type gmock_p7, \
p5##_type gmock_p5, p6##_type gmock_p6, p7##_type gmock_p7, \
p8##_type gmock_p8, \
p8##_type gmock_p8, p9##_type gmock_p9) : p0(::std::move(gmock_p0)), \
p9##_type gmock_p9) : p0(::testing::internal::move(gmock_p0)), \
p1(::std::move(gmock_p1)), p2(::std::move(gmock_p2)), \
p1(::testing::internal::move(gmock_p1)), \
p3(::std::move(gmock_p3)), p4(::std::move(gmock_p4)), \
p2(::testing::internal::move(gmock_p2)), \
p5(::std::move(gmock_p5)), p6(::std::move(gmock_p6)), \
p3(::testing::internal::move(gmock_p3)), \
p7(::std::move(gmock_p7)), p8(::std::move(gmock_p8)), \
p4(::testing::internal::move(gmock_p4)), \
p9(::std::move(gmock_p9)) {\
p5(::testing::internal::move(gmock_p5)), \
p6(::testing::internal::move(gmock_p6)), \
p7(::testing::internal::move(gmock_p7)), \
p8(::testing::internal::move(gmock_p8)), \
p9(::testing::internal::move(gmock_p9)) {\
}\
}\
p0##_type const p0;\
p0##_type const p0;\
p1##_type const p1;\
p1##_type const p1;\
...
...
googlemock/include/gmock/gmock-generated-matchers.h.pump
View file @
29b47e45
...
@@ -45,6 +45,7 @@ $$ }} This line fixes auto-indentation of the following code in Emacs.
...
@@ -45,6 +45,7 @@ $$ }} This line fixes auto-indentation of the following code in Emacs.
#include <iterator>
#include <iterator>
#include <sstream>
#include <sstream>
#include <string>
#include <string>
#include <utility>
#include <vector>
#include <vector>
#include "gmock/gmock-matchers.h"
#include "gmock/gmock-matchers.h"
...
@@ -442,8 +443,8 @@ $var template = [[$if i==0 [[]] $else [[
...
@@ -442,8 +443,8 @@ $var template = [[$if i==0 [[]] $else [[
]]]]
]]]]
$
var
ctor_param_list
=
[[
$
for
j
,
[[
p
$
j
##
_type
gmock_p
$
j
]]]]
$
var
ctor_param_list
=
[[
$
for
j
,
[[
p
$
j
##
_type
gmock_p
$
j
]]]]
$
var
impl_ctor_param_list
=
[[
$
for
j
,
[[
p
$
j
##
_type
gmock_p
$
j
]]]]
$
var
impl_ctor_param_list
=
[[
$
for
j
,
[[
p
$
j
##
_type
gmock_p
$
j
]]]]
$
var
impl_inits
=
[[
$
if
i
==
0
[[]]
$
else
[[
:
$
for
j
,
[[
p
$
j
(
::
testing
::
internal
::
move
(
gmock_p
$
j
))]]]]]]
$
var
impl_inits
=
[[
$
if
i
==
0
[[]]
$
else
[[
:
$
for
j
,
[[
p
$
j
(
::
std
::
move
(
gmock_p
$
j
))]]]]]]
$
var
inits
=
[[
$
if
i
==
0
[[]]
$
else
[[
:
$
for
j
,
[[
p
$
j
(
::
testing
::
internal
::
move
(
gmock_p
$
j
))]]]]]]
$
var
inits
=
[[
$
if
i
==
0
[[]]
$
else
[[
:
$
for
j
,
[[
p
$
j
(
::
std
::
move
(
gmock_p
$
j
))]]]]]]
$
var
params
=
[[
$
for
j
,
[[
p
$
j
]]]]
$
var
params
=
[[
$
for
j
,
[[
p
$
j
]]]]
$
var
param_types
=
[[
$
if
i
==
0
[[]]
$
else
[[
<
$
for
j
,
[[
p
$
j
##
_type
]]
>
]]]]
$
var
param_types
=
[[
$
if
i
==
0
[[]]
$
else
[[
<
$
for
j
,
[[
p
$
j
##
_type
]]
>
]]]]
$
var
param_types_and_names
=
[[
$
for
j
,
[[
p
$
j
##
_type
p
$
j
]]]]
$
var
param_types_and_names
=
[[
$
for
j
,
[[
p
$
j
##
_type
p
$
j
]]]]
...
...
googlemock/include/gmock/gmock-matchers.h
View file @
29b47e45
...
@@ -1717,7 +1717,7 @@ class AllOfMatcherImpl
...
@@ -1717,7 +1717,7 @@ class AllOfMatcherImpl
:
public
MatcherInterface
<
GTEST_REFERENCE_TO_CONST_
(
T
)
>
{
:
public
MatcherInterface
<
GTEST_REFERENCE_TO_CONST_
(
T
)
>
{
public
:
public
:
explicit
AllOfMatcherImpl
(
std
::
vector
<
Matcher
<
T
>
>
matchers
)
explicit
AllOfMatcherImpl
(
std
::
vector
<
Matcher
<
T
>
>
matchers
)
:
matchers_
(
internal
::
move
(
matchers
))
{}
:
matchers_
(
std
::
move
(
matchers
))
{}
virtual
void
DescribeTo
(
::
std
::
ostream
*
os
)
const
{
virtual
void
DescribeTo
(
::
std
::
ostream
*
os
)
const
{
*
os
<<
"("
;
*
os
<<
"("
;
...
@@ -1791,7 +1791,7 @@ class VariadicMatcher {
...
@@ -1791,7 +1791,7 @@ class VariadicMatcher {
operator
Matcher
<
T
>
()
const
{
operator
Matcher
<
T
>
()
const
{
std
::
vector
<
Matcher
<
T
>
>
values
;
std
::
vector
<
Matcher
<
T
>
>
values
;
CreateVariadicMatcher
<
T
>
(
&
values
,
std
::
integral_constant
<
size_t
,
0
>
());
CreateVariadicMatcher
<
T
>
(
&
values
,
std
::
integral_constant
<
size_t
,
0
>
());
return
Matcher
<
T
>
(
new
CombiningMatcher
<
T
>
(
internal
::
move
(
values
)));
return
Matcher
<
T
>
(
new
CombiningMatcher
<
T
>
(
std
::
move
(
values
)));
}
}
private
:
private
:
...
@@ -1824,7 +1824,7 @@ class AnyOfMatcherImpl
...
@@ -1824,7 +1824,7 @@ class AnyOfMatcherImpl
:
public
MatcherInterface
<
GTEST_REFERENCE_TO_CONST_
(
T
)
>
{
:
public
MatcherInterface
<
GTEST_REFERENCE_TO_CONST_
(
T
)
>
{
public
:
public
:
explicit
AnyOfMatcherImpl
(
std
::
vector
<
Matcher
<
T
>
>
matchers
)
explicit
AnyOfMatcherImpl
(
std
::
vector
<
Matcher
<
T
>
>
matchers
)
:
matchers_
(
internal
::
move
(
matchers
))
{}
:
matchers_
(
std
::
move
(
matchers
))
{}
virtual
void
DescribeTo
(
::
std
::
ostream
*
os
)
const
{
virtual
void
DescribeTo
(
::
std
::
ostream
*
os
)
const
{
*
os
<<
"("
;
*
os
<<
"("
;
...
@@ -1965,7 +1965,7 @@ class MatcherAsPredicate {
...
@@ -1965,7 +1965,7 @@ class MatcherAsPredicate {
template
<
typename
M
>
template
<
typename
M
>
class
PredicateFormatterFromMatcher
{
class
PredicateFormatterFromMatcher
{
public
:
public
:
explicit
PredicateFormatterFromMatcher
(
M
m
)
:
matcher_
(
internal
::
move
(
m
))
{}
explicit
PredicateFormatterFromMatcher
(
M
m
)
:
matcher_
(
std
::
move
(
m
))
{}
// This template () operator allows a PredicateFormatterFromMatcher
// This template () operator allows a PredicateFormatterFromMatcher
// object to act as a predicate-formatter suitable for using with
// object to act as a predicate-formatter suitable for using with
...
@@ -2009,7 +2009,7 @@ class PredicateFormatterFromMatcher {
...
@@ -2009,7 +2009,7 @@ class PredicateFormatterFromMatcher {
template
<
typename
M
>
template
<
typename
M
>
inline
PredicateFormatterFromMatcher
<
M
>
inline
PredicateFormatterFromMatcher
<
M
>
MakePredicateFormatterFromMatcher
(
M
matcher
)
{
MakePredicateFormatterFromMatcher
(
M
matcher
)
{
return
PredicateFormatterFromMatcher
<
M
>
(
internal
::
move
(
matcher
));
return
PredicateFormatterFromMatcher
<
M
>
(
std
::
move
(
matcher
));
}
}
// Implements the polymorphic floating point equality matcher, which matches
// Implements the polymorphic floating point equality matcher, which matches
...
@@ -2569,7 +2569,7 @@ template <typename Callable, typename InnerMatcher>
...
@@ -2569,7 +2569,7 @@ template <typename Callable, typename InnerMatcher>
class
ResultOfMatcher
{
class
ResultOfMatcher
{
public
:
public
:
ResultOfMatcher
(
Callable
callable
,
InnerMatcher
matcher
)
ResultOfMatcher
(
Callable
callable
,
InnerMatcher
matcher
)
:
callable_
(
internal
::
move
(
callable
)),
matcher_
(
internal
::
move
(
matcher
))
{
:
callable_
(
std
::
move
(
callable
)),
matcher_
(
std
::
move
(
matcher
))
{
CallableTraits
<
Callable
>::
CheckIsValid
(
callable_
);
CallableTraits
<
Callable
>::
CheckIsValid
(
callable_
);
}
}
...
@@ -4008,7 +4008,7 @@ template <typename T>
...
@@ -4008,7 +4008,7 @@ template <typename T>
class
VariantMatcher
{
class
VariantMatcher
{
public
:
public
:
explicit
VariantMatcher
(
::
testing
::
Matcher
<
const
T
&>
matcher
)
explicit
VariantMatcher
(
::
testing
::
Matcher
<
const
T
&>
matcher
)
:
matcher_
(
internal
::
move
(
matcher
))
{}
:
matcher_
(
std
::
move
(
matcher
))
{}
template
<
typename
Variant
>
template
<
typename
Variant
>
bool
MatchAndExplain
(
const
Variant
&
value
,
bool
MatchAndExplain
(
const
Variant
&
value
,
...
@@ -4504,7 +4504,7 @@ template <typename Callable, typename InnerMatcher>
...
@@ -4504,7 +4504,7 @@ template <typename Callable, typename InnerMatcher>
internal
::
ResultOfMatcher
<
Callable
,
InnerMatcher
>
ResultOf
(
internal
::
ResultOfMatcher
<
Callable
,
InnerMatcher
>
ResultOf
(
Callable
callable
,
InnerMatcher
matcher
)
{
Callable
callable
,
InnerMatcher
matcher
)
{
return
internal
::
ResultOfMatcher
<
Callable
,
InnerMatcher
>
(
return
internal
::
ResultOfMatcher
<
Callable
,
InnerMatcher
>
(
internal
::
move
(
callable
),
internal
::
move
(
matcher
));
std
::
move
(
callable
),
std
::
move
(
matcher
));
}
}
// String matchers.
// String matchers.
...
...
googlemock/include/gmock/gmock-spec-builders.h
View file @
29b47e45
...
@@ -65,6 +65,7 @@
...
@@ -65,6 +65,7 @@
#include <set>
#include <set>
#include <sstream>
#include <sstream>
#include <string>
#include <string>
#include <utility>
#include <vector>
#include <vector>
#include "gmock/gmock-actions.h"
#include "gmock/gmock-actions.h"
#include "gmock/gmock-cardinalities.h"
#include "gmock/gmock-cardinalities.h"
...
@@ -1320,13 +1321,13 @@ class ReferenceOrValueWrapper {
...
@@ -1320,13 +1321,13 @@ class ReferenceOrValueWrapper {
public
:
public
:
// Constructs a wrapper from the given value/reference.
// Constructs a wrapper from the given value/reference.
explicit
ReferenceOrValueWrapper
(
T
value
)
explicit
ReferenceOrValueWrapper
(
T
value
)
:
value_
(
::
testing
::
internal
::
move
(
value
))
{
:
value_
(
std
::
move
(
value
))
{
}
}
// Unwraps and returns the underlying value/reference, exactly as
// Unwraps and returns the underlying value/reference, exactly as
// originally passed. The behavior of calling this more than once on
// originally passed. The behavior of calling this more than once on
// the same object is unspecified.
// the same object is unspecified.
T
Unwrap
()
{
return
::
testing
::
internal
::
move
(
value_
);
}
T
Unwrap
()
{
return
std
::
move
(
value_
);
}
// Provides nondestructive access to the underlying value/reference.
// Provides nondestructive access to the underlying value/reference.
// Always returns a const reference (more precisely,
// Always returns a const reference (more precisely,
...
@@ -1401,27 +1402,26 @@ class ActionResultHolder : public UntypedActionResultHolderBase {
...
@@ -1401,27 +1402,26 @@ class ActionResultHolder : public UntypedActionResultHolderBase {
template
<
typename
F
>
template
<
typename
F
>
static
ActionResultHolder
*
PerformDefaultAction
(
static
ActionResultHolder
*
PerformDefaultAction
(
const
FunctionMockerBase
<
F
>*
func_mocker
,
const
FunctionMockerBase
<
F
>*
func_mocker
,
typename
RvalueRef
<
typename
Function
<
F
>::
ArgumentTuple
>::
type
args
,
typename
Function
<
F
>::
ArgumentTuple
&&
args
,
const
std
::
string
&
call_description
)
{
const
std
::
string
&
call_description
)
{
return
new
ActionResultHolder
(
Wrapper
(
func_mocker
->
PerformDefaultAction
(
return
new
ActionResultHolder
(
Wrapper
(
func_mocker
->
PerformDefaultAction
(
internal
::
move
(
args
),
call_description
)));
std
::
move
(
args
),
call_description
)));
}
}
// Performs the given action and returns the result in a new-ed
// Performs the given action and returns the result in a new-ed
// ActionResultHolder.
// ActionResultHolder.
template
<
typename
F
>
template
<
typename
F
>
static
ActionResultHolder
*
PerformAction
(
static
ActionResultHolder
*
PerformAction
(
const
Action
<
F
>&
action
,
const
Action
<
F
>&
action
,
typename
Function
<
F
>::
ArgumentTuple
&&
args
)
{
typename
RvalueRef
<
typename
Function
<
F
>::
ArgumentTuple
>::
type
args
)
{
return
new
ActionResultHolder
(
return
new
ActionResultHolder
(
Wrapper
(
action
.
Perform
(
internal
::
move
(
args
))));
Wrapper
(
action
.
Perform
(
std
::
move
(
args
))));
}
}
private
:
private
:
typedef
ReferenceOrValueWrapper
<
T
>
Wrapper
;
typedef
ReferenceOrValueWrapper
<
T
>
Wrapper
;
explicit
ActionResultHolder
(
Wrapper
result
)
explicit
ActionResultHolder
(
Wrapper
result
)
:
result_
(
::
testing
::
internal
::
move
(
result
))
{
:
result_
(
std
::
move
(
result
))
{
}
}
Wrapper
result_
;
Wrapper
result_
;
...
@@ -1442,9 +1442,9 @@ class ActionResultHolder<void> : public UntypedActionResultHolderBase {
...
@@ -1442,9 +1442,9 @@ class ActionResultHolder<void> : public UntypedActionResultHolderBase {
template
<
typename
F
>
template
<
typename
F
>
static
ActionResultHolder
*
PerformDefaultAction
(
static
ActionResultHolder
*
PerformDefaultAction
(
const
FunctionMockerBase
<
F
>*
func_mocker
,
const
FunctionMockerBase
<
F
>*
func_mocker
,
typename
RvalueRef
<
typename
Function
<
F
>::
ArgumentTuple
>::
type
args
,
typename
Function
<
F
>::
ArgumentTuple
&&
args
,
const
std
::
string
&
call_description
)
{
const
std
::
string
&
call_description
)
{
func_mocker
->
PerformDefaultAction
(
internal
::
move
(
args
),
call_description
);
func_mocker
->
PerformDefaultAction
(
std
::
move
(
args
),
call_description
);
return
new
ActionResultHolder
;
return
new
ActionResultHolder
;
}
}
...
@@ -1452,9 +1452,8 @@ class ActionResultHolder<void> : public UntypedActionResultHolderBase {
...
@@ -1452,9 +1452,8 @@ class ActionResultHolder<void> : public UntypedActionResultHolderBase {
// ActionResultHolder*.
// ActionResultHolder*.
template
<
typename
F
>
template
<
typename
F
>
static
ActionResultHolder
*
PerformAction
(
static
ActionResultHolder
*
PerformAction
(
const
Action
<
F
>&
action
,
const
Action
<
F
>&
action
,
typename
Function
<
F
>::
ArgumentTuple
&&
args
)
{
typename
RvalueRef
<
typename
Function
<
F
>::
ArgumentTuple
>::
type
args
)
{
action
.
Perform
(
std
::
move
(
args
));
action
.
Perform
(
internal
::
move
(
args
));
return
new
ActionResultHolder
;
return
new
ActionResultHolder
;
}
}
...
@@ -1509,13 +1508,12 @@ class FunctionMockerBase : public UntypedFunctionMockerBase {
...
@@ -1509,13 +1508,12 @@ class FunctionMockerBase : public UntypedFunctionMockerBase {
// mutable state of this object, and thus can be called concurrently
// mutable state of this object, and thus can be called concurrently
// without locking.
// without locking.
// L = *
// L = *
Result
PerformDefaultAction
(
Result
PerformDefaultAction
(
typename
Function
<
F
>::
ArgumentTuple
&&
args
,
typename
RvalueRef
<
typename
Function
<
F
>::
ArgumentTuple
>::
type
args
,
const
std
::
string
&
call_description
)
const
{
const
std
::
string
&
call_description
)
const
{
const
OnCallSpec
<
F
>*
const
spec
=
const
OnCallSpec
<
F
>*
const
spec
=
this
->
FindOnCallSpec
(
args
);
this
->
FindOnCallSpec
(
args
);
if
(
spec
!=
nullptr
)
{
if
(
spec
!=
nullptr
)
{
return
spec
->
GetAction
().
Perform
(
internal
::
move
(
args
));
return
spec
->
GetAction
().
Perform
(
std
::
move
(
args
));
}
}
const
std
::
string
message
=
const
std
::
string
message
=
call_description
+
call_description
+
...
@@ -1540,7 +1538,7 @@ class FunctionMockerBase : public UntypedFunctionMockerBase {
...
@@ -1540,7 +1538,7 @@ class FunctionMockerBase : public UntypedFunctionMockerBase {
void
*
untyped_args
,
// must point to an ArgumentTuple
void
*
untyped_args
,
// must point to an ArgumentTuple
const
std
::
string
&
call_description
)
const
{
const
std
::
string
&
call_description
)
const
{
ArgumentTuple
*
args
=
static_cast
<
ArgumentTuple
*>
(
untyped_args
);
ArgumentTuple
*
args
=
static_cast
<
ArgumentTuple
*>
(
untyped_args
);
return
ResultHolder
::
PerformDefaultAction
(
this
,
internal
::
move
(
*
args
),
return
ResultHolder
::
PerformDefaultAction
(
this
,
std
::
move
(
*
args
),
call_description
);
call_description
);
}
}
...
@@ -1554,7 +1552,7 @@ class FunctionMockerBase : public UntypedFunctionMockerBase {
...
@@ -1554,7 +1552,7 @@ class FunctionMockerBase : public UntypedFunctionMockerBase {
// action deletes the mock object (and thus deletes itself).
// action deletes the mock object (and thus deletes itself).
const
Action
<
F
>
action
=
*
static_cast
<
const
Action
<
F
>*>
(
untyped_action
);
const
Action
<
F
>
action
=
*
static_cast
<
const
Action
<
F
>*>
(
untyped_action
);
ArgumentTuple
*
args
=
static_cast
<
ArgumentTuple
*>
(
untyped_args
);
ArgumentTuple
*
args
=
static_cast
<
ArgumentTuple
*>
(
untyped_args
);
return
ResultHolder
::
PerformAction
(
action
,
internal
::
move
(
*
args
));
return
ResultHolder
::
PerformAction
(
action
,
std
::
move
(
*
args
));
}
}
// Implements UntypedFunctionMockerBase::ClearDefaultActionsLocked():
// Implements UntypedFunctionMockerBase::ClearDefaultActionsLocked():
...
@@ -1594,8 +1592,7 @@ class FunctionMockerBase : public UntypedFunctionMockerBase {
...
@@ -1594,8 +1592,7 @@ class FunctionMockerBase : public UntypedFunctionMockerBase {
// Returns the result of invoking this mock function with the given
// Returns the result of invoking this mock function with the given
// arguments. This function can be safely called from multiple
// arguments. This function can be safely called from multiple
// threads concurrently.
// threads concurrently.
Result
InvokeWith
(
Result
InvokeWith
(
typename
Function
<
F
>::
ArgumentTuple
&&
args
)
typename
RvalueRef
<
typename
Function
<
F
>::
ArgumentTuple
>::
type
args
)
GTEST_LOCK_EXCLUDED_
(
g_gmock_mutex
)
{
GTEST_LOCK_EXCLUDED_
(
g_gmock_mutex
)
{
// const_cast is required since in C++98 we still pass ArgumentTuple around
// const_cast is required since in C++98 we still pass ArgumentTuple around
// by const& instead of rvalue reference.
// by const& instead of rvalue reference.
...
...
googletest/include/gtest/internal/gtest-port.h
View file @
29b47e45
...
@@ -203,11 +203,6 @@
...
@@ -203,11 +203,6 @@
// GTEST_INTENTIONAL_CONST_COND_POP_ - finish code section where MSVC C4127
// GTEST_INTENTIONAL_CONST_COND_POP_ - finish code section where MSVC C4127
// is suppressed.
// is suppressed.
//
//
// C++11 feature wrappers:
//
// testing::internal::forward - portability wrapper for std::forward.
// testing::internal::move - portability wrapper for std::move.
//
// Synchronization:
// Synchronization:
// Mutex, MutexLock, ThreadLocal, GetThreadCount()
// Mutex, MutexLock, ThreadLocal, GetThreadCount()
// - synchronization primitives.
// - synchronization primitives.
...
@@ -1257,28 +1252,6 @@ struct ConstRef<T&> { typedef T& type; };
...
@@ -1257,28 +1252,6 @@ struct ConstRef<T&> { typedef T& type; };
#define GTEST_REFERENCE_TO_CONST_(T) \
#define GTEST_REFERENCE_TO_CONST_(T) \
typename ::testing::internal::ConstRef<T>::type
typename ::testing::internal::ConstRef<T>::type
#if GTEST_HAS_STD_MOVE_
using
std
::
forward
;
using
std
::
move
;
template
<
typename
T
>
struct
RvalueRef
{
typedef
T
&&
type
;
};
#else // GTEST_HAS_STD_MOVE_
template
<
typename
T
>
const
T
&
move
(
const
T
&
t
)
{
return
t
;
}
template
<
typename
T
>
GTEST_ADD_REFERENCE_
(
T
)
forward
(
GTEST_ADD_REFERENCE_
(
T
)
t
)
{
return
t
;
}
template
<
typename
T
>
struct
RvalueRef
{
typedef
const
T
&
type
;
};
#endif // GTEST_HAS_STD_MOVE_
// INTERNAL IMPLEMENTATION - DO NOT USE IN USER CODE.
// INTERNAL IMPLEMENTATION - DO NOT USE IN USER CODE.
//
//
// Use ImplicitCast_ as a safe version of static_cast for upcasting in
// Use ImplicitCast_ as a safe version of static_cast for upcasting in
...
...
googletest/include/gtest/internal/gtest-type-util.h.pump
View file @
29b47e45
...
@@ -87,7 +87,7 @@ std::string GetTypeName() {
...
@@ -87,7 +87,7 @@ std::string GetTypeName() {
# if GTEST_HAS_CXXABI_H_
# if GTEST_HAS_CXXABI_H_
using
abi
::
__cxa_demangle
;
using
abi
::
__cxa_demangle
;
# endif // GTEST_HAS_CXXABI_H_
# endif // GTEST_HAS_CXXABI_H_
char
*
const
readable_name
=
__cxa_demangle
(
name
,
0
,
0
,
&
status
);
char
*
const
readable_name
=
__cxa_demangle
(
name
,
nullptr
,
nullptr
,
&
status
);
const
std
::
string
name_str
(
status
==
0
?
readable_name
:
name
);
const
std
::
string
name_str
(
status
==
0
?
readable_name
:
name
);
free
(
readable_name
);
free
(
readable_name
);
return
CanonicalizeForStdLibVersioning
(
name_str
);
return
CanonicalizeForStdLibVersioning
(
name_str
);
...
...
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