42#include "gtest/gtest.h"
50using testing::make_tuple;
52using testing::tuple_element;
60using testing::ReturnNew;
67inline short Short(
short n) {
return n; }
68inline char Char(
char ch) {
return ch; }
80bool Unary(
int x) {
return x < 0; }
82const char*
Plus1(
const char*
s) {
return s + 1; }
95const char*
Binary(
const char* input,
short n) {
return input + n; }
99int Ternary(
int x,
char y,
short z) {
return x + y + z; }
105string Concat4(
const char* s1,
const char* s2,
const char* s3,
107 return string(s1) + s2 + s3 + s4;
110int SumOf5(
int a,
int b,
int c,
int d,
int e) {
return a +
b + c +
d + e; }
114 return a +
b + c +
d + e;
118string Concat5(
const char* s1,
const char* s2,
const char* s3,
119 const char* s4,
const char* s5) {
120 return string(s1) + s2 + s3 + s4 + s5;
124 return a +
b + c +
d + e + f;
129 return a +
b + c +
d + e + f;
133string Concat6(
const char* s1,
const char* s2,
const char* s3,
134 const char* s4,
const char* s5,
const char* s6) {
135 return string(s1) + s2 + s3 + s4 + s5 + s6;
138string Concat7(
const char* s1,
const char* s2,
const char* s3,
139 const char* s4,
const char* s5,
const char* s6,
141 return string(s1) + s2 + s3 + s4 + s5 + s6 + s7;
144string Concat8(
const char* s1,
const char* s2,
const char* s3,
145 const char* s4,
const char* s5,
const char* s6,
146 const char* s7,
const char* s8) {
147 return string(s1) + s2 + s3 + s4 + s5 + s6 + s7 + s8;
150string Concat9(
const char* s1,
const char* s2,
const char* s3,
151 const char* s4,
const char* s5,
const char* s6,
152 const char* s7,
const char* s8,
const char* s9) {
153 return string(s1) + s2 + s3 + s4 + s5 + s6 + s7 + s8 + s9;
156string Concat10(
const char* s1,
const char* s2,
const char* s3,
157 const char* s4,
const char* s5,
const char* s6,
158 const char* s7,
const char* s8,
const char* s9,
160 return string(s1) + s2 + s3 + s4 + s5 + s6 + s7 + s8 + s9 + s10;
170TEST(InvokeArgumentTest, Function0) {
171 Action<int(
int,
int(*)())>
a = InvokeArgument<1>();
176TEST(InvokeArgumentTest, Functor1) {
182TEST(InvokeArgumentTest, Function5) {
183 Action<int(
int(*)(
int,
int,
int,
int,
int))>
a =
184 InvokeArgument<0>(10000, 2000, 300, 40, 5);
189TEST(InvokeArgumentTest, Functor5) {
191 InvokeArgument<0>(10000, 2000, 300, 40, 5);
196TEST(InvokeArgumentTest, Function6) {
197 Action<int(
int(*)(
int,
int,
int,
int,
int,
int))>
a =
198 InvokeArgument<0>(100000, 20000, 3000, 400, 50, 6);
203TEST(InvokeArgumentTest, Functor6) {
205 InvokeArgument<0>(100000, 20000, 3000, 400, 50, 6);
210TEST(InvokeArgumentTest, Function7) {
211 Action<string(
string(*)(
const char*,
const char*,
const char*,
212 const char*,
const char*,
const char*,
214 InvokeArgument<0>(
"1",
"2",
"3",
"4",
"5",
"6",
"7");
219TEST(InvokeArgumentTest, Function8) {
220 Action<string(
string(*)(
const char*,
const char*,
const char*,
221 const char*,
const char*,
const char*,
222 const char*,
const char*))>
a =
223 InvokeArgument<0>(
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8");
228TEST(InvokeArgumentTest, Function9) {
229 Action<string(
string(*)(
const char*,
const char*,
const char*,
230 const char*,
const char*,
const char*,
231 const char*,
const char*,
const char*))>
a =
232 InvokeArgument<0>(
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9");
237TEST(InvokeArgumentTest, Function10) {
238 Action<string(
string(*)(
const char*,
const char*,
const char*,
239 const char*,
const char*,
const char*,
240 const char*,
const char*,
const char*,
242 InvokeArgument<0>(
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"0");
247TEST(InvokeArgumentTest, ByPointerFunction) {
248 Action<
const char*(
const char*(*)(
const char* input,
short n))>
a =
249 InvokeArgument<0>(
static_cast<const char*
>(
"Hi"),
Short(1));
255TEST(InvokeArgumentTest, FunctionWithCStringLiteral) {
256 Action<
const char*(
const char*(*)(
const char* input,
short n))>
a =
257 InvokeArgument<0>(
"Hi",
Short(1));
262TEST(InvokeArgumentTest, ByConstReferenceFunction) {
263 Action<bool(
bool(*function)(
const string&
s))>
a =
264 InvokeArgument<0>(
string(
"Hi"));
273TEST(InvokeArgumentTest, ByExplicitConstReferenceFunction) {
274 Action<bool(
bool(*)(
const double& x))>
a =
280 a = InvokeArgument<0>(
ByRef(x));
293 Action<
const char*(
const char*
s,
double x,
short n)>
a =
295 const char s[] =
"Hello";
301 Action<int(
int,
double,
char,
short)>
a =
308 Action<string(
const char*,
const char*,
double,
const char*,
const char*)>
a =
316 Action<string(
const char*,
const char*,
const char*,
317 const char*,
const char*)>
a =
326 Action<string(
const char*,
const char*,
const char*)>
a =
334 Action<string(
const char*,
const char*,
const char*,
const char*)>
a =
343 Action<string(
const char*,
const char*,
const char*,
const char*)>
a =
352 Action<string(
const char*,
const char*,
const char*,
const char*)>
a =
361 Action<string(
const char*,
const char*,
const char*,
const char*)>
a =
371 virtual int Perform(
const tuple<int, int>& args) {
376TEST(WithArgsTest, NonInvokeAction) {
377 Action<int(
const string&,
int,
int)>
a =
380 EXPECT_EQ(8,
a.Perform(tuple<const string&, int, int>(
s, 2, 10)));
385 Action<int(
int x,
char y,
short z)>
a =
391TEST(WithArgsTest, RepeatedArguments) {
392 Action<int(
bool,
int m,
int n)>
a =
394 EXPECT_EQ(4,
a.Perform(make_tuple(
false, 1, 10)));
398TEST(WithArgsTest, ReversedArgumentOrder) {
399 Action<
const char*(
short n,
const char* input)>
a =
401 const char s[] =
"Hello";
406TEST(WithArgsTest, ArgsOfCompatibleTypes) {
407 Action<long(
short x,
char y,
double z,
char c)>
a =
413TEST(WithArgsTest, VoidAction) {
416 a.Perform(make_tuple(1.5,
'a', 3));
444 Action<int(
int*,
int*,
char*)>
a =
449 EXPECT_EQ(3,
a.Perform(make_tuple(&m, &n, &ch)));
458 char a =
'\0',
b =
'\0';
475 char a =
'\0',
b =
'\0', c =
'\0';
494 char a =
'\0',
b =
'\0', c =
'\0',
d =
'\0';
495 Action<int(
int*,
int*,
char*,
char*,
char*,
char*)>
action =
515 char a =
'\0',
b =
'\0', c =
'\0',
d =
'\0', e =
'\0';
516 Action<int(
int*,
int*,
char*,
char*,
char*,
char*,
539 char a =
'\0',
b =
'\0', c =
'\0',
d =
'\0', e =
'\0', f =
'\0';
540 Action<int(
int*,
int*,
char*,
char*,
char*,
char*,
565 char a =
'\0',
b =
'\0', c =
'\0',
d =
'\0';
566 char e =
'\0', f =
'\0', g =
'\0';
567 Action<int(
int*,
int*,
char*,
char*,
char*,
char*,
568 char*,
char*,
char*)>
action =
597# pragma warning(push)
598# pragma warning(disable:4100)
607TEST(ActionMacroTest, WorksWhenNotReferencingArguments) {
608 Action<double()> a1 = Return5();
611 Action<int(
double,
bool)> a2 = Return5();
618TEST(ActionMacroTest, WorksWhenReturningVoid) {
619 Action<void(
int,
int*)> a1 = IncrementArg1();
629 arg2_type temp = arg2;
633TEST(ActionMacroTest, CanReferenceArgumentType) {
634 Action<void(
int,
bool,
int*)> a1 = IncrementArg2();
636 a1.
Perform(make_tuple(5,
false, &n));
644 args_type args_copy = args;
648TEST(ActionMacroTest, CanReferenceArgumentTuple) {
649 Action<int(
int,
char,
int*)> a1 = Sum2();
656int Dummy(
bool flag) {
return flag? 1 : 0; }
660 function_type* fp = &
Dummy;
664TEST(ActionMacroTest, CanReferenceMockFunctionType) {
665 Action<int(
bool)> a1 = InvokeDummy();
678TEST(ActionMacroTest, CanReferenceMockFunctionReturnType) {
679 Action<int(
bool)> a1 = InvokeDummy2();
685ACTION(ReturnAddrOfConstBoolReferenceArg) {
690TEST(ActionMacroTest, WorksForConstReferenceArg) {
691 Action<
const bool*(int,
const bool&)>
a = ReturnAddrOfConstBoolReferenceArg();
692 const bool b =
false;
693 EXPECT_EQ(&
b,
a.Perform(tuple<int, const bool&>(0,
b)));
702TEST(ActionMacroTest, WorksForNonConstReferenceArg) {
703 Action<
int*(
int&, bool, int)>
a = ReturnAddrOfIntReferenceArg();
705 EXPECT_EQ(&n,
a.Perform(tuple<int&, bool, int>(n,
true, 1)));
713TEST(ActionMacroTest, WorksInNamespace) {
714 Action<int(
int,
int)> a1 = action_test::Sum();
722TEST(ActionMacroTest, WorksForDifferentArgumentNumbers) {
723 Action<int(
int)> a1 = PlusTwo();
726 Action<double(
float,
void*)> a2 = PlusTwo();
734TEST(ActionPMacroTest, DefinesParameterizedAction) {
735 Action<int(
int m,
bool t)> a1 = Plus(9);
747TEST(ActionPMacroTest, CanReferenceArgumentAndParameterTypes) {
748 Action<int(
char m,
bool t)> a1 = TypedPlus(9);
754TEST(ActionPMacroTest, WorksInCompatibleMockFunction) {
755 Action<std::string(
const std::string&
s)> a1 = Plus(
"tail");
756 const std::string re =
"re";
763ACTION(OverloadedAction) {
return arg0 ? arg1 :
"hello"; }
766 return arg0 ? arg1 : default_value;
770 return arg0 ? true_value : false_value;
773TEST(ActionMacroTest, CanDefineOverloadedActions) {
774 typedef Action<
const char*(bool,
const char*)> MyAction;
776 const MyAction a1 = OverloadedAction();
780 const MyAction a2 = OverloadedAction(
"hi");
784 const MyAction a3 = OverloadedAction(
"hi",
"you");
793TEST(ActionPnMacroTest, WorksFor3Parameters) {
794 Action<double(
int m,
bool t)> a1 = Plus(100, 20, 3.4);
797 Action<std::string(
const std::string&
s)> a2 = Plus(
"tail",
"-",
">");
798 const std::string re =
"re";
802ACTION_P4(Plus, p0, p1, p2, p3) {
return arg0 + p0 + p1 + p2 + p3; }
804TEST(ActionPnMacroTest, WorksFor4Parameters) {
805 Action<int(
int)> a1 = Plus(1, 2, 3, 4);
809ACTION_P5(Plus, p0, p1, p2, p3, p4) {
return arg0 + p0 + p1 + p2 + p3 + p4; }
811TEST(ActionPnMacroTest, WorksFor5Parameters) {
812 Action<int(
int)> a1 = Plus(1, 2, 3, 4, 5);
817 return arg0 + p0 + p1 + p2 + p3 + p4 + p5;
820TEST(ActionPnMacroTest, WorksFor6Parameters) {
821 Action<int(
int)> a1 = Plus(1, 2, 3, 4, 5, 6);
826 return arg0 + p0 + p1 + p2 + p3 + p4 + p5 + p6;
829TEST(ActionPnMacroTest, WorksFor7Parameters) {
830 Action<int(
int)> a1 = Plus(1, 2, 3, 4, 5, 6, 7);
835 return arg0 + p0 + p1 + p2 + p3 + p4 + p5 + p6 + p7;
838TEST(ActionPnMacroTest, WorksFor8Parameters) {
839 Action<int(
int)> a1 = Plus(1, 2, 3, 4, 5, 6, 7, 8);
844 return arg0 + p0 + p1 + p2 + p3 + p4 + p5 + p6 + p7 + p8;
847TEST(ActionPnMacroTest, WorksFor9Parameters) {
848 Action<int(
int)> a1 = Plus(1, 2, 3, 4, 5, 6, 7, 8, 9);
849 EXPECT_EQ(10 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9, a1.
Perform(make_tuple(10)));
852ACTION_P10(Plus, p0, p1, p2, p3, p4, p5, p6, p7, p8, last_param) {
854 last_param_type t9 = last_param;
855 return t0 + p0 + p1 + p2 + p3 + p4 + p5 + p6 + p7 + p8 + t9;
858TEST(ActionPnMacroTest, WorksFor10Parameters) {
859 Action<int(
int)> a1 = Plus(1, 2, 3, 4, 5, 6, 7, 8, 9, 10);
860 EXPECT_EQ(10 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10,
868 std::string prefix_str(prefix);
869 char suffix_char =
static_cast<char>(suffix);
870 return prefix_str + arg0 + suffix_char;
873TEST(ActionPnMacroTest, SimpleTypePromotion) {
874 Action<std::string(
const char*)> no_promo =
875 PadArgument(std::string(
"foo"),
'r');
876 Action<std::string(
const char*)> promo =
877 PadArgument(
"foo",
static_cast<int>(
'r'));
888 std::stringstream ss;
898template <
typename T1,
typename T2>
902ConcatImplActionP3<std::string, T1, T2>
909 return ConcatImpl(
a,
b, c);
914 return ConcatImpl<std::string, T1, T2>(
a,
b, c);
920template <
typename T1,
typename T2>
921ConcatImplActionP3<T1, int, T2>
923 return ConcatImpl(
a,
b, c);
926TEST(ActionPnMacroTest, CanPartiallyRestrictParameterTypes) {
927 Action<
const std::string()> a1 =
Concat(
"Hello",
"1", 2);
940TEST(ActionPnMacroTest, TypesAreCorrect) {
942 DoFooAction a0 = DoFoo();
945 DoFooActionP<int> a1 = DoFoo(1);
949 DoFooActionP2<int, char> a2 = DoFoo(1,
'2');
950 PlusActionP3<int, int, char> a3 = Plus(1, 2,
'3');
951 PlusActionP4<int, int, int, char> a4 = Plus(1, 2, 3,
'4');
952 PlusActionP5<int, int, int, int, char> a5 = Plus(1, 2, 3, 4,
'5');
953 PlusActionP6<int, int, int, int, int, char> a6 = Plus(1, 2, 3, 4, 5,
'6');
954 PlusActionP7<int, int, int, int, int, int, char> a7 =
955 Plus(1, 2, 3, 4, 5, 6,
'7');
956 PlusActionP8<int, int, int, int, int, int, int, char> a8 =
957 Plus(1, 2, 3, 4, 5, 6, 7,
'8');
958 PlusActionP9<int, int, int, int, int, int, int, int, char> a9 =
959 Plus(1, 2, 3, 4, 5, 6, 7, 8,
'9');
960 PlusActionP10<int, int, int, int, int, int, int, int, int, char> a10 =
961 Plus(1, 2, 3, 4, 5, 6, 7, 8, 9,
'0');
983ACTION_P10(Plus10, a0, a1, a2, a3, a4, a5, a6, a7, a8, a9) {
984 return a0 + a1 + a2 + a3 + a4 + a5 + a6 + a7 + a8 + a9;
987TEST(ActionPnMacroTest, CanExplicitlyInstantiateWithReferenceTypes) {
988 int x = 1, y = 2, z = 3;
989 const tuple<> empty = make_tuple();
994 a = Plus2<const int&, int&>(x, y);
997 a = Plus3<int&, const int&, int&>(x, y, z);
1000 int n[10] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
1001 a = Plus10<
const int&,
int&,
const int&,
int&,
const int&,
int&,
const int&,
1002 int&,
const int&,
int&>(n[0], n[1], n[2], n[3], n[4], n[5], n[6], n[7],
1035TEST(ReturnNewTest, UnaryWorksWhenMockMethodHasArgs) {
1037 ReturnNew<UnaryConstructorClass>(4000);
1043TEST(ReturnNewTest, UnaryWorksWhenMockMethodReturnsPointerToConst) {
1045 ReturnNew<UnaryConstructorClass>(4000);
1054 int a6,
int a7,
int a8,
int a9,
int a10)
1055 :
value_(a1 + a2 + a3 + a4 + a5 + a6 + a7 + a8 + a9 + a10) {
1061TEST(ReturnNewTest, ConstructorThatTakes10Arguments) {
1063 ReturnNew<TenArgConstructorClass>(1000000000, 200000000, 30000000,
1064 4000000, 500000, 60000,
1073 HAS_1_TEMPLATE_PARAMS(
typename,
T),
1074 AND_0_VALUE_PARAMS()) {
1078TEST(ActionTemplateTest, WorksWithoutValueParam) {
1079 const Action<
int*()>
a = CreateNew<int>();
1080 int* p =
a.Perform(make_tuple());
1086 HAS_1_TEMPLATE_PARAMS(
typename,
T),
1087 AND_1_VALUE_PARAMS(a0)) {
1091TEST(ActionTemplateTest, WorksWithValueParams) {
1092 const Action<
int*()>
a = CreateNew<int>(42);
1093 int* p =
a.Perform(make_tuple());
1100 HAS_1_TEMPLATE_PARAMS(
int, k),
1101 AND_0_VALUE_PARAMS()) {
1114TEST(ActionTemplateTest, WorksForIntegralTemplateParams) {
1119 a.Perform(make_tuple(&n, resetter));
1125 HAS_1_TEMPLATE_PARAMS(template <typename Pointee>
class,
1127 AND_1_VALUE_PARAMS(pointee)) {
1131TEST(ActionTemplateTest, WorksForTemplateTemplateParameters) {
1139template <
typename T1,
typename T2,
typename T3,
int k4,
bool k5,
1140 unsigned int k6,
typename T7,
typename T8,
typename T9>
1148 HAS_10_TEMPLATE_PARAMS(
1158 template <typename T>
class, T10),
1159 AND_1_VALUE_PARAMS(
value)) {
1163TEST(ActionTemplateTest, WorksFor10TemplateParameters) {
1166 true, 6, char, unsigned,
int> Giant;
1167 const Action<Giant()>
a = ReturnGiant<
1168 int, bool, double, 5,
true, 6, char, unsigned, int,
linked_ptr>(42);
1169 Giant giant =
a.Perform(make_tuple());
1175 HAS_1_TEMPLATE_PARAMS(
typename, Number),
1176 AND_10_VALUE_PARAMS(
v1,
v2,
v3, v4, v5, v6, v7, v8, v9, v10)) {
1177 return static_cast<Number
>(
v1) +
v2 +
v3 + v4 + v5 + v6 + v7 + v8 + v9 + v10;
1180TEST(ActionTemplateTest, WorksFor10ValueParameters) {
1181 const Action<int()>
a = ReturnSum<int>(1, 2, 3, 4, 5, 6, 7, 8, 9, 10);
1193 HAS_1_TEMPLATE_PARAMS(
typename, Number),
1194 AND_2_VALUE_PARAMS(
v1,
v2)) {
1195 return static_cast<Number
>(
v1) +
v2;
1199 HAS_1_TEMPLATE_PARAMS(
typename, Number),
1200 AND_3_VALUE_PARAMS(
v1,
v2,
v3)) {
1201 return static_cast<Number
>(
v1) +
v2 +
v3;
1205 HAS_2_TEMPLATE_PARAMS(
typename, Number,
int, k),
1206 AND_4_VALUE_PARAMS(
v1,
v2,
v3, v4)) {
1207 return static_cast<Number
>(
v1) +
v2 +
v3 + v4 + k;
1210TEST(ActionTemplateTest, CanBeOverloadedOnNumberOfValueParameters) {
1211 const Action<int()> a0 = ReturnSum();
1212 const Action<int()> a1 = ReturnSum(1);
1213 const Action<int()> a2 = ReturnSum<int>(1, 2);
1214 const Action<int()> a3 = ReturnSum<int>(1, 2, 3);
1215 const Action<int()> a4 = ReturnSum<int, 10000>(2000, 300, 40, 5);
1224# pragma warning(pop)
#define s(x, c)
Definition aesb.c:47
#define v3(p)
Definition aesb.c:119
#define v1(p)
Definition aesb.c:117
#define v2(p)
Definition aesb.c:118
cryptonote::block b
Definition block.cpp:40
Definition gmock-actions.h:327
ActionInterface()
Definition gmock-actions.h:332
Definition gmock-actions.h:355
Result Perform(const ArgumentTuple &args) const
Definition gmock-actions.h:387
Definition gmock-generated-actions_test.cc:1106
BoolResetter(bool *value)
Definition gmock-generated-actions_test.cc:1108
~BoolResetter()
Definition gmock-generated-actions_test.cc:1109
bool * value_
Definition gmock-generated-actions_test.cc:1111
Definition gmock-generated-actions_test.cc:1007
NullaryConstructorClass()
Definition gmock-generated-actions_test.cc:1009
int value_
Definition gmock-generated-actions_test.cc:1010
Definition gmock-generated-actions_test.cc:73
int operator()()
Definition gmock-generated-actions_test.cc:75
Definition gmock-generated-actions_test.cc:369
virtual int Perform(const tuple< int, int > &args)
Definition gmock-generated-actions_test.cc:371
Definition gmock-generated-actions_test.cc:1051
TenArgConstructorClass(int a1, int a2, int a3, int a4, int a5, int a6, int a7, int a8, int a9, int a10)
Definition gmock-generated-actions_test.cc:1053
int value_
Definition gmock-generated-actions_test.cc:1057
Definition gmock-generated-actions_test.cc:1021
UnaryConstructorClass(int value)
Definition gmock-generated-actions_test.cc:1023
int value_
Definition gmock-generated-actions_test.cc:1024
Definition gtest-linked_ptr.h:146
Definition gtest-linked_ptr.h:146
GenericPointer< Value, CrtAllocator > Pointer
Definition fwd.h:128
#define EXPECT_EQ(val1, val2)
Definition gtest.h:1922
#define EXPECT_DOUBLE_EQ(val1, val2)
Definition gtest.h:2031
#define EXPECT_TRUE(condition)
Definition gtest.h:1859
#define EXPECT_STREQ(s1, s2)
Definition gtest.h:1995
#define TEST(test_case_name, test_name)
Definition gtest.h:2187
#define EXPECT_FALSE(condition)
Definition gtest.h:1862
#define GTEST_INTENTIONAL_CONST_COND_PUSH_()
Definition gtest-port.h:897
#define GTEST_INTENTIONAL_CONST_COND_POP_()
Definition gtest-port.h:899
#define ACTION_P8(name, p0, p1, p2, p3, p4, p5, p6, p7)
Definition gmock-generated-actions.h:1807
#define ACTION_P6(name, p0, p1, p2, p3, p4, p5)
Definition gmock-generated-actions.h:1653
#define ACTION_P2(name, p0, p1)
Definition gmock-generated-actions.h:1403
#define ACTION_P9(name, p0, p1, p2, p3, p4, p5, p6, p7, p8)
Definition gmock-generated-actions.h:1894
#define ACTION(name)
Definition gmock-generated-actions.h:1308
#define ACTION_P7(name, p0, p1, p2, p3, p4, p5, p6)
Definition gmock-generated-actions.h:1726
#define ACTION_P(name, p0)
Definition gmock-generated-actions.h:1353
#define ACTION_P3(name, p0, p1, p2)
Definition gmock-generated-actions.h:1458
#define ACTION_TEMPLATE(name, template_params, value_params)
Definition gmock-generated-actions.h:1244
#define ACTION_P5(name, p0, p1, p2, p3, p4)
Definition gmock-generated-actions.h:1583
#define ACTION_P4(name, p0, p1, p2, p3)
Definition gmock-generated-actions.h:1516
#define ACTION_P10(name, p0, p1, p2, p3, p4, p5, p6, p7, p8, p9)
Definition gmock-generated-actions.h:1985
void get(std::istream &input, bool &res)
Definition io.h:61
Definition gmock-generated-actions_test.cc:709
Definition gmock-generated-actions_test.cc:45
internal::WithArgsAction< InnerAction, k1 > WithArgs(const InnerAction &action)
Definition gmock-generated-actions.h:625
string Concat6(const char *s1, const char *s2, const char *s3, const char *s4, const char *s5, const char *s6)
Definition gmock-generated-actions_test.cc:133
string Concat4(const char *s1, const char *s2, const char *s3, const char *s4)
Definition gmock-generated-actions_test.cc:105
int Ternary(int x, char y, short z)
Definition gmock-generated-actions_test.cc:99
int SumOf4(int a, int b, int c, int d)
Definition gmock-generated-actions_test.cc:103
string ByNonConstRef(string &s)
Definition gmock-generated-actions_test.cc:89
bool ReferencesGlobalDouble(const double &x)
Definition gmock-generated-actions_test.cc:87
int SumOf6(int a, int b, int c, int d, int e, int f)
Definition gmock-generated-actions_test.cc:123
const char * CharPtr(const char *s)
Definition gmock-generated-actions_test.cc:165
string Concat9(const char *s1, const char *s2, const char *s3, const char *s4, const char *s5, const char *s6, const char *s7, const char *s8, const char *s9)
Definition gmock-generated-actions_test.cc:150
bool ByConstRef(const string &s)
Definition gmock-generated-actions_test.cc:84
bool g_done
Definition gmock-generated-actions_test.cc:78
bool Unary(int x)
Definition gmock-generated-actions_test.cc:80
bool StaticAssertTypeEq()
Definition gtest.h:2150
void VoidTernary(int, char, bool)
Definition gmock-generated-actions_test.cc:101
short Short(short n)
Definition gmock-generated-actions_test.cc:67
int SumOf5(int a, int b, int c, int d, int e)
Definition gmock-generated-actions_test.cc:110
char Char(char ch)
Definition gmock-generated-actions_test.cc:68
const double g_double
Definition gmock-generated-actions_test.cc:86
string Concat8(const char *s1, const char *s2, const char *s3, const char *s4, const char *s5, const char *s6, const char *s7, const char *s8)
Definition gmock-generated-actions_test.cc:144
ConcatImplActionP3< std::string, T1, T2 > Concat(const std::string &a, T1 b, T2 c)
Definition gmock-generated-actions_test.cc:903
int Dummy(bool flag)
Definition gmock-generated-actions_test.cc:656
PolymorphicAction< internal::InvokeAction< FunctionImpl > > Invoke(FunctionImpl function_impl)
Definition gmock-more-actions.h:114
string Concat7(const char *s1, const char *s2, const char *s3, const char *s4, const char *s5, const char *s6, const char *s7)
Definition gmock-generated-actions_test.cc:138
const char * Binary(const char *input, short n)
Definition gmock-generated-actions_test.cc:95
internal::DoBothAction< Action1, Action2 > DoAll(Action1 a1, Action2 a2)
Definition gmock-generated-actions.h:696
string Concat5(const char *s1, const char *s2, const char *s3, const char *s4, const char *s5)
Definition gmock-generated-actions_test.cc:118
int Nullary()
Definition gmock-generated-actions_test.cc:71
PolymorphicAction< internal::SetArgumentPointeeAction< N, T, internal::IsAProtocolMessage< T >::value > > SetArgPointee(const T &x)
Definition gmock-actions.h:1109
string Concat10(const char *s1, const char *s2, const char *s3, const char *s4, const char *s5, const char *s6, const char *s7, const char *s8, const char *s9, const char *s10)
Definition gmock-generated-actions_test.cc:156
const char * Plus1(const char *s)
Definition gmock-generated-actions_test.cc:82
void VoidBinary(int, char)
Definition gmock-generated-actions_test.cc:97
Definition gmock-actions.h:53
internal::WithArgsAction< InnerAction, k1 > WithArgs(const InnerAction &action)
Definition gmock-generated-actions.h:625
PolymorphicAction< internal::ReturnVoidAction > Return()
Definition gmock-actions.h:1071
const internal::AnythingMatcher _
Definition gmock-matchers.h:3729
internal::IgnoredValue Unused
Definition gmock-actions.h:1046
bool StaticAssertTypeEq()
Definition gtest.h:2150
Action< F > MakeAction(ActionInterface< F > *impl)
Definition gmock-actions.h:463
internal::ReferenceWrapper< T > ByRef(T &l_value)
Definition gmock-actions.h:1199
PolymorphicAction< internal::InvokeAction< FunctionImpl > > Invoke(FunctionImpl function_impl)
Definition gmock-more-actions.h:114
internal::DoBothAction< Action1, Action2 > DoAll(Action1 a1, Action2 a2)
Definition gmock-generated-actions.h:696
internal::ReturnAction< R > Return(R value)
Definition gmock-actions.h:1061
PolymorphicAction< internal::SetArgumentPointeeAction< N, T, internal::IsAProtocolMessage< T >::value > > SetArgPointee(const T &x)
Definition gmock-actions.h:1109
const GenericPointer< typename T::ValueType > T2 value
Definition pointer.h:1225
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
Definition pointer.h:1124
t2
Definition pow22523.h:103
t1
Definition pow22523.h:58
t0
Definition pow22523.h:53
tools::wallet2::message_signature_result_t result
Definition signature.cpp:62
Definition upnpdescgen.h:28
Definition gmock-generated-actions_test.cc:1141
GiantTemplate(int a_value)
Definition gmock-generated-actions_test.cc:1143
int value
Definition gmock-generated-actions_test.cc:1144
Definition gmock-generated-actions_test.cc:112
int operator()(int a, int b, int c, int d, int e)
Definition gmock-generated-actions_test.cc:113
Definition gmock-generated-actions_test.cc:127
int operator()(int a, int b, int c, int d, int e, int f)
Definition gmock-generated-actions_test.cc:128
Definition gmock-generated-actions_test.cc:91
int operator()(bool x)
Definition gmock-generated-actions_test.cc:92