uia 0.0.5 → 0.0.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. data/ChangeLog +5 -1
  2. data/lib/uia/version.rb +1 -1
  3. data/uia.gemspec +3 -1
  4. metadata +1 -48
  5. data/ext/UiaDll/UiaDll.Test/gmock/include/gmock/gmock-actions.h +0 -1078
  6. data/ext/UiaDll/UiaDll.Test/gmock/include/gmock/gmock-cardinalities.h +0 -147
  7. data/ext/UiaDll/UiaDll.Test/gmock/include/gmock/gmock-generated-actions.h +0 -2415
  8. data/ext/UiaDll/UiaDll.Test/gmock/include/gmock/gmock-generated-actions.h.pump +0 -821
  9. data/ext/UiaDll/UiaDll.Test/gmock/include/gmock/gmock-generated-function-mockers.h +0 -991
  10. data/ext/UiaDll/UiaDll.Test/gmock/include/gmock/gmock-generated-function-mockers.h.pump +0 -265
  11. data/ext/UiaDll/UiaDll.Test/gmock/include/gmock/gmock-generated-matchers.h +0 -2190
  12. data/ext/UiaDll/UiaDll.Test/gmock/include/gmock/gmock-generated-matchers.h.pump +0 -674
  13. data/ext/UiaDll/UiaDll.Test/gmock/include/gmock/gmock-generated-nice-strict.h +0 -397
  14. data/ext/UiaDll/UiaDll.Test/gmock/include/gmock/gmock-generated-nice-strict.h.pump +0 -161
  15. data/ext/UiaDll/UiaDll.Test/gmock/include/gmock/gmock-matchers.h +0 -3986
  16. data/ext/UiaDll/UiaDll.Test/gmock/include/gmock/gmock-more-actions.h +0 -233
  17. data/ext/UiaDll/UiaDll.Test/gmock/include/gmock/gmock-more-matchers.h +0 -58
  18. data/ext/UiaDll/UiaDll.Test/gmock/include/gmock/gmock-spec-builders.h +0 -1791
  19. data/ext/UiaDll/UiaDll.Test/gmock/include/gmock/gmock.h +0 -94
  20. data/ext/UiaDll/UiaDll.Test/gmock/include/gmock/internal/gmock-generated-internal-utils.h +0 -279
  21. data/ext/UiaDll/UiaDll.Test/gmock/include/gmock/internal/gmock-generated-internal-utils.h.pump +0 -136
  22. data/ext/UiaDll/UiaDll.Test/gmock/include/gmock/internal/gmock-internal-utils.h +0 -498
  23. data/ext/UiaDll/UiaDll.Test/gmock/include/gmock/internal/gmock-port.h +0 -78
  24. data/ext/UiaDll/UiaDll.Test/gmock/lib/gmock.lib +0 -0
  25. data/ext/UiaDll/UiaDll.Test/gmock/lib/gmockd.lib +0 -0
  26. data/ext/UiaDll/UiaDll.Test/gtest/include/gtest/gtest-death-test.h +0 -294
  27. data/ext/UiaDll/UiaDll.Test/gtest/include/gtest/gtest-message.h +0 -250
  28. data/ext/UiaDll/UiaDll.Test/gtest/include/gtest/gtest-param-test.h +0 -1421
  29. data/ext/UiaDll/UiaDll.Test/gtest/include/gtest/gtest-param-test.h.pump +0 -487
  30. data/ext/UiaDll/UiaDll.Test/gtest/include/gtest/gtest-printers.h +0 -855
  31. data/ext/UiaDll/UiaDll.Test/gtest/include/gtest/gtest-spi.h +0 -232
  32. data/ext/UiaDll/UiaDll.Test/gtest/include/gtest/gtest-test-part.h +0 -179
  33. data/ext/UiaDll/UiaDll.Test/gtest/include/gtest/gtest-typed-test.h +0 -259
  34. data/ext/UiaDll/UiaDll.Test/gtest/include/gtest/gtest.h +0 -2291
  35. data/ext/UiaDll/UiaDll.Test/gtest/include/gtest/gtest_pred_impl.h +0 -358
  36. data/ext/UiaDll/UiaDll.Test/gtest/include/gtest/gtest_prod.h +0 -58
  37. data/ext/UiaDll/UiaDll.Test/gtest/include/gtest/internal/gtest-death-test-internal.h +0 -319
  38. data/ext/UiaDll/UiaDll.Test/gtest/include/gtest/internal/gtest-filepath.h +0 -206
  39. data/ext/UiaDll/UiaDll.Test/gtest/include/gtest/internal/gtest-internal.h +0 -1158
  40. data/ext/UiaDll/UiaDll.Test/gtest/include/gtest/internal/gtest-linked_ptr.h +0 -233
  41. data/ext/UiaDll/UiaDll.Test/gtest/include/gtest/internal/gtest-param-util-generated.h +0 -5143
  42. data/ext/UiaDll/UiaDll.Test/gtest/include/gtest/internal/gtest-param-util-generated.h.pump +0 -301
  43. data/ext/UiaDll/UiaDll.Test/gtest/include/gtest/internal/gtest-param-util.h +0 -619
  44. data/ext/UiaDll/UiaDll.Test/gtest/include/gtest/internal/gtest-port.h +0 -1947
  45. data/ext/UiaDll/UiaDll.Test/gtest/include/gtest/internal/gtest-string.h +0 -167
  46. data/ext/UiaDll/UiaDll.Test/gtest/include/gtest/internal/gtest-tuple.h +0 -1012
  47. data/ext/UiaDll/UiaDll.Test/gtest/include/gtest/internal/gtest-tuple.h.pump +0 -339
  48. data/ext/UiaDll/UiaDll.Test/gtest/include/gtest/internal/gtest-type-util.h +0 -3331
  49. data/ext/UiaDll/UiaDll.Test/gtest/include/gtest/internal/gtest-type-util.h.pump +0 -297
  50. data/ext/UiaDll/UiaDll.Test/gtest/lib/gtest.lib +0 -0
  51. data/ext/UiaDll/UiaDll.Test/gtest/lib/gtestd.lib +0 -0
@@ -1,94 +0,0 @@
1
- // Copyright 2007, Google Inc.
2
- // All rights reserved.
3
- //
4
- // Redistribution and use in source and binary forms, with or without
5
- // modification, are permitted provided that the following conditions are
6
- // met:
7
- //
8
- // * Redistributions of source code must retain the above copyright
9
- // notice, this list of conditions and the following disclaimer.
10
- // * Redistributions in binary form must reproduce the above
11
- // copyright notice, this list of conditions and the following disclaimer
12
- // in the documentation and/or other materials provided with the
13
- // distribution.
14
- // * Neither the name of Google Inc. nor the names of its
15
- // contributors may be used to endorse or promote products derived from
16
- // this software without specific prior written permission.
17
- //
18
- // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19
- // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20
- // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21
- // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22
- // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23
- // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24
- // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25
- // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26
- // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27
- // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28
- // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
- //
30
- // Author: wan@google.com (Zhanyong Wan)
31
-
32
- // Google Mock - a framework for writing C++ mock classes.
33
- //
34
- // This is the main header file a user should include.
35
-
36
- #ifndef GMOCK_INCLUDE_GMOCK_GMOCK_H_
37
- #define GMOCK_INCLUDE_GMOCK_GMOCK_H_
38
-
39
- // This file implements the following syntax:
40
- //
41
- // ON_CALL(mock_object.Method(...))
42
- // .With(...) ?
43
- // .WillByDefault(...);
44
- //
45
- // where With() is optional and WillByDefault() must appear exactly
46
- // once.
47
- //
48
- // EXPECT_CALL(mock_object.Method(...))
49
- // .With(...) ?
50
- // .Times(...) ?
51
- // .InSequence(...) *
52
- // .WillOnce(...) *
53
- // .WillRepeatedly(...) ?
54
- // .RetiresOnSaturation() ? ;
55
- //
56
- // where all clauses are optional and WillOnce() can be repeated.
57
-
58
- #include "gmock/gmock-actions.h"
59
- #include "gmock/gmock-cardinalities.h"
60
- #include "gmock/gmock-generated-actions.h"
61
- #include "gmock/gmock-generated-function-mockers.h"
62
- #include "gmock/gmock-generated-nice-strict.h"
63
- #include "gmock/gmock-generated-matchers.h"
64
- #include "gmock/gmock-matchers.h"
65
- #include "gmock/gmock-more-actions.h"
66
- #include "gmock/gmock-more-matchers.h"
67
- #include "gmock/internal/gmock-internal-utils.h"
68
-
69
- namespace testing {
70
-
71
- // Declares Google Mock flags that we want a user to use programmatically.
72
- GMOCK_DECLARE_bool_(catch_leaked_mocks);
73
- GMOCK_DECLARE_string_(verbose);
74
-
75
- // Initializes Google Mock. This must be called before running the
76
- // tests. In particular, it parses the command line for the flags
77
- // that Google Mock recognizes. Whenever a Google Mock flag is seen,
78
- // it is removed from argv, and *argc is decremented.
79
- //
80
- // No value is returned. Instead, the Google Mock flag variables are
81
- // updated.
82
- //
83
- // Since Google Test is needed for Google Mock to work, this function
84
- // also initializes Google Test and parses its flags, if that hasn't
85
- // been done.
86
- GTEST_API_ void InitGoogleMock(int* argc, char** argv);
87
-
88
- // This overloaded version can be used in Windows programs compiled in
89
- // UNICODE mode.
90
- GTEST_API_ void InitGoogleMock(int* argc, wchar_t** argv);
91
-
92
- } // namespace testing
93
-
94
- #endif // GMOCK_INCLUDE_GMOCK_GMOCK_H_
@@ -1,279 +0,0 @@
1
- // This file was GENERATED by command:
2
- // pump.py gmock-generated-internal-utils.h.pump
3
- // DO NOT EDIT BY HAND!!!
4
-
5
- // Copyright 2007, Google Inc.
6
- // All rights reserved.
7
- //
8
- // Redistribution and use in source and binary forms, with or without
9
- // modification, are permitted provided that the following conditions are
10
- // met:
11
- //
12
- // * Redistributions of source code must retain the above copyright
13
- // notice, this list of conditions and the following disclaimer.
14
- // * Redistributions in binary form must reproduce the above
15
- // copyright notice, this list of conditions and the following disclaimer
16
- // in the documentation and/or other materials provided with the
17
- // distribution.
18
- // * Neither the name of Google Inc. nor the names of its
19
- // contributors may be used to endorse or promote products derived from
20
- // this software without specific prior written permission.
21
- //
22
- // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
23
- // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
24
- // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
25
- // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
26
- // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
27
- // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
28
- // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
29
- // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
30
- // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31
- // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
32
- // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33
- //
34
- // Author: wan@google.com (Zhanyong Wan)
35
-
36
- // Google Mock - a framework for writing C++ mock classes.
37
- //
38
- // This file contains template meta-programming utility classes needed
39
- // for implementing Google Mock.
40
-
41
- #ifndef GMOCK_INCLUDE_GMOCK_INTERNAL_GMOCK_GENERATED_INTERNAL_UTILS_H_
42
- #define GMOCK_INCLUDE_GMOCK_INTERNAL_GMOCK_GENERATED_INTERNAL_UTILS_H_
43
-
44
- #include "gmock/internal/gmock-port.h"
45
-
46
- namespace testing {
47
-
48
- template <typename T>
49
- class Matcher;
50
-
51
- namespace internal {
52
-
53
- // An IgnoredValue object can be implicitly constructed from ANY value.
54
- // This is used in implementing the IgnoreResult(a) action.
55
- class IgnoredValue {
56
- public:
57
- // This constructor template allows any value to be implicitly
58
- // converted to IgnoredValue. The object has no data member and
59
- // doesn't try to remember anything about the argument. We
60
- // deliberately omit the 'explicit' keyword in order to allow the
61
- // conversion to be implicit.
62
- template <typename T>
63
- IgnoredValue(const T& /* ignored */) {} // NOLINT(runtime/explicit)
64
- };
65
-
66
- // MatcherTuple<T>::type is a tuple type where each field is a Matcher
67
- // for the corresponding field in tuple type T.
68
- template <typename Tuple>
69
- struct MatcherTuple;
70
-
71
- template <>
72
- struct MatcherTuple< ::std::tr1::tuple<> > {
73
- typedef ::std::tr1::tuple< > type;
74
- };
75
-
76
- template <typename A1>
77
- struct MatcherTuple< ::std::tr1::tuple<A1> > {
78
- typedef ::std::tr1::tuple<Matcher<A1> > type;
79
- };
80
-
81
- template <typename A1, typename A2>
82
- struct MatcherTuple< ::std::tr1::tuple<A1, A2> > {
83
- typedef ::std::tr1::tuple<Matcher<A1>, Matcher<A2> > type;
84
- };
85
-
86
- template <typename A1, typename A2, typename A3>
87
- struct MatcherTuple< ::std::tr1::tuple<A1, A2, A3> > {
88
- typedef ::std::tr1::tuple<Matcher<A1>, Matcher<A2>, Matcher<A3> > type;
89
- };
90
-
91
- template <typename A1, typename A2, typename A3, typename A4>
92
- struct MatcherTuple< ::std::tr1::tuple<A1, A2, A3, A4> > {
93
- typedef ::std::tr1::tuple<Matcher<A1>, Matcher<A2>, Matcher<A3>,
94
- Matcher<A4> > type;
95
- };
96
-
97
- template <typename A1, typename A2, typename A3, typename A4, typename A5>
98
- struct MatcherTuple< ::std::tr1::tuple<A1, A2, A3, A4, A5> > {
99
- typedef ::std::tr1::tuple<Matcher<A1>, Matcher<A2>, Matcher<A3>, Matcher<A4>,
100
- Matcher<A5> > type;
101
- };
102
-
103
- template <typename A1, typename A2, typename A3, typename A4, typename A5,
104
- typename A6>
105
- struct MatcherTuple< ::std::tr1::tuple<A1, A2, A3, A4, A5, A6> > {
106
- typedef ::std::tr1::tuple<Matcher<A1>, Matcher<A2>, Matcher<A3>, Matcher<A4>,
107
- Matcher<A5>, Matcher<A6> > type;
108
- };
109
-
110
- template <typename A1, typename A2, typename A3, typename A4, typename A5,
111
- typename A6, typename A7>
112
- struct MatcherTuple< ::std::tr1::tuple<A1, A2, A3, A4, A5, A6, A7> > {
113
- typedef ::std::tr1::tuple<Matcher<A1>, Matcher<A2>, Matcher<A3>, Matcher<A4>,
114
- Matcher<A5>, Matcher<A6>, Matcher<A7> > type;
115
- };
116
-
117
- template <typename A1, typename A2, typename A3, typename A4, typename A5,
118
- typename A6, typename A7, typename A8>
119
- struct MatcherTuple< ::std::tr1::tuple<A1, A2, A3, A4, A5, A6, A7, A8> > {
120
- typedef ::std::tr1::tuple<Matcher<A1>, Matcher<A2>, Matcher<A3>, Matcher<A4>,
121
- Matcher<A5>, Matcher<A6>, Matcher<A7>, Matcher<A8> > type;
122
- };
123
-
124
- template <typename A1, typename A2, typename A3, typename A4, typename A5,
125
- typename A6, typename A7, typename A8, typename A9>
126
- struct MatcherTuple< ::std::tr1::tuple<A1, A2, A3, A4, A5, A6, A7, A8, A9> > {
127
- typedef ::std::tr1::tuple<Matcher<A1>, Matcher<A2>, Matcher<A3>, Matcher<A4>,
128
- Matcher<A5>, Matcher<A6>, Matcher<A7>, Matcher<A8>, Matcher<A9> > type;
129
- };
130
-
131
- template <typename A1, typename A2, typename A3, typename A4, typename A5,
132
- typename A6, typename A7, typename A8, typename A9, typename A10>
133
- struct MatcherTuple< ::std::tr1::tuple<A1, A2, A3, A4, A5, A6, A7, A8, A9,
134
- A10> > {
135
- typedef ::std::tr1::tuple<Matcher<A1>, Matcher<A2>, Matcher<A3>, Matcher<A4>,
136
- Matcher<A5>, Matcher<A6>, Matcher<A7>, Matcher<A8>, Matcher<A9>,
137
- Matcher<A10> > type;
138
- };
139
-
140
- // Template struct Function<F>, where F must be a function type, contains
141
- // the following typedefs:
142
- //
143
- // Result: the function's return type.
144
- // ArgumentN: the type of the N-th argument, where N starts with 1.
145
- // ArgumentTuple: the tuple type consisting of all parameters of F.
146
- // ArgumentMatcherTuple: the tuple type consisting of Matchers for all
147
- // parameters of F.
148
- // MakeResultVoid: the function type obtained by substituting void
149
- // for the return type of F.
150
- // MakeResultIgnoredValue:
151
- // the function type obtained by substituting Something
152
- // for the return type of F.
153
- template <typename F>
154
- struct Function;
155
-
156
- template <typename R>
157
- struct Function<R()> {
158
- typedef R Result;
159
- typedef ::std::tr1::tuple<> ArgumentTuple;
160
- typedef typename MatcherTuple<ArgumentTuple>::type ArgumentMatcherTuple;
161
- typedef void MakeResultVoid();
162
- typedef IgnoredValue MakeResultIgnoredValue();
163
- };
164
-
165
- template <typename R, typename A1>
166
- struct Function<R(A1)>
167
- : Function<R()> {
168
- typedef A1 Argument1;
169
- typedef ::std::tr1::tuple<A1> ArgumentTuple;
170
- typedef typename MatcherTuple<ArgumentTuple>::type ArgumentMatcherTuple;
171
- typedef void MakeResultVoid(A1);
172
- typedef IgnoredValue MakeResultIgnoredValue(A1);
173
- };
174
-
175
- template <typename R, typename A1, typename A2>
176
- struct Function<R(A1, A2)>
177
- : Function<R(A1)> {
178
- typedef A2 Argument2;
179
- typedef ::std::tr1::tuple<A1, A2> ArgumentTuple;
180
- typedef typename MatcherTuple<ArgumentTuple>::type ArgumentMatcherTuple;
181
- typedef void MakeResultVoid(A1, A2);
182
- typedef IgnoredValue MakeResultIgnoredValue(A1, A2);
183
- };
184
-
185
- template <typename R, typename A1, typename A2, typename A3>
186
- struct Function<R(A1, A2, A3)>
187
- : Function<R(A1, A2)> {
188
- typedef A3 Argument3;
189
- typedef ::std::tr1::tuple<A1, A2, A3> ArgumentTuple;
190
- typedef typename MatcherTuple<ArgumentTuple>::type ArgumentMatcherTuple;
191
- typedef void MakeResultVoid(A1, A2, A3);
192
- typedef IgnoredValue MakeResultIgnoredValue(A1, A2, A3);
193
- };
194
-
195
- template <typename R, typename A1, typename A2, typename A3, typename A4>
196
- struct Function<R(A1, A2, A3, A4)>
197
- : Function<R(A1, A2, A3)> {
198
- typedef A4 Argument4;
199
- typedef ::std::tr1::tuple<A1, A2, A3, A4> ArgumentTuple;
200
- typedef typename MatcherTuple<ArgumentTuple>::type ArgumentMatcherTuple;
201
- typedef void MakeResultVoid(A1, A2, A3, A4);
202
- typedef IgnoredValue MakeResultIgnoredValue(A1, A2, A3, A4);
203
- };
204
-
205
- template <typename R, typename A1, typename A2, typename A3, typename A4,
206
- typename A5>
207
- struct Function<R(A1, A2, A3, A4, A5)>
208
- : Function<R(A1, A2, A3, A4)> {
209
- typedef A5 Argument5;
210
- typedef ::std::tr1::tuple<A1, A2, A3, A4, A5> ArgumentTuple;
211
- typedef typename MatcherTuple<ArgumentTuple>::type ArgumentMatcherTuple;
212
- typedef void MakeResultVoid(A1, A2, A3, A4, A5);
213
- typedef IgnoredValue MakeResultIgnoredValue(A1, A2, A3, A4, A5);
214
- };
215
-
216
- template <typename R, typename A1, typename A2, typename A3, typename A4,
217
- typename A5, typename A6>
218
- struct Function<R(A1, A2, A3, A4, A5, A6)>
219
- : Function<R(A1, A2, A3, A4, A5)> {
220
- typedef A6 Argument6;
221
- typedef ::std::tr1::tuple<A1, A2, A3, A4, A5, A6> ArgumentTuple;
222
- typedef typename MatcherTuple<ArgumentTuple>::type ArgumentMatcherTuple;
223
- typedef void MakeResultVoid(A1, A2, A3, A4, A5, A6);
224
- typedef IgnoredValue MakeResultIgnoredValue(A1, A2, A3, A4, A5, A6);
225
- };
226
-
227
- template <typename R, typename A1, typename A2, typename A3, typename A4,
228
- typename A5, typename A6, typename A7>
229
- struct Function<R(A1, A2, A3, A4, A5, A6, A7)>
230
- : Function<R(A1, A2, A3, A4, A5, A6)> {
231
- typedef A7 Argument7;
232
- typedef ::std::tr1::tuple<A1, A2, A3, A4, A5, A6, A7> ArgumentTuple;
233
- typedef typename MatcherTuple<ArgumentTuple>::type ArgumentMatcherTuple;
234
- typedef void MakeResultVoid(A1, A2, A3, A4, A5, A6, A7);
235
- typedef IgnoredValue MakeResultIgnoredValue(A1, A2, A3, A4, A5, A6, A7);
236
- };
237
-
238
- template <typename R, typename A1, typename A2, typename A3, typename A4,
239
- typename A5, typename A6, typename A7, typename A8>
240
- struct Function<R(A1, A2, A3, A4, A5, A6, A7, A8)>
241
- : Function<R(A1, A2, A3, A4, A5, A6, A7)> {
242
- typedef A8 Argument8;
243
- typedef ::std::tr1::tuple<A1, A2, A3, A4, A5, A6, A7, A8> ArgumentTuple;
244
- typedef typename MatcherTuple<ArgumentTuple>::type ArgumentMatcherTuple;
245
- typedef void MakeResultVoid(A1, A2, A3, A4, A5, A6, A7, A8);
246
- typedef IgnoredValue MakeResultIgnoredValue(A1, A2, A3, A4, A5, A6, A7, A8);
247
- };
248
-
249
- template <typename R, typename A1, typename A2, typename A3, typename A4,
250
- typename A5, typename A6, typename A7, typename A8, typename A9>
251
- struct Function<R(A1, A2, A3, A4, A5, A6, A7, A8, A9)>
252
- : Function<R(A1, A2, A3, A4, A5, A6, A7, A8)> {
253
- typedef A9 Argument9;
254
- typedef ::std::tr1::tuple<A1, A2, A3, A4, A5, A6, A7, A8, A9> ArgumentTuple;
255
- typedef typename MatcherTuple<ArgumentTuple>::type ArgumentMatcherTuple;
256
- typedef void MakeResultVoid(A1, A2, A3, A4, A5, A6, A7, A8, A9);
257
- typedef IgnoredValue MakeResultIgnoredValue(A1, A2, A3, A4, A5, A6, A7, A8,
258
- A9);
259
- };
260
-
261
- template <typename R, typename A1, typename A2, typename A3, typename A4,
262
- typename A5, typename A6, typename A7, typename A8, typename A9,
263
- typename A10>
264
- struct Function<R(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10)>
265
- : Function<R(A1, A2, A3, A4, A5, A6, A7, A8, A9)> {
266
- typedef A10 Argument10;
267
- typedef ::std::tr1::tuple<A1, A2, A3, A4, A5, A6, A7, A8, A9,
268
- A10> ArgumentTuple;
269
- typedef typename MatcherTuple<ArgumentTuple>::type ArgumentMatcherTuple;
270
- typedef void MakeResultVoid(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10);
271
- typedef IgnoredValue MakeResultIgnoredValue(A1, A2, A3, A4, A5, A6, A7, A8,
272
- A9, A10);
273
- };
274
-
275
- } // namespace internal
276
-
277
- } // namespace testing
278
-
279
- #endif // GMOCK_INCLUDE_GMOCK_INTERNAL_GMOCK_GENERATED_INTERNAL_UTILS_H_
@@ -1,136 +0,0 @@
1
- $$ -*- mode: c++; -*-
2
- $$ This is a Pump source file. Please use Pump to convert it to
3
- $$ gmock-generated-function-mockers.h.
4
- $$
5
- $var n = 10 $$ The maximum arity we support.
6
- // Copyright 2007, Google Inc.
7
- // All rights reserved.
8
- //
9
- // Redistribution and use in source and binary forms, with or without
10
- // modification, are permitted provided that the following conditions are
11
- // met:
12
- //
13
- // * Redistributions of source code must retain the above copyright
14
- // notice, this list of conditions and the following disclaimer.
15
- // * Redistributions in binary form must reproduce the above
16
- // copyright notice, this list of conditions and the following disclaimer
17
- // in the documentation and/or other materials provided with the
18
- // distribution.
19
- // * Neither the name of Google Inc. nor the names of its
20
- // contributors may be used to endorse or promote products derived from
21
- // this software without specific prior written permission.
22
- //
23
- // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
24
- // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
25
- // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
26
- // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
27
- // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
28
- // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
29
- // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
30
- // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
31
- // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
32
- // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
33
- // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34
- //
35
- // Author: wan@google.com (Zhanyong Wan)
36
-
37
- // Google Mock - a framework for writing C++ mock classes.
38
- //
39
- // This file contains template meta-programming utility classes needed
40
- // for implementing Google Mock.
41
-
42
- #ifndef GMOCK_INCLUDE_GMOCK_INTERNAL_GMOCK_GENERATED_INTERNAL_UTILS_H_
43
- #define GMOCK_INCLUDE_GMOCK_INTERNAL_GMOCK_GENERATED_INTERNAL_UTILS_H_
44
-
45
- #include "gmock/internal/gmock-port.h"
46
-
47
- namespace testing {
48
-
49
- template <typename T>
50
- class Matcher;
51
-
52
- namespace internal {
53
-
54
- // An IgnoredValue object can be implicitly constructed from ANY value.
55
- // This is used in implementing the IgnoreResult(a) action.
56
- class IgnoredValue {
57
- public:
58
- // This constructor template allows any value to be implicitly
59
- // converted to IgnoredValue. The object has no data member and
60
- // doesn't try to remember anything about the argument. We
61
- // deliberately omit the 'explicit' keyword in order to allow the
62
- // conversion to be implicit.
63
- template <typename T>
64
- IgnoredValue(const T& /* ignored */) {} // NOLINT(runtime/explicit)
65
- };
66
-
67
- // MatcherTuple<T>::type is a tuple type where each field is a Matcher
68
- // for the corresponding field in tuple type T.
69
- template <typename Tuple>
70
- struct MatcherTuple;
71
-
72
-
73
- $range i 0..n
74
- $for i [[
75
- $range j 1..i
76
- $var typename_As = [[$for j, [[typename A$j]]]]
77
- $var As = [[$for j, [[A$j]]]]
78
- $var matcher_As = [[$for j, [[Matcher<A$j>]]]]
79
- template <$typename_As>
80
- struct MatcherTuple< ::std::tr1::tuple<$As> > {
81
- typedef ::std::tr1::tuple<$matcher_As > type;
82
- };
83
-
84
-
85
- ]]
86
- // Template struct Function<F>, where F must be a function type, contains
87
- // the following typedefs:
88
- //
89
- // Result: the function's return type.
90
- // ArgumentN: the type of the N-th argument, where N starts with 1.
91
- // ArgumentTuple: the tuple type consisting of all parameters of F.
92
- // ArgumentMatcherTuple: the tuple type consisting of Matchers for all
93
- // parameters of F.
94
- // MakeResultVoid: the function type obtained by substituting void
95
- // for the return type of F.
96
- // MakeResultIgnoredValue:
97
- // the function type obtained by substituting Something
98
- // for the return type of F.
99
- template <typename F>
100
- struct Function;
101
-
102
- template <typename R>
103
- struct Function<R()> {
104
- typedef R Result;
105
- typedef ::std::tr1::tuple<> ArgumentTuple;
106
- typedef typename MatcherTuple<ArgumentTuple>::type ArgumentMatcherTuple;
107
- typedef void MakeResultVoid();
108
- typedef IgnoredValue MakeResultIgnoredValue();
109
- };
110
-
111
-
112
- $range i 1..n
113
- $for i [[
114
- $range j 1..i
115
- $var typename_As = [[$for j [[, typename A$j]]]]
116
- $var As = [[$for j, [[A$j]]]]
117
- $var matcher_As = [[$for j, [[Matcher<A$j>]]]]
118
- $range k 1..i-1
119
- $var prev_As = [[$for k, [[A$k]]]]
120
- template <typename R$typename_As>
121
- struct Function<R($As)>
122
- : Function<R($prev_As)> {
123
- typedef A$i Argument$i;
124
- typedef ::std::tr1::tuple<$As> ArgumentTuple;
125
- typedef typename MatcherTuple<ArgumentTuple>::type ArgumentMatcherTuple;
126
- typedef void MakeResultVoid($As);
127
- typedef IgnoredValue MakeResultIgnoredValue($As);
128
- };
129
-
130
-
131
- ]]
132
- } // namespace internal
133
-
134
- } // namespace testing
135
-
136
- #endif // GMOCK_INCLUDE_GMOCK_INTERNAL_GMOCK_GENERATED_INTERNAL_UTILS_H_