Lines Matching refs:EXPECT_EXPANSION
55 #define EXPECT_EXPANSION(Result, Macro) \ macro
59 EXPECT_EXPANSION("14", GMOCK_PP_CAT(1, 4)); in TEST()
60 EXPECT_EXPANSION("+=", GMOCK_PP_CAT(+, =)); in TEST()
64 EXPECT_EXPANSION("1", GMOCK_PP_NARG()); in TEST()
65 EXPECT_EXPANSION("1", GMOCK_PP_NARG(x)); in TEST()
66 EXPECT_EXPANSION("2", GMOCK_PP_NARG(x, y)); in TEST()
67 EXPECT_EXPANSION("3", GMOCK_PP_NARG(x, y, z)); in TEST()
68 EXPECT_EXPANSION("4", GMOCK_PP_NARG(x, y, z, w)); in TEST()
70 EXPECT_EXPANSION("0", GMOCK_PP_NARG0()); in TEST()
71 EXPECT_EXPANSION("1", GMOCK_PP_NARG0(x)); in TEST()
72 EXPECT_EXPANSION("2", GMOCK_PP_NARG0(x, y)); in TEST()
76 EXPECT_EXPANSION("0", GMOCK_PP_HAS_COMMA()); in TEST()
77 EXPECT_EXPANSION("1", GMOCK_PP_HAS_COMMA(, )); in TEST()
78 EXPECT_EXPANSION("0", GMOCK_PP_HAS_COMMA((, ))); in TEST()
82 EXPECT_EXPANSION("1", GMOCK_PP_IS_EMPTY()); in TEST()
83 EXPECT_EXPANSION("0", GMOCK_PP_IS_EMPTY(, )); in TEST()
84 EXPECT_EXPANSION("0", GMOCK_PP_IS_EMPTY(a)); in TEST()
85 EXPECT_EXPANSION("0", GMOCK_PP_IS_EMPTY(())); in TEST()
88 EXPECT_EXPANSION("1", GMOCK_PP_IS_EMPTY(GMOCK_PP_INTERNAL_IS_EMPTY_TEST_1)); in TEST()
92 EXPECT_EXPANSION("1", GMOCK_PP_IF(1, 1, 2)); in TEST()
93 EXPECT_EXPANSION("2", GMOCK_PP_IF(0, 1, 2)); in TEST()
97 EXPECT_EXPANSION("1", GMOCK_PP_HEAD(1)); in TEST()
98 EXPECT_EXPANSION("1", GMOCK_PP_HEAD(1, 2)); in TEST()
99 EXPECT_EXPANSION("1", GMOCK_PP_HEAD(1, 2, 3)); in TEST()
101 EXPECT_EXPANSION("", GMOCK_PP_TAIL(1)); in TEST()
102 EXPECT_EXPANSION("2", GMOCK_PP_TAIL(1, 2)); in TEST()
103 EXPECT_EXPANSION("2", GMOCK_PP_HEAD(GMOCK_PP_TAIL(1, 2, 3))); in TEST()
107 EXPECT_EXPANSION("0", GMOCK_PP_IS_BEGIN_PARENS(sss)); in TEST()
108 EXPECT_EXPANSION("0", GMOCK_PP_IS_BEGIN_PARENS(sss())); in TEST()
109 EXPECT_EXPANSION("0", GMOCK_PP_IS_BEGIN_PARENS(sss() sss)); in TEST()
110 EXPECT_EXPANSION("1", GMOCK_PP_IS_BEGIN_PARENS((sss))); in TEST()
111 EXPECT_EXPANSION("1", GMOCK_PP_IS_BEGIN_PARENS((sss)ss)); in TEST()
113 EXPECT_EXPANSION("0", GMOCK_PP_IS_ENCLOSED_PARENS(sss)); in TEST()
114 EXPECT_EXPANSION("0", GMOCK_PP_IS_ENCLOSED_PARENS(sss())); in TEST()
115 EXPECT_EXPANSION("0", GMOCK_PP_IS_ENCLOSED_PARENS(sss() sss)); in TEST()
116 EXPECT_EXPANSION("1", GMOCK_PP_IS_ENCLOSED_PARENS((sss))); in TEST()
117 EXPECT_EXPANSION("0", GMOCK_PP_IS_ENCLOSED_PARENS((sss)ss)); in TEST()
119 EXPECT_EXPANSION("1 + 1", GMOCK_PP_REMOVE_PARENS((1 + 1))); in TEST()
123 EXPECT_EXPANSION("1", GMOCK_PP_INC(0)); in TEST()
124 EXPECT_EXPANSION("2", GMOCK_PP_INC(1)); in TEST()
125 EXPECT_EXPANSION("3", GMOCK_PP_INC(2)); in TEST()
126 EXPECT_EXPANSION("4", GMOCK_PP_INC(3)); in TEST()
127 EXPECT_EXPANSION("5", GMOCK_PP_INC(4)); in TEST()
129 EXPECT_EXPANSION("16", GMOCK_PP_INC(15)); in TEST()
136 EXPECT_EXPANSION("", GMOCK_PP_REPEAT(JOINER, X, 0)); in TEST()
137 EXPECT_EXPANSION("X0=", GMOCK_PP_REPEAT(JOINER, X, 1)); in TEST()
138 EXPECT_EXPANSION("X0= X1=", GMOCK_PP_REPEAT(JOINER, X, 2)); in TEST()
139 EXPECT_EXPANSION("X0= X1= X2=", GMOCK_PP_REPEAT(JOINER, X, 3)); in TEST()
140 EXPECT_EXPANSION("X0= X1= X2= X3=", GMOCK_PP_REPEAT(JOINER, X, 4)); in TEST()
141 EXPECT_EXPANSION("X0= X1= X2= X3= X4=", GMOCK_PP_REPEAT(JOINER, X, 5)); in TEST()
142 EXPECT_EXPANSION("X0= X1= X2= X3= X4= X5=", GMOCK_PP_REPEAT(JOINER, X, 6)); in TEST()
143 EXPECT_EXPANSION("X0= X1= X2= X3= X4= X5= X6=", in TEST()
145 EXPECT_EXPANSION("X0= X1= X2= X3= X4= X5= X6= X7=", in TEST()
147 EXPECT_EXPANSION("X0= X1= X2= X3= X4= X5= X6= X7= X8=", in TEST()
149 EXPECT_EXPANSION("X0= X1= X2= X3= X4= X5= X6= X7= X8= X9=", in TEST()
151 EXPECT_EXPANSION("X0= X1= X2= X3= X4= X5= X6= X7= X8= X9= X10=", in TEST()
153 EXPECT_EXPANSION("X0= X1= X2= X3= X4= X5= X6= X7= X8= X9= X10= X11=", in TEST()
155 EXPECT_EXPANSION("X0= X1= X2= X3= X4= X5= X6= X7= X8= X9= X10= X11= X12=", in TEST()
157 EXPECT_EXPANSION( in TEST()
160 EXPECT_EXPANSION( in TEST()
165 EXPECT_EXPANSION("", GMOCK_PP_FOR_EACH(JOINER, X, ())); in TEST()
166 EXPECT_EXPANSION("X0=a", GMOCK_PP_FOR_EACH(JOINER, X, (a))); in TEST()
167 EXPECT_EXPANSION("X0=a X1=b", GMOCK_PP_FOR_EACH(JOINER, X, (a, b))); in TEST()
168 EXPECT_EXPANSION("X0=a X1=b X2=c", GMOCK_PP_FOR_EACH(JOINER, X, (a, b, c))); in TEST()
169 EXPECT_EXPANSION("X0=a X1=b X2=c X3=d", in TEST()
171 EXPECT_EXPANSION("X0=a X1=b X2=c X3=d X4=e", in TEST()
173 EXPECT_EXPANSION("X0=a X1=b X2=c X3=d X4=e X5=f", in TEST()
175 EXPECT_EXPANSION("X0=a X1=b X2=c X3=d X4=e X5=f X6=g", in TEST()
177 EXPECT_EXPANSION("X0=a X1=b X2=c X3=d X4=e X5=f X6=g X7=h", in TEST()
179 EXPECT_EXPANSION("X0=a X1=b X2=c X3=d X4=e X5=f X6=g X7=h X8=i", in TEST()
181 EXPECT_EXPANSION( in TEST()
184 EXPECT_EXPANSION( in TEST()
187 EXPECT_EXPANSION( in TEST()
190 EXPECT_EXPANSION( in TEST()
193 EXPECT_EXPANSION( in TEST()
197 EXPECT_EXPANSION( in TEST()