gtest-param-test.h
Go to the documentation of this file.
1 // This file was GENERATED by command:
2 // pump.py gtest-param-test.h.pump
3 // DO NOT EDIT BY HAND!!!
4 
5 // Copyright 2008, 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 // Macros and functions for implementing parameterized tests
35 // in Google C++ Testing and Mocking Framework (Google Test)
36 //
37 // This file is generated by a SCRIPT. DO NOT EDIT BY HAND!
38 //
39 // GOOGLETEST_CM0001 DO NOT DELETE
40 #ifndef GTEST_INCLUDE_GTEST_GTEST_PARAM_TEST_H_
41 #define GTEST_INCLUDE_GTEST_GTEST_PARAM_TEST_H_
42 
43 
44 // Value-parameterized tests allow you to test your code with different
45 // parameters without writing multiple copies of the same test.
46 //
47 // Here is how you use value-parameterized tests:
48 
49 #if 0
50 
51 // To write value-parameterized tests, first you should define a fixture
52 // class. It is usually derived from testing::TestWithParam<T> (see below for
53 // another inheritance scheme that's sometimes useful in more complicated
54 // class hierarchies), where the type of your parameter values.
55 // TestWithParam<T> is itself derived from testing::Test. T can be any
56 // copyable type. If it's a raw pointer, you are responsible for managing the
57 // lifespan of the pointed values.
58 
59 class FooTest : public ::testing::TestWithParam<const char*> {
60  // You can implement all the usual class fixture members here.
61 };
62 
63 // Then, use the TEST_P macro to define as many parameterized tests
64 // for this fixture as you want. The _P suffix is for "parameterized"
65 // or "pattern", whichever you prefer to think.
66 
67 TEST_P(FooTest, DoesBlah) {
68  // Inside a test, access the test parameter with the GetParam() method
69  // of the TestWithParam<T> class:
70  EXPECT_TRUE(foo.Blah(GetParam()));
71  ...
72 }
73 
74 TEST_P(FooTest, HasBlahBlah) {
75  ...
76 }
77 
78 // Finally, you can use INSTANTIATE_TEST_SUITE_P to instantiate the test
79 // case with any set of parameters you want. Google Test defines a number
80 // of functions for generating test parameters. They return what we call
81 // (surprise!) parameter generators. Here is a summary of them, which
82 // are all in the testing namespace:
83 //
84 //
85 // Range(begin, end [, step]) - Yields values {begin, begin+step,
86 // begin+step+step, ...}. The values do not
87 // include end. step defaults to 1.
88 // Values(v1, v2, ..., vN) - Yields values {v1, v2, ..., vN}.
89 // ValuesIn(container) - Yields values from a C-style array, an STL
90 // ValuesIn(begin,end) container, or an iterator range [begin, end).
91 // Bool() - Yields sequence {false, true}.
92 // Combine(g1, g2, ..., gN) - Yields all combinations (the Cartesian product
93 // for the math savvy) of the values generated
94 // by the N generators.
95 //
96 // For more details, see comments at the definitions of these functions below
97 // in this file.
98 //
99 // The following statement will instantiate tests from the FooTest test suite
100 // each with parameter values "meeny", "miny", and "moe".
101 
102 INSTANTIATE_TEST_SUITE_P(InstantiationName,
103  FooTest,
104  Values("meeny", "miny", "moe"));
105 
106 // To distinguish different instances of the pattern, (yes, you
107 // can instantiate it more then once) the first argument to the
108 // INSTANTIATE_TEST_SUITE_P macro is a prefix that will be added to the
109 // actual test suite name. Remember to pick unique prefixes for different
110 // instantiations. The tests from the instantiation above will have
111 // these names:
112 //
113 // * InstantiationName/FooTest.DoesBlah/0 for "meeny"
114 // * InstantiationName/FooTest.DoesBlah/1 for "miny"
115 // * InstantiationName/FooTest.DoesBlah/2 for "moe"
116 // * InstantiationName/FooTest.HasBlahBlah/0 for "meeny"
117 // * InstantiationName/FooTest.HasBlahBlah/1 for "miny"
118 // * InstantiationName/FooTest.HasBlahBlah/2 for "moe"
119 //
120 // You can use these names in --gtest_filter.
121 //
122 // This statement will instantiate all tests from FooTest again, each
123 // with parameter values "cat" and "dog":
124 
125 const char* pets[] = {"cat", "dog"};
126 INSTANTIATE_TEST_SUITE_P(AnotherInstantiationName, FooTest, ValuesIn(pets));
127 
128 // The tests from the instantiation above will have these names:
129 //
130 // * AnotherInstantiationName/FooTest.DoesBlah/0 for "cat"
131 // * AnotherInstantiationName/FooTest.DoesBlah/1 for "dog"
132 // * AnotherInstantiationName/FooTest.HasBlahBlah/0 for "cat"
133 // * AnotherInstantiationName/FooTest.HasBlahBlah/1 for "dog"
134 //
135 // Please note that INSTANTIATE_TEST_SUITE_P will instantiate all tests
136 // in the given test suite, whether their definitions come before or
137 // AFTER the INSTANTIATE_TEST_SUITE_P statement.
138 //
139 // Please also note that generator expressions (including parameters to the
140 // generators) are evaluated in InitGoogleTest(), after main() has started.
141 // This allows the user on one hand, to adjust generator parameters in order
142 // to dynamically determine a set of tests to run and on the other hand,
143 // give the user a chance to inspect the generated tests with Google Test
144 // reflection API before RUN_ALL_TESTS() is executed.
145 //
146 // You can see samples/sample7_unittest.cc and samples/sample8_unittest.cc
147 // for more examples.
148 //
149 // In the future, we plan to publish the API for defining new parameter
150 // generators. But for now this interface remains part of the internal
151 // implementation and is subject to change.
152 //
153 //
154 // A parameterized test fixture must be derived from testing::Test and from
155 // testing::WithParamInterface<T>, where T is the type of the parameter
156 // values. Inheriting from TestWithParam<T> satisfies that requirement because
157 // TestWithParam<T> inherits from both Test and WithParamInterface. In more
158 // complicated hierarchies, however, it is occasionally useful to inherit
159 // separately from Test and WithParamInterface. For example:
160 
161 class BaseTest : public ::testing::Test {
162  // You can inherit all the usual members for a non-parameterized test
163  // fixture here.
164 };
165 
166 class DerivedTest : public BaseTest, public ::testing::WithParamInterface<int> {
167  // The usual test fixture members go here too.
168 };
169 
170 TEST_F(BaseTest, HasFoo) {
171  // This is an ordinary non-parameterized test.
172 }
173 
174 TEST_P(DerivedTest, DoesBlah) {
175  // GetParam works just the same here as if you inherit from TestWithParam.
176  EXPECT_TRUE(foo.Blah(GetParam()));
177 }
178 
179 #endif // 0
180 
181 #include <utility>
182 
187 
188 namespace testing {
189 
190 // Functions producing parameter generators.
191 //
192 // Google Test uses these generators to produce parameters for value-
193 // parameterized tests. When a parameterized test suite is instantiated
194 // with a particular generator, Google Test creates and runs tests
195 // for each element in the sequence produced by the generator.
196 //
197 // In the following sample, tests from test suite FooTest are instantiated
198 // each three times with parameter values 3, 5, and 8:
199 //
200 // class FooTest : public TestWithParam<int> { ... };
201 //
202 // TEST_P(FooTest, TestThis) {
203 // }
204 // TEST_P(FooTest, TestThat) {
205 // }
206 // INSTANTIATE_TEST_SUITE_P(TestSequence, FooTest, Values(3, 5, 8));
207 //
208 
209 // Range() returns generators providing sequences of values in a range.
210 //
211 // Synopsis:
212 // Range(start, end)
213 // - returns a generator producing a sequence of values {start, start+1,
214 // start+2, ..., }.
215 // Range(start, end, step)
216 // - returns a generator producing a sequence of values {start, start+step,
217 // start+step+step, ..., }.
218 // Notes:
219 // * The generated sequences never include end. For example, Range(1, 5)
220 // returns a generator producing a sequence {1, 2, 3, 4}. Range(1, 9, 2)
221 // returns a generator producing {1, 3, 5, 7}.
222 // * start and end must have the same type. That type may be any integral or
223 // floating-point type or a user defined type satisfying these conditions:
224 // * It must be assignable (have operator=() defined).
225 // * It must have operator+() (operator+(int-compatible type) for
226 // two-operand version).
227 // * It must have operator<() defined.
228 // Elements in the resulting sequences will also have that type.
229 // * Condition start < end must be satisfied in order for resulting sequences
230 // to contain any elements.
231 //
232 template <typename T, typename IncrementT>
236 }
237 
238 template <typename T>
240  return Range(start, end, 1);
241 }
242 
243 // ValuesIn() function allows generation of tests with parameters coming from
244 // a container.
245 //
246 // Synopsis:
247 // ValuesIn(const T (&array)[N])
248 // - returns a generator producing sequences with elements from
249 // a C-style array.
250 // ValuesIn(const Container& container)
251 // - returns a generator producing sequences with elements from
252 // an STL-style container.
253 // ValuesIn(Iterator begin, Iterator end)
254 // - returns a generator producing sequences with elements from
255 // a range [begin, end) defined by a pair of STL-style iterators. These
256 // iterators can also be plain C pointers.
257 //
258 // Please note that ValuesIn copies the values from the containers
259 // passed in and keeps them to generate tests in RUN_ALL_TESTS().
260 //
261 // Examples:
262 //
263 // This instantiates tests from test suite StringTest
264 // each with C-string values of "foo", "bar", and "baz":
265 //
266 // const char* strings[] = {"foo", "bar", "baz"};
267 // INSTANTIATE_TEST_SUITE_P(StringSequence, StringTest, ValuesIn(strings));
268 //
269 // This instantiates tests from test suite StlStringTest
270 // each with STL strings with values "a" and "b":
271 //
272 // ::std::vector< ::std::string> GetParameterStrings() {
273 // ::std::vector< ::std::string> v;
274 // v.push_back("a");
275 // v.push_back("b");
276 // return v;
277 // }
278 //
279 // INSTANTIATE_TEST_SUITE_P(CharSequence,
280 // StlStringTest,
281 // ValuesIn(GetParameterStrings()));
282 //
283 //
284 // This will also instantiate tests from CharTest
285 // each with parameter values 'a' and 'b':
286 //
287 // ::std::list<char> GetParameterChars() {
288 // ::std::list<char> list;
289 // list.push_back('a');
290 // list.push_back('b');
291 // return list;
292 // }
293 // ::std::list<char> l = GetParameterChars();
294 // INSTANTIATE_TEST_SUITE_P(CharSequence2,
295 // CharTest,
296 // ValuesIn(l.begin(), l.end()));
297 //
298 template <typename ForwardIterator>
299 internal::ParamGenerator<
301 ValuesIn(ForwardIterator begin, ForwardIterator end) {
302  typedef typename ::testing::internal::IteratorTraits<ForwardIterator>
303  ::value_type ParamType;
306 }
307 
308 template <typename T, size_t N>
310  return ValuesIn(array, array + N);
311 }
312 
313 template <class Container>
315  const Container& container) {
316  return ValuesIn(container.begin(), container.end());
317 }
318 
319 // Values() allows generating tests from explicitly specified list of
320 // parameters.
321 //
322 // Synopsis:
323 // Values(T v1, T v2, ..., T vN)
324 // - returns a generator producing sequences with elements v1, v2, ..., vN.
325 //
326 // For example, this instantiates tests from test suite BarTest each
327 // with values "one", "two", and "three":
328 //
329 // INSTANTIATE_TEST_SUITE_P(NumSequence,
330 // BarTest,
331 // Values("one", "two", "three"));
332 //
333 // This instantiates tests from test suite BazTest each with values 1, 2, 3.5.
334 // The exact type of values will depend on the type of parameter in BazTest.
335 //
336 // INSTANTIATE_TEST_SUITE_P(FloatingNumbers, BazTest, Values(1, 2, 3.5));
337 //
338 //
339 template <typename... T>
341  return internal::ValueArray<T...>(std::move(v)...);
342 }
343 
344 // Bool() allows generating tests with parameters in a set of (false, true).
345 //
346 // Synopsis:
347 // Bool()
348 // - returns a generator producing sequences with elements {false, true}.
349 //
350 // It is useful when testing code that depends on Boolean flags. Combinations
351 // of multiple flags can be tested when several Bool()'s are combined using
352 // Combine() function.
353 //
354 // In the following example all tests in the test suite FlagDependentTest
355 // will be instantiated twice with parameters false and true.
356 //
357 // class FlagDependentTest : public testing::TestWithParam<bool> {
358 // virtual void SetUp() {
359 // external_flag = GetParam();
360 // }
361 // }
362 // INSTANTIATE_TEST_SUITE_P(BoolSequence, FlagDependentTest, Bool());
363 //
365  return Values(false, true);
366 }
367 
368 // Combine() allows the user to combine two or more sequences to produce
369 // values of a Cartesian product of those sequences' elements.
370 //
371 // Synopsis:
372 // Combine(gen1, gen2, ..., genN)
373 // - returns a generator producing sequences with elements coming from
374 // the Cartesian product of elements from the sequences generated by
375 // gen1, gen2, ..., genN. The sequence elements will have a type of
376 // std::tuple<T1, T2, ..., TN> where T1, T2, ..., TN are the types
377 // of elements from sequences produces by gen1, gen2, ..., genN.
378 //
379 // Combine can have up to 10 arguments.
380 //
381 // Example:
382 //
383 // This will instantiate tests in test suite AnimalTest each one with
384 // the parameter values tuple("cat", BLACK), tuple("cat", WHITE),
385 // tuple("dog", BLACK), and tuple("dog", WHITE):
386 //
387 // enum Color { BLACK, GRAY, WHITE };
388 // class AnimalTest
389 // : public testing::TestWithParam<std::tuple<const char*, Color> > {...};
390 //
391 // TEST_P(AnimalTest, AnimalLooksNice) {...}
392 //
393 // INSTANTIATE_TEST_SUITE_P(AnimalVariations, AnimalTest,
394 // Combine(Values("cat", "dog"),
395 // Values(BLACK, WHITE)));
396 //
397 // This will instantiate tests in FlagDependentTest with all variations of two
398 // Boolean flags:
399 //
400 // class FlagDependentTest
401 // : public testing::TestWithParam<std::tuple<bool, bool> > {
402 // virtual void SetUp() {
403 // // Assigns external_flag_1 and external_flag_2 values from the tuple.
404 // std::tie(external_flag_1, external_flag_2) = GetParam();
405 // }
406 // };
407 //
408 // TEST_P(FlagDependentTest, TestFeature1) {
409 // // Test your code using external_flag_1 and external_flag_2 here.
410 // }
411 // INSTANTIATE_TEST_SUITE_P(TwoBoolSequence, FlagDependentTest,
412 // Combine(Bool(), Bool()));
413 //
414 template <typename Generator1, typename Generator2>
416  const Generator1& g1, const Generator2& g2) {
418  g1, g2);
419 }
420 
421 template <typename Generator1, typename Generator2, typename Generator3>
423  const Generator1& g1, const Generator2& g2, const Generator3& g3) {
425  g1, g2, g3);
426 }
427 
428 template <typename Generator1, typename Generator2, typename Generator3,
429  typename Generator4>
430 internal::CartesianProductHolder4<Generator1, Generator2, Generator3,
431  Generator4> Combine(
432  const Generator1& g1, const Generator2& g2, const Generator3& g3,
433  const Generator4& g4) {
434  return internal::CartesianProductHolder4<Generator1, Generator2, Generator3,
435  Generator4>(
436  g1, g2, g3, g4);
437 }
438 
439 template <typename Generator1, typename Generator2, typename Generator3,
440  typename Generator4, typename Generator5>
441 internal::CartesianProductHolder5<Generator1, Generator2, Generator3,
442  Generator4, Generator5> Combine(
443  const Generator1& g1, const Generator2& g2, const Generator3& g3,
444  const Generator4& g4, const Generator5& g5) {
445  return internal::CartesianProductHolder5<Generator1, Generator2, Generator3,
446  Generator4, Generator5>(
447  g1, g2, g3, g4, g5);
448 }
449 
450 template <typename Generator1, typename Generator2, typename Generator3,
451  typename Generator4, typename Generator5, typename Generator6>
452 internal::CartesianProductHolder6<Generator1, Generator2, Generator3,
453  Generator4, Generator5, Generator6> Combine(
454  const Generator1& g1, const Generator2& g2, const Generator3& g3,
455  const Generator4& g4, const Generator5& g5, const Generator6& g6) {
456  return internal::CartesianProductHolder6<Generator1, Generator2, Generator3,
457  Generator4, Generator5, Generator6>(
458  g1, g2, g3, g4, g5, g6);
459 }
460 
461 template <typename Generator1, typename Generator2, typename Generator3,
462  typename Generator4, typename Generator5, typename Generator6,
463  typename Generator7>
464 internal::CartesianProductHolder7<Generator1, Generator2, Generator3,
465  Generator4, Generator5, Generator6, Generator7> Combine(
466  const Generator1& g1, const Generator2& g2, const Generator3& g3,
467  const Generator4& g4, const Generator5& g5, const Generator6& g6,
468  const Generator7& g7) {
469  return internal::CartesianProductHolder7<Generator1, Generator2, Generator3,
470  Generator4, Generator5, Generator6, Generator7>(
471  g1, g2, g3, g4, g5, g6, g7);
472 }
473 
474 template <typename Generator1, typename Generator2, typename Generator3,
475  typename Generator4, typename Generator5, typename Generator6,
476  typename Generator7, typename Generator8>
477 internal::CartesianProductHolder8<Generator1, Generator2, Generator3,
478  Generator4, Generator5, Generator6, Generator7, Generator8> Combine(
479  const Generator1& g1, const Generator2& g2, const Generator3& g3,
480  const Generator4& g4, const Generator5& g5, const Generator6& g6,
481  const Generator7& g7, const Generator8& g8) {
482  return internal::CartesianProductHolder8<Generator1, Generator2, Generator3,
483  Generator4, Generator5, Generator6, Generator7, Generator8>(
484  g1, g2, g3, g4, g5, g6, g7, g8);
485 }
486 
487 template <typename Generator1, typename Generator2, typename Generator3,
488  typename Generator4, typename Generator5, typename Generator6,
489  typename Generator7, typename Generator8, typename Generator9>
490 internal::CartesianProductHolder9<Generator1, Generator2, Generator3,
491  Generator4, Generator5, Generator6, Generator7, Generator8,
492  Generator9> Combine(
493  const Generator1& g1, const Generator2& g2, const Generator3& g3,
494  const Generator4& g4, const Generator5& g5, const Generator6& g6,
495  const Generator7& g7, const Generator8& g8, const Generator9& g9) {
496  return internal::CartesianProductHolder9<Generator1, Generator2, Generator3,
497  Generator4, Generator5, Generator6, Generator7, Generator8, Generator9>(
498  g1, g2, g3, g4, g5, g6, g7, g8, g9);
499 }
500 
501 template <typename Generator1, typename Generator2, typename Generator3,
502  typename Generator4, typename Generator5, typename Generator6,
503  typename Generator7, typename Generator8, typename Generator9,
504  typename Generator10>
505 internal::CartesianProductHolder10<Generator1, Generator2, Generator3,
506  Generator4, Generator5, Generator6, Generator7, Generator8, Generator9,
507  Generator10> Combine(
508  const Generator1& g1, const Generator2& g2, const Generator3& g3,
509  const Generator4& g4, const Generator5& g5, const Generator6& g6,
510  const Generator7& g7, const Generator8& g8, const Generator9& g9,
511  const Generator10& g10) {
512  return internal::CartesianProductHolder10<Generator1, Generator2, Generator3,
513  Generator4, Generator5, Generator6, Generator7, Generator8, Generator9,
514  Generator10>(
515  g1, g2, g3, g4, g5, g6, g7, g8, g9, g10);
516 }
517 
518 #define TEST_P(test_suite_name, test_name) \
519  class GTEST_TEST_CLASS_NAME_(test_suite_name, test_name) \
520  : public test_suite_name { \
521  public: \
522  GTEST_TEST_CLASS_NAME_(test_suite_name, test_name)() {} \
523  virtual void TestBody(); \
524  \
525  private: \
526  static int AddToRegistry() { \
527  ::testing::UnitTest::GetInstance() \
528  ->parameterized_test_registry() \
529  .GetTestSuitePatternHolder<test_suite_name>( \
530  #test_suite_name, \
531  ::testing::internal::CodeLocation(__FILE__, __LINE__)) \
532  ->AddTestPattern( \
533  GTEST_STRINGIFY_(test_suite_name), GTEST_STRINGIFY_(test_name), \
534  new ::testing::internal::TestMetaFactory<GTEST_TEST_CLASS_NAME_( \
535  test_suite_name, test_name)>()); \
536  return 0; \
537  } \
538  static int gtest_registering_dummy_ GTEST_ATTRIBUTE_UNUSED_; \
539  GTEST_DISALLOW_COPY_AND_ASSIGN_(GTEST_TEST_CLASS_NAME_(test_suite_name, \
540  test_name)); \
541  }; \
542  int GTEST_TEST_CLASS_NAME_(test_suite_name, \
543  test_name)::gtest_registering_dummy_ = \
544  GTEST_TEST_CLASS_NAME_(test_suite_name, test_name)::AddToRegistry(); \
545  void GTEST_TEST_CLASS_NAME_(test_suite_name, test_name)::TestBody()
546 
547 // The optional last argument to INSTANTIATE_TEST_SUITE_P allows the user
548 // to specify a function or functor that generates custom test name suffixes
549 // based on the test parameters. The function should accept one argument of
550 // type testing::TestParamInfo<class ParamType>, and return std::string.
551 //
552 // testing::PrintToStringParamName is a builtin test suffix generator that
553 // returns the value of testing::PrintToString(GetParam()).
554 //
555 // Note: test names must be non-empty, unique, and may only contain ASCII
556 // alphanumeric characters or underscore. Because PrintToString adds quotes
557 // to std::string and C strings, it won't work for these types.
558 
559 #define INSTANTIATE_TEST_SUITE_P(prefix, test_suite_name, generator, ...) \
560  static ::testing::internal::ParamGenerator<test_suite_name::ParamType> \
561  gtest_##prefix##test_suite_name##_EvalGenerator_() { \
562  return generator; \
563  } \
564  static ::std::string gtest_##prefix##test_suite_name##_EvalGenerateName_( \
565  const ::testing::TestParamInfo<test_suite_name::ParamType>& info) { \
566  return ::testing::internal::GetParamNameGen<test_suite_name::ParamType>( \
567  __VA_ARGS__)(info); \
568  } \
569  static int gtest_##prefix##test_suite_name##_dummy_ \
570  GTEST_ATTRIBUTE_UNUSED_ = \
571  ::testing::UnitTest::GetInstance() \
572  ->parameterized_test_registry() \
573  .GetTestSuitePatternHolder<test_suite_name>( \
574  #test_suite_name, \
575  ::testing::internal::CodeLocation(__FILE__, __LINE__)) \
576  ->AddTestSuiteInstantiation( \
577  #prefix, &gtest_##prefix##test_suite_name##_EvalGenerator_, \
578  &gtest_##prefix##test_suite_name##_EvalGenerateName_, \
579  __FILE__, __LINE__)
580 
581 // Legacy API is deprecated but still available
582 #ifndef GTEST_REMOVE_LEGACY_TEST_CASEAPI_
583 #define INSTANTIATE_TEST_CASE_P INSTANTIATE_TEST_SUITE_P
584 #endif // GTEST_REMOVE_LEGACY_TEST_CASEAPI_
585 
586 } // namespace testing
587 
588 #endif // GTEST_INCLUDE_GTEST_GTEST_PARAM_TEST_H_
testing::internal::ParamGenerator
Definition: gtest-param-util.h:85
testing::internal::CartesianProductHolder5
Definition: gtest-param-util-generated.h:1815
testing
Definition: gmock-actions.h:59
TEST_F
#define TEST_F(test_fixture, test_name)
Definition: gtest.h:2398
testing::WithParamInterface
Definition: gtest.h:1875
end
GLuint GLuint end
Definition: glcorearb.h:2858
INSTANTIATE_TEST_SUITE_P
#define INSTANTIATE_TEST_SUITE_P(prefix, test_suite_name, generator,...)
Definition: gtest-param-test.h:559
testing::internal::ValueArray
Definition: gtest-param-util.h:741
gtest-param-util-generated.h
foo
Definition: googletest-output-test_.cc:534
testing::internal::CartesianProductHolder6
Definition: gtest-param-util-generated.h:1844
testing::Range
internal::ParamGenerator< T > Range(T start, T end, IncrementT step)
Definition: gtest-param-test.h:233
gtest-internal.h
T
#define T(upbtypeconst, upbtype, ctype, default_value)
testing::Combine
internal::CartesianProductHolder2< Generator1, Generator2 > Combine(const Generator1 &g1, const Generator2 &g2)
Definition: gtest-param-test.h:415
testing::Test
Definition: gtest.h:415
testing::TestWithParam
Definition: gtest.h:1910
testing::Bool
internal::ParamGenerator< bool > Bool()
Definition: gtest-param-test.h:364
begin
static size_t begin(const upb_table *t)
Definition: php/ext/google/protobuf/upb.c:4898
gtest-param-util.h
testing::internal::CartesianProductHolder2
Definition: gtest-param-util-generated.h:1742
testing::internal::CartesianProductHolder10
Definition: gtest-param-util-generated.h:1996
start
GLuint start
Definition: glcorearb.h:2858
testing::internal::CartesianProductHolder7
Definition: gtest-param-util-generated.h:1877
TEST_P
#define TEST_P(test_suite_name, test_name)
Definition: gtest-param-test.h:518
gtest-port.h
testing::internal::ValuesInIteratorRangeGenerator
Definition: gtest-param-util.h:289
EXPECT_TRUE
#define EXPECT_TRUE(cond)
Definition: glog/src/googletest.h:137
testing::internal::CartesianProductHolder3
Definition: gtest-param-util-generated.h:1763
testing::internal::CartesianProductHolder8
Definition: gtest-param-util-generated.h:1913
v
const GLdouble * v
Definition: glcorearb.h:3106
value_type
zend_class_entry * value_type
Definition: php/ext/google/protobuf/message.c:2546
testing::internal::CartesianProductHolder4
Definition: gtest-param-util-generated.h:1788
testing::ValuesIn
internal::ParamGenerator< typename Container::value_type > ValuesIn(const Container &container)
Definition: gtest-param-test.h:314
testing::internal::CartesianProductHolder9
Definition: gtest-param-util-generated.h:1953
testing::ValuesIn
internal::ParamGenerator< typename ::testing::internal::IteratorTraits< ForwardIterator >::value_type > ValuesIn(ForwardIterator begin, ForwardIterator end)
Definition: gtest-param-test.h:301
testing::Values
internal::ValueArray< T... > Values(T... v)
Definition: gtest-param-test.h:340
testing::internal::RangeGenerator
Definition: gtest-param-util.h:204
array
PHP_PROTO_OBJECT_FREE_END PHP_PROTO_OBJECT_DTOR_END intern array
Definition: array.c:111


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:06:53