proxygen
gtest_pred_impl_unittest.cc File Reference
#include <iostream>
#include "gtest/gtest.h"
#include "gtest/gtest-spi.h"

Go to the source code of this file.

Classes

struct  Bool
 
struct  PredFunctor1
 
struct  PredFormatFunctor1
 
class  Predicate1Test
 
struct  PredFunctor2
 
struct  PredFormatFunctor2
 
class  Predicate2Test
 
struct  PredFunctor3
 
struct  PredFormatFunctor3
 
class  Predicate3Test
 
struct  PredFunctor4
 
struct  PredFormatFunctor4
 
class  Predicate4Test
 
struct  PredFunctor5
 
struct  PredFormatFunctor5
 
class  Predicate5Test
 

Typedefs

typedef Predicate1Test EXPECT_PRED_FORMAT1Test
 
typedef Predicate1Test ASSERT_PRED_FORMAT1Test
 
typedef Predicate1Test EXPECT_PRED1Test
 
typedef Predicate1Test ASSERT_PRED1Test
 
typedef Predicate2Test EXPECT_PRED_FORMAT2Test
 
typedef Predicate2Test ASSERT_PRED_FORMAT2Test
 
typedef Predicate2Test EXPECT_PRED2Test
 
typedef Predicate2Test ASSERT_PRED2Test
 
typedef Predicate3Test EXPECT_PRED_FORMAT3Test
 
typedef Predicate3Test ASSERT_PRED_FORMAT3Test
 
typedef Predicate3Test EXPECT_PRED3Test
 
typedef Predicate3Test ASSERT_PRED3Test
 
typedef Predicate4Test EXPECT_PRED_FORMAT4Test
 
typedef Predicate4Test ASSERT_PRED_FORMAT4Test
 
typedef Predicate4Test EXPECT_PRED4Test
 
typedef Predicate4Test ASSERT_PRED4Test
 
typedef Predicate5Test EXPECT_PRED_FORMAT5Test
 
typedef Predicate5Test ASSERT_PRED_FORMAT5Test
 
typedef Predicate5Test EXPECT_PRED5Test
 
typedef Predicate5Test ASSERT_PRED5Test
 

Functions

std::ostream & operator<< (std::ostream &os, const Bool &x)
 
template<typename T1 >
bool PredFunction1 (T1 v1)
 
bool PredFunction1Int (int v1)
 
bool PredFunction1Bool (Bool v1)
 
template<typename T1 >
testing::AssertionResult PredFormatFunction1 (const char *e1, const T1 &v1)
 
 TEST_F (EXPECT_PRED1Test, FunctionOnBuiltInTypeSuccess)
 
 TEST_F (EXPECT_PRED1Test, FunctionOnUserTypeSuccess)
 
 TEST_F (EXPECT_PRED1Test, FunctorOnBuiltInTypeSuccess)
 
 TEST_F (EXPECT_PRED1Test, FunctorOnUserTypeSuccess)
 
 TEST_F (EXPECT_PRED1Test, FunctionOnBuiltInTypeFailure)
 
 TEST_F (EXPECT_PRED1Test, FunctionOnUserTypeFailure)
 
 TEST_F (EXPECT_PRED1Test, FunctorOnBuiltInTypeFailure)
 
 TEST_F (EXPECT_PRED1Test, FunctorOnUserTypeFailure)
 
template<typename T1 , typename T2 >
bool PredFunction2 (T1 v1, T2 v2)
 
bool PredFunction2Int (int v1, int v2)
 
bool PredFunction2Bool (Bool v1, Bool v2)
 
template<typename T1 , typename T2 >
testing::AssertionResult PredFormatFunction2 (const char *e1, const char *e2, const T1 &v1, const T2 &v2)
 
 TEST_F (EXPECT_PRED2Test, FunctionOnBuiltInTypeSuccess)
 
 TEST_F (EXPECT_PRED2Test, FunctionOnUserTypeSuccess)
 
 TEST_F (EXPECT_PRED2Test, FunctorOnBuiltInTypeSuccess)
 
 TEST_F (EXPECT_PRED2Test, FunctorOnUserTypeSuccess)
 
 TEST_F (EXPECT_PRED2Test, FunctionOnBuiltInTypeFailure)
 
 TEST_F (EXPECT_PRED2Test, FunctionOnUserTypeFailure)
 
 TEST_F (EXPECT_PRED2Test, FunctorOnBuiltInTypeFailure)
 
 TEST_F (EXPECT_PRED2Test, FunctorOnUserTypeFailure)
 
template<typename T1 , typename T2 , typename T3 >
bool PredFunction3 (T1 v1, T2 v2, T3 v3)
 
bool PredFunction3Int (int v1, int v2, int v3)
 
bool PredFunction3Bool (Bool v1, Bool v2, Bool v3)
 
template<typename T1 , typename T2 , typename T3 >
testing::AssertionResult PredFormatFunction3 (const char *e1, const char *e2, const char *e3, const T1 &v1, const T2 &v2, const T3 &v3)
 
 TEST_F (EXPECT_PRED3Test, FunctionOnBuiltInTypeSuccess)
 
 TEST_F (EXPECT_PRED3Test, FunctionOnUserTypeSuccess)
 
 TEST_F (EXPECT_PRED3Test, FunctorOnBuiltInTypeSuccess)
 
 TEST_F (EXPECT_PRED3Test, FunctorOnUserTypeSuccess)
 
 TEST_F (EXPECT_PRED3Test, FunctionOnBuiltInTypeFailure)
 
 TEST_F (EXPECT_PRED3Test, FunctionOnUserTypeFailure)
 
 TEST_F (EXPECT_PRED3Test, FunctorOnBuiltInTypeFailure)
 
 TEST_F (EXPECT_PRED3Test, FunctorOnUserTypeFailure)
 
template<typename T1 , typename T2 , typename T3 , typename T4 >
bool PredFunction4 (T1 v1, T2 v2, T3 v3, T4 v4)
 
bool PredFunction4Int (int v1, int v2, int v3, int v4)
 
bool PredFunction4Bool (Bool v1, Bool v2, Bool v3, Bool v4)
 
template<typename T1 , typename T2 , typename T3 , typename T4 >
testing::AssertionResult PredFormatFunction4 (const char *e1, const char *e2, const char *e3, const char *e4, const T1 &v1, const T2 &v2, const T3 &v3, const T4 &v4)
 
 TEST_F (EXPECT_PRED4Test, FunctionOnBuiltInTypeSuccess)
 
 TEST_F (EXPECT_PRED4Test, FunctionOnUserTypeSuccess)
 
 TEST_F (EXPECT_PRED4Test, FunctorOnBuiltInTypeSuccess)
 
 TEST_F (EXPECT_PRED4Test, FunctorOnUserTypeSuccess)
 
 TEST_F (EXPECT_PRED4Test, FunctionOnBuiltInTypeFailure)
 
 TEST_F (EXPECT_PRED4Test, FunctionOnUserTypeFailure)
 
 TEST_F (EXPECT_PRED4Test, FunctorOnBuiltInTypeFailure)
 
 TEST_F (EXPECT_PRED4Test, FunctorOnUserTypeFailure)
 
template<typename T1 , typename T2 , typename T3 , typename T4 , typename T5 >
bool PredFunction5 (T1 v1, T2 v2, T3 v3, T4 v4, T5 v5)
 
bool PredFunction5Int (int v1, int v2, int v3, int v4, int v5)
 
bool PredFunction5Bool (Bool v1, Bool v2, Bool v3, Bool v4, Bool v5)
 
template<typename T1 , typename T2 , typename T3 , typename T4 , typename T5 >
testing::AssertionResult PredFormatFunction5 (const char *e1, const char *e2, const char *e3, const char *e4, const char *e5, const T1 &v1, const T2 &v2, const T3 &v3, const T4 &v4, const T5 &v5)
 
 TEST_F (EXPECT_PRED5Test, FunctionOnBuiltInTypeSuccess)
 
 TEST_F (EXPECT_PRED5Test, FunctionOnUserTypeSuccess)
 
 TEST_F (EXPECT_PRED5Test, FunctorOnBuiltInTypeSuccess)
 
 TEST_F (EXPECT_PRED5Test, FunctorOnUserTypeSuccess)
 
 TEST_F (EXPECT_PRED5Test, FunctionOnBuiltInTypeFailure)
 
 TEST_F (EXPECT_PRED5Test, FunctionOnUserTypeFailure)
 
 TEST_F (EXPECT_PRED5Test, FunctorOnBuiltInTypeFailure)
 
 TEST_F (EXPECT_PRED5Test, FunctorOnUserTypeFailure)
 

Typedef Documentation

Definition at line 163 of file gtest_pred_impl_unittest.cc.

Definition at line 560 of file gtest_pred_impl_unittest.cc.

Definition at line 999 of file gtest_pred_impl_unittest.cc.

Definition at line 1480 of file gtest_pred_impl_unittest.cc.

Definition at line 2003 of file gtest_pred_impl_unittest.cc.

Definition at line 162 of file gtest_pred_impl_unittest.cc.

Definition at line 559 of file gtest_pred_impl_unittest.cc.

Definition at line 998 of file gtest_pred_impl_unittest.cc.

Definition at line 1479 of file gtest_pred_impl_unittest.cc.

Definition at line 2002 of file gtest_pred_impl_unittest.cc.

Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const Bool x 
)

Definition at line 69 of file gtest_pred_impl_unittest.cc.

References Bool::value.

69  {
70  return os << (x.value ? "true" : "false");
71 }
template<typename T1 >
testing::AssertionResult PredFormatFunction1 ( const char *  e1,
const T1 v1 
)

Definition at line 101 of file gtest_pred_impl_unittest.cc.

References testing::AssertionFailure(), testing::AssertionSuccess(), and PredFunction1().

102  {
103  if (PredFunction1(v1))
104  return testing::AssertionSuccess();
105 
107  << e1
108  << " is expected to be positive, but evaluates to "
109  << v1 << ".";
110 }
GTEST_API_ AssertionResult AssertionFailure()
Definition: gtest.cc:1015
bool PredFunction1(T1 v1)
GTEST_API_ AssertionResult AssertionSuccess()
Definition: gtest.cc:1010
template<typename T1 , typename T2 >
testing::AssertionResult PredFormatFunction2 ( const char *  e1,
const char *  e2,
const T1 v1,
const T2 v2 
)

Definition at line 489 of file gtest_pred_impl_unittest.cc.

References testing::AssertionFailure(), testing::AssertionSuccess(), and PredFunction2().

492  {
493  if (PredFunction2(v1, v2))
494  return testing::AssertionSuccess();
495 
497  << e1 << " + " << e2
498  << " is expected to be positive, but evaluates to "
499  << v1 + v2 << ".";
500 }
GTEST_API_ AssertionResult AssertionFailure()
Definition: gtest.cc:1015
bool PredFunction2(T1 v1, T2 v2)
GTEST_API_ AssertionResult AssertionSuccess()
Definition: gtest.cc:1010
template<typename T1 , typename T2 , typename T3 >
testing::AssertionResult PredFormatFunction3 ( const char *  e1,
const char *  e2,
const char *  e3,
const T1 v1,
const T2 v2,
const T3 v3 
)

Definition at line 919 of file gtest_pred_impl_unittest.cc.

References testing::AssertionFailure(), testing::AssertionSuccess(), and PredFunction3().

924  {
925  if (PredFunction3(v1, v2, v3))
926  return testing::AssertionSuccess();
927 
929  << e1 << " + " << e2 << " + " << e3
930  << " is expected to be positive, but evaluates to "
931  << v1 + v2 + v3 << ".";
932 }
GTEST_API_ AssertionResult AssertionFailure()
Definition: gtest.cc:1015
GTEST_API_ AssertionResult AssertionSuccess()
Definition: gtest.cc:1010
bool PredFunction3(T1 v1, T2 v2, T3 v3)
template<typename T1 , typename T2 , typename T3 , typename T4 >
testing::AssertionResult PredFormatFunction4 ( const char *  e1,
const char *  e2,
const char *  e3,
const char *  e4,
const T1 v1,
const T2 v2,
const T3 v3,
const T4 &  v4 
)

Definition at line 1391 of file gtest_pred_impl_unittest.cc.

References testing::AssertionFailure(), testing::AssertionSuccess(), and PredFunction4().

1398  {
1399  if (PredFunction4(v1, v2, v3, v4))
1400  return testing::AssertionSuccess();
1401 
1402  return testing::AssertionFailure()
1403  << e1 << " + " << e2 << " + " << e3 << " + " << e4
1404  << " is expected to be positive, but evaluates to "
1405  << v1 + v2 + v3 + v4 << ".";
1406 }
GTEST_API_ AssertionResult AssertionFailure()
Definition: gtest.cc:1015
GTEST_API_ AssertionResult AssertionSuccess()
Definition: gtest.cc:1010
bool PredFunction4(T1 v1, T2 v2, T3 v3, T4 v4)
template<typename T1 , typename T2 , typename T3 , typename T4 , typename T5 >
testing::AssertionResult PredFormatFunction5 ( const char *  e1,
const char *  e2,
const char *  e3,
const char *  e4,
const char *  e5,
const T1 v1,
const T2 v2,
const T3 v3,
const T4 &  v4,
const T5 v5 
)

Definition at line 1905 of file gtest_pred_impl_unittest.cc.

References testing::AssertionFailure(), testing::AssertionSuccess(), and PredFunction5().

1914  {
1915  if (PredFunction5(v1, v2, v3, v4, v5))
1916  return testing::AssertionSuccess();
1917 
1918  return testing::AssertionFailure()
1919  << e1 << " + " << e2 << " + " << e3 << " + " << e4 << " + " << e5
1920  << " is expected to be positive, but evaluates to "
1921  << v1 + v2 + v3 + v4 + v5 << ".";
1922 }
GTEST_API_ AssertionResult AssertionFailure()
Definition: gtest.cc:1015
GTEST_API_ AssertionResult AssertionSuccess()
Definition: gtest.cc:1010
bool PredFunction5(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5)
template<typename T1 >
bool PredFunction1 ( T1  v1)

Definition at line 77 of file gtest_pred_impl_unittest.cc.

77  {
78  return v1 > 0;
79 }
bool PredFunction1Bool ( Bool  v1)

Definition at line 87 of file gtest_pred_impl_unittest.cc.

87  {
88  return v1 > 0;
89 }
bool PredFunction1Int ( int  v1)

Definition at line 84 of file gtest_pred_impl_unittest.cc.

84  {
85  return v1 > 0;
86 }
template<typename T1 , typename T2 >
bool PredFunction2 ( T1  v1,
T2  v2 
)

Definition at line 464 of file gtest_pred_impl_unittest.cc.

464  {
465  return v1 + v2 > 0;
466 }
bool PredFunction2Bool ( Bool  v1,
Bool  v2 
)

Definition at line 474 of file gtest_pred_impl_unittest.cc.

474  {
475  return v1 + v2 > 0;
476 }
bool PredFunction2Int ( int  v1,
int  v2 
)

Definition at line 471 of file gtest_pred_impl_unittest.cc.

471  {
472  return v1 + v2 > 0;
473 }
template<typename T1 , typename T2 , typename T3 >
bool PredFunction3 ( T1  v1,
T2  v2,
T3  v3 
)

Definition at line 893 of file gtest_pred_impl_unittest.cc.

893  {
894  return v1 + v2 + v3 > 0;
895 }
bool PredFunction3Bool ( Bool  v1,
Bool  v2,
Bool  v3 
)

Definition at line 903 of file gtest_pred_impl_unittest.cc.

903  {
904  return v1 + v2 + v3 > 0;
905 }
bool PredFunction3Int ( int  v1,
int  v2,
int  v3 
)

Definition at line 900 of file gtest_pred_impl_unittest.cc.

900  {
901  return v1 + v2 + v3 > 0;
902 }
template<typename T1 , typename T2 , typename T3 , typename T4 >
bool PredFunction4 ( T1  v1,
T2  v2,
T3  v3,
T4  v4 
)

Definition at line 1364 of file gtest_pred_impl_unittest.cc.

1364  {
1365  return v1 + v2 + v3 + v4 > 0;
1366 }
bool PredFunction4Bool ( Bool  v1,
Bool  v2,
Bool  v3,
Bool  v4 
)

Definition at line 1374 of file gtest_pred_impl_unittest.cc.

1374  {
1375  return v1 + v2 + v3 + v4 > 0;
1376 }
bool PredFunction4Int ( int  v1,
int  v2,
int  v3,
int  v4 
)

Definition at line 1371 of file gtest_pred_impl_unittest.cc.

1371  {
1372  return v1 + v2 + v3 + v4 > 0;
1373 }
template<typename T1 , typename T2 , typename T3 , typename T4 , typename T5 >
bool PredFunction5 ( T1  v1,
T2  v2,
T3  v3,
T4  v4,
T5  v5 
)

Definition at line 1877 of file gtest_pred_impl_unittest.cc.

1877  {
1878  return v1 + v2 + v3 + v4 + v5 > 0;
1879 }
bool PredFunction5Bool ( Bool  v1,
Bool  v2,
Bool  v3,
Bool  v4,
Bool  v5 
)

Definition at line 1887 of file gtest_pred_impl_unittest.cc.

1887  {
1888  return v1 + v2 + v3 + v4 + v5 > 0;
1889 }
bool PredFunction5Int ( int  v1,
int  v2,
int  v3,
int  v4,
int  v5 
)

Definition at line 1884 of file gtest_pred_impl_unittest.cc.

1884  {
1885  return v1 + v2 + v3 + v4 + v5 > 0;
1886 }
TEST_F ( EXPECT_PRED1Test  ,
FunctionOnBuiltInTypeSuccess   
)

Definition at line 167 of file gtest_pred_impl_unittest.cc.

References EXPECT_PRED1, and PredFunction1Int().

167  {
169  ++n1_);
170  finished_ = true;
171 }
#define EXPECT_PRED1(pred, v1)
bool PredFunction1Int(int v1)
TEST_F ( EXPECT_PRED1Test  ,
FunctionOnUserTypeSuccess   
)

Definition at line 175 of file gtest_pred_impl_unittest.cc.

References Bool::Bool(), EXPECT_PRED1, and PredFunction1Bool().

175  {
177  Bool(++n1_));
178  finished_ = true;
179 }
bool PredFunction1Bool(Bool v1)
#define EXPECT_PRED1(pred, v1)
bool_constant< B > Bool
Definition: TypeList.h:81
TEST_F ( EXPECT_PRED1Test  ,
FunctorOnBuiltInTypeSuccess   
)

Definition at line 183 of file gtest_pred_impl_unittest.cc.

References EXPECT_PRED1.

183  {
185  ++n1_);
186  finished_ = true;
187 }
#define EXPECT_PRED1(pred, v1)
TEST_F ( EXPECT_PRED1Test  ,
FunctorOnUserTypeSuccess   
)

Definition at line 191 of file gtest_pred_impl_unittest.cc.

References Bool::Bool(), and EXPECT_PRED1.

191  {
193  Bool(++n1_));
194  finished_ = true;
195 }
#define EXPECT_PRED1(pred, v1)
bool_constant< B > Bool
Definition: TypeList.h:81
TEST_F ( EXPECT_PRED1Test  ,
FunctionOnBuiltInTypeFailure   
)

Definition at line 199 of file gtest_pred_impl_unittest.cc.

References EXPECT_NONFATAL_FAILURE, EXPECT_PRED1, and PredFunction1Int().

199  {
200  EXPECT_NONFATAL_FAILURE({ // NOLINT
202  n1_++);
203  finished_ = true;
204  }, "");
205 }
#define EXPECT_PRED1(pred, v1)
bool PredFunction1Int(int v1)
#define EXPECT_NONFATAL_FAILURE(statement, substr)
Definition: gtest-spi.h:204
TEST_F ( EXPECT_PRED1Test  ,
FunctionOnUserTypeFailure   
)

Definition at line 209 of file gtest_pred_impl_unittest.cc.

References Bool::Bool(), EXPECT_NONFATAL_FAILURE, EXPECT_PRED1, and PredFunction1Bool().

209  {
210  EXPECT_NONFATAL_FAILURE({ // NOLINT
212  Bool(n1_++));
213  finished_ = true;
214  }, "");
215 }
bool PredFunction1Bool(Bool v1)
#define EXPECT_PRED1(pred, v1)
#define EXPECT_NONFATAL_FAILURE(statement, substr)
Definition: gtest-spi.h:204
bool_constant< B > Bool
Definition: TypeList.h:81
TEST_F ( EXPECT_PRED1Test  ,
FunctorOnBuiltInTypeFailure   
)

Definition at line 219 of file gtest_pred_impl_unittest.cc.

References EXPECT_NONFATAL_FAILURE, and EXPECT_PRED1.

219  {
220  EXPECT_NONFATAL_FAILURE({ // NOLINT
222  n1_++);
223  finished_ = true;
224  }, "");
225 }
#define EXPECT_PRED1(pred, v1)
#define EXPECT_NONFATAL_FAILURE(statement, substr)
Definition: gtest-spi.h:204
TEST_F ( EXPECT_PRED1Test  ,
FunctorOnUserTypeFailure   
)

Definition at line 229 of file gtest_pred_impl_unittest.cc.

References ASSERT_PRED1, ASSERT_PRED_FORMAT1, Bool::Bool(), EXPECT_FATAL_FAILURE, EXPECT_NONFATAL_FAILURE, EXPECT_PRED1, EXPECT_PRED_FORMAT1, PredFormatFunction1(), PredFunction1Bool(), PredFunction1Int(), and TEST_F().

229  {
230  EXPECT_NONFATAL_FAILURE({ // NOLINT
232  Bool(n1_++));
233  finished_ = true;
234  }, "");
235 }
#define EXPECT_PRED1(pred, v1)
#define EXPECT_NONFATAL_FAILURE(statement, substr)
Definition: gtest-spi.h:204
bool_constant< B > Bool
Definition: TypeList.h:81
TEST_F ( EXPECT_PRED2Test  ,
FunctionOnBuiltInTypeSuccess   
)

Definition at line 564 of file gtest_pred_impl_unittest.cc.

References EXPECT_PRED2, and PredFunction2Int().

564  {
566  ++n1_,
567  ++n2_);
568  finished_ = true;
569 }
bool PredFunction2Int(int v1, int v2)
#define EXPECT_PRED2(pred, v1, v2)
TEST_F ( EXPECT_PRED2Test  ,
FunctionOnUserTypeSuccess   
)

Definition at line 573 of file gtest_pred_impl_unittest.cc.

References Bool::Bool(), EXPECT_PRED2, and PredFunction2Bool().

573  {
575  Bool(++n1_),
576  Bool(++n2_));
577  finished_ = true;
578 }
bool PredFunction2Bool(Bool v1, Bool v2)
#define EXPECT_PRED2(pred, v1, v2)
bool_constant< B > Bool
Definition: TypeList.h:81
TEST_F ( EXPECT_PRED2Test  ,
FunctorOnBuiltInTypeSuccess   
)

Definition at line 582 of file gtest_pred_impl_unittest.cc.

References EXPECT_PRED2.

582  {
584  ++n1_,
585  ++n2_);
586  finished_ = true;
587 }
#define EXPECT_PRED2(pred, v1, v2)
TEST_F ( EXPECT_PRED2Test  ,
FunctorOnUserTypeSuccess   
)

Definition at line 591 of file gtest_pred_impl_unittest.cc.

References Bool::Bool(), and EXPECT_PRED2.

591  {
593  Bool(++n1_),
594  Bool(++n2_));
595  finished_ = true;
596 }
#define EXPECT_PRED2(pred, v1, v2)
bool_constant< B > Bool
Definition: TypeList.h:81
TEST_F ( EXPECT_PRED2Test  ,
FunctionOnBuiltInTypeFailure   
)

Definition at line 600 of file gtest_pred_impl_unittest.cc.

References EXPECT_NONFATAL_FAILURE, EXPECT_PRED2, and PredFunction2Int().

600  {
601  EXPECT_NONFATAL_FAILURE({ // NOLINT
603  n1_++,
604  n2_++);
605  finished_ = true;
606  }, "");
607 }
bool PredFunction2Int(int v1, int v2)
#define EXPECT_PRED2(pred, v1, v2)
#define EXPECT_NONFATAL_FAILURE(statement, substr)
Definition: gtest-spi.h:204
TEST_F ( EXPECT_PRED2Test  ,
FunctionOnUserTypeFailure   
)

Definition at line 611 of file gtest_pred_impl_unittest.cc.

References Bool::Bool(), EXPECT_NONFATAL_FAILURE, EXPECT_PRED2, and PredFunction2Bool().

611  {
612  EXPECT_NONFATAL_FAILURE({ // NOLINT
614  Bool(n1_++),
615  Bool(n2_++));
616  finished_ = true;
617  }, "");
618 }
bool PredFunction2Bool(Bool v1, Bool v2)
#define EXPECT_PRED2(pred, v1, v2)
#define EXPECT_NONFATAL_FAILURE(statement, substr)
Definition: gtest-spi.h:204
bool_constant< B > Bool
Definition: TypeList.h:81
TEST_F ( EXPECT_PRED2Test  ,
FunctorOnBuiltInTypeFailure   
)

Definition at line 622 of file gtest_pred_impl_unittest.cc.

References EXPECT_NONFATAL_FAILURE, and EXPECT_PRED2.

622  {
623  EXPECT_NONFATAL_FAILURE({ // NOLINT
625  n1_++,
626  n2_++);
627  finished_ = true;
628  }, "");
629 }
#define EXPECT_PRED2(pred, v1, v2)
#define EXPECT_NONFATAL_FAILURE(statement, substr)
Definition: gtest-spi.h:204
TEST_F ( EXPECT_PRED2Test  ,
FunctorOnUserTypeFailure   
)

Definition at line 633 of file gtest_pred_impl_unittest.cc.

References ASSERT_PRED2, ASSERT_PRED_FORMAT2, Bool::Bool(), EXPECT_FATAL_FAILURE, EXPECT_NONFATAL_FAILURE, EXPECT_PRED2, EXPECT_PRED_FORMAT2, PredFormatFunction2(), PredFunction2Bool(), PredFunction2Int(), and TEST_F().

633  {
634  EXPECT_NONFATAL_FAILURE({ // NOLINT
636  Bool(n1_++),
637  Bool(n2_++));
638  finished_ = true;
639  }, "");
640 }
#define EXPECT_PRED2(pred, v1, v2)
#define EXPECT_NONFATAL_FAILURE(statement, substr)
Definition: gtest-spi.h:204
bool_constant< B > Bool
Definition: TypeList.h:81
TEST_F ( EXPECT_PRED3Test  ,
FunctionOnBuiltInTypeSuccess   
)

Definition at line 1003 of file gtest_pred_impl_unittest.cc.

References EXPECT_PRED3, and PredFunction3Int().

1003  {
1005  ++n1_,
1006  ++n2_,
1007  ++n3_);
1008  finished_ = true;
1009 }
#define EXPECT_PRED3(pred, v1, v2, v3)
bool PredFunction3Int(int v1, int v2, int v3)
TEST_F ( EXPECT_PRED3Test  ,
FunctionOnUserTypeSuccess   
)

Definition at line 1013 of file gtest_pred_impl_unittest.cc.

References Bool::Bool(), EXPECT_PRED3, and PredFunction3Bool().

1013  {
1015  Bool(++n1_),
1016  Bool(++n2_),
1017  Bool(++n3_));
1018  finished_ = true;
1019 }
#define EXPECT_PRED3(pred, v1, v2, v3)
bool PredFunction3Bool(Bool v1, Bool v2, Bool v3)
bool_constant< B > Bool
Definition: TypeList.h:81
TEST_F ( EXPECT_PRED3Test  ,
FunctorOnBuiltInTypeSuccess   
)

Definition at line 1023 of file gtest_pred_impl_unittest.cc.

References EXPECT_PRED3.

1023  {
1025  ++n1_,
1026  ++n2_,
1027  ++n3_);
1028  finished_ = true;
1029 }
#define EXPECT_PRED3(pred, v1, v2, v3)
TEST_F ( EXPECT_PRED3Test  ,
FunctorOnUserTypeSuccess   
)

Definition at line 1033 of file gtest_pred_impl_unittest.cc.

References Bool::Bool(), and EXPECT_PRED3.

1033  {
1035  Bool(++n1_),
1036  Bool(++n2_),
1037  Bool(++n3_));
1038  finished_ = true;
1039 }
#define EXPECT_PRED3(pred, v1, v2, v3)
bool_constant< B > Bool
Definition: TypeList.h:81
TEST_F ( EXPECT_PRED3Test  ,
FunctionOnBuiltInTypeFailure   
)

Definition at line 1043 of file gtest_pred_impl_unittest.cc.

References EXPECT_NONFATAL_FAILURE, EXPECT_PRED3, and PredFunction3Int().

1043  {
1044  EXPECT_NONFATAL_FAILURE({ // NOLINT
1046  n1_++,
1047  n2_++,
1048  n3_++);
1049  finished_ = true;
1050  }, "");
1051 }
#define EXPECT_PRED3(pred, v1, v2, v3)
bool PredFunction3Int(int v1, int v2, int v3)
#define EXPECT_NONFATAL_FAILURE(statement, substr)
Definition: gtest-spi.h:204
TEST_F ( EXPECT_PRED3Test  ,
FunctionOnUserTypeFailure   
)

Definition at line 1055 of file gtest_pred_impl_unittest.cc.

References Bool::Bool(), EXPECT_NONFATAL_FAILURE, EXPECT_PRED3, and PredFunction3Bool().

1055  {
1056  EXPECT_NONFATAL_FAILURE({ // NOLINT
1058  Bool(n1_++),
1059  Bool(n2_++),
1060  Bool(n3_++));
1061  finished_ = true;
1062  }, "");
1063 }
#define EXPECT_PRED3(pred, v1, v2, v3)
bool PredFunction3Bool(Bool v1, Bool v2, Bool v3)
#define EXPECT_NONFATAL_FAILURE(statement, substr)
Definition: gtest-spi.h:204
bool_constant< B > Bool
Definition: TypeList.h:81
TEST_F ( EXPECT_PRED3Test  ,
FunctorOnBuiltInTypeFailure   
)

Definition at line 1067 of file gtest_pred_impl_unittest.cc.

References EXPECT_NONFATAL_FAILURE, and EXPECT_PRED3.

1067  {
1068  EXPECT_NONFATAL_FAILURE({ // NOLINT
1070  n1_++,
1071  n2_++,
1072  n3_++);
1073  finished_ = true;
1074  }, "");
1075 }
#define EXPECT_PRED3(pred, v1, v2, v3)
#define EXPECT_NONFATAL_FAILURE(statement, substr)
Definition: gtest-spi.h:204
TEST_F ( EXPECT_PRED3Test  ,
FunctorOnUserTypeFailure   
)

Definition at line 1079 of file gtest_pred_impl_unittest.cc.

References ASSERT_PRED3, ASSERT_PRED_FORMAT3, Bool::Bool(), EXPECT_FATAL_FAILURE, EXPECT_NONFATAL_FAILURE, EXPECT_PRED3, EXPECT_PRED_FORMAT3, PredFormatFunction3(), PredFunction3Bool(), PredFunction3Int(), and TEST_F().

1079  {
1080  EXPECT_NONFATAL_FAILURE({ // NOLINT
1082  Bool(n1_++),
1083  Bool(n2_++),
1084  Bool(n3_++));
1085  finished_ = true;
1086  }, "");
1087 }
#define EXPECT_PRED3(pred, v1, v2, v3)
#define EXPECT_NONFATAL_FAILURE(statement, substr)
Definition: gtest-spi.h:204
bool_constant< B > Bool
Definition: TypeList.h:81
TEST_F ( EXPECT_PRED4Test  ,
FunctionOnBuiltInTypeSuccess   
)

Definition at line 1484 of file gtest_pred_impl_unittest.cc.

References EXPECT_PRED4, and PredFunction4Int().

1484  {
1486  ++n1_,
1487  ++n2_,
1488  ++n3_,
1489  ++n4_);
1490  finished_ = true;
1491 }
bool PredFunction4Int(int v1, int v2, int v3, int v4)
#define EXPECT_PRED4(pred, v1, v2, v3, v4)
TEST_F ( EXPECT_PRED4Test  ,
FunctionOnUserTypeSuccess   
)

Definition at line 1495 of file gtest_pred_impl_unittest.cc.

References Bool::Bool(), EXPECT_PRED4, and PredFunction4Bool().

1495  {
1497  Bool(++n1_),
1498  Bool(++n2_),
1499  Bool(++n3_),
1500  Bool(++n4_));
1501  finished_ = true;
1502 }
#define EXPECT_PRED4(pred, v1, v2, v3, v4)
bool_constant< B > Bool
Definition: TypeList.h:81
bool PredFunction4Bool(Bool v1, Bool v2, Bool v3, Bool v4)
TEST_F ( EXPECT_PRED4Test  ,
FunctorOnBuiltInTypeSuccess   
)

Definition at line 1506 of file gtest_pred_impl_unittest.cc.

References EXPECT_PRED4.

1506  {
1508  ++n1_,
1509  ++n2_,
1510  ++n3_,
1511  ++n4_);
1512  finished_ = true;
1513 }
#define EXPECT_PRED4(pred, v1, v2, v3, v4)
TEST_F ( EXPECT_PRED4Test  ,
FunctorOnUserTypeSuccess   
)

Definition at line 1517 of file gtest_pred_impl_unittest.cc.

References Bool::Bool(), and EXPECT_PRED4.

1517  {
1519  Bool(++n1_),
1520  Bool(++n2_),
1521  Bool(++n3_),
1522  Bool(++n4_));
1523  finished_ = true;
1524 }
#define EXPECT_PRED4(pred, v1, v2, v3, v4)
bool_constant< B > Bool
Definition: TypeList.h:81
TEST_F ( EXPECT_PRED4Test  ,
FunctionOnBuiltInTypeFailure   
)

Definition at line 1528 of file gtest_pred_impl_unittest.cc.

References EXPECT_NONFATAL_FAILURE, EXPECT_PRED4, and PredFunction4Int().

1528  {
1529  EXPECT_NONFATAL_FAILURE({ // NOLINT
1531  n1_++,
1532  n2_++,
1533  n3_++,
1534  n4_++);
1535  finished_ = true;
1536  }, "");
1537 }
bool PredFunction4Int(int v1, int v2, int v3, int v4)
#define EXPECT_PRED4(pred, v1, v2, v3, v4)
#define EXPECT_NONFATAL_FAILURE(statement, substr)
Definition: gtest-spi.h:204
TEST_F ( EXPECT_PRED4Test  ,
FunctionOnUserTypeFailure   
)

Definition at line 1541 of file gtest_pred_impl_unittest.cc.

References Bool::Bool(), EXPECT_NONFATAL_FAILURE, EXPECT_PRED4, and PredFunction4Bool().

1541  {
1542  EXPECT_NONFATAL_FAILURE({ // NOLINT
1544  Bool(n1_++),
1545  Bool(n2_++),
1546  Bool(n3_++),
1547  Bool(n4_++));
1548  finished_ = true;
1549  }, "");
1550 }
#define EXPECT_PRED4(pred, v1, v2, v3, v4)
#define EXPECT_NONFATAL_FAILURE(statement, substr)
Definition: gtest-spi.h:204
bool_constant< B > Bool
Definition: TypeList.h:81
bool PredFunction4Bool(Bool v1, Bool v2, Bool v3, Bool v4)
TEST_F ( EXPECT_PRED4Test  ,
FunctorOnBuiltInTypeFailure   
)

Definition at line 1554 of file gtest_pred_impl_unittest.cc.

References EXPECT_NONFATAL_FAILURE, and EXPECT_PRED4.

1554  {
1555  EXPECT_NONFATAL_FAILURE({ // NOLINT
1557  n1_++,
1558  n2_++,
1559  n3_++,
1560  n4_++);
1561  finished_ = true;
1562  }, "");
1563 }
#define EXPECT_PRED4(pred, v1, v2, v3, v4)
#define EXPECT_NONFATAL_FAILURE(statement, substr)
Definition: gtest-spi.h:204
TEST_F ( EXPECT_PRED4Test  ,
FunctorOnUserTypeFailure   
)

Definition at line 1567 of file gtest_pred_impl_unittest.cc.

References ASSERT_PRED4, ASSERT_PRED_FORMAT4, Bool::Bool(), EXPECT_FATAL_FAILURE, EXPECT_NONFATAL_FAILURE, EXPECT_PRED4, EXPECT_PRED_FORMAT4, PredFormatFunction4(), PredFunction4Bool(), PredFunction4Int(), and TEST_F().

1567  {
1568  EXPECT_NONFATAL_FAILURE({ // NOLINT
1570  Bool(n1_++),
1571  Bool(n2_++),
1572  Bool(n3_++),
1573  Bool(n4_++));
1574  finished_ = true;
1575  }, "");
1576 }
#define EXPECT_PRED4(pred, v1, v2, v3, v4)
#define EXPECT_NONFATAL_FAILURE(statement, substr)
Definition: gtest-spi.h:204
bool_constant< B > Bool
Definition: TypeList.h:81
TEST_F ( EXPECT_PRED5Test  ,
FunctionOnBuiltInTypeSuccess   
)

Definition at line 2007 of file gtest_pred_impl_unittest.cc.

References EXPECT_PRED5, and PredFunction5Int().

2007  {
2009  ++n1_,
2010  ++n2_,
2011  ++n3_,
2012  ++n4_,
2013  ++n5_);
2014  finished_ = true;
2015 }
bool PredFunction5Int(int v1, int v2, int v3, int v4, int v5)
#define EXPECT_PRED5(pred, v1, v2, v3, v4, v5)
TEST_F ( EXPECT_PRED5Test  ,
FunctionOnUserTypeSuccess   
)

Definition at line 2019 of file gtest_pred_impl_unittest.cc.

References Bool::Bool(), EXPECT_PRED5, and PredFunction5Bool().

2019  {
2021  Bool(++n1_),
2022  Bool(++n2_),
2023  Bool(++n3_),
2024  Bool(++n4_),
2025  Bool(++n5_));
2026  finished_ = true;
2027 }
#define EXPECT_PRED5(pred, v1, v2, v3, v4, v5)
bool_constant< B > Bool
Definition: TypeList.h:81
bool PredFunction5Bool(Bool v1, Bool v2, Bool v3, Bool v4, Bool v5)
TEST_F ( EXPECT_PRED5Test  ,
FunctorOnBuiltInTypeSuccess   
)

Definition at line 2031 of file gtest_pred_impl_unittest.cc.

References EXPECT_PRED5.

2031  {
2033  ++n1_,
2034  ++n2_,
2035  ++n3_,
2036  ++n4_,
2037  ++n5_);
2038  finished_ = true;
2039 }
#define EXPECT_PRED5(pred, v1, v2, v3, v4, v5)
TEST_F ( EXPECT_PRED5Test  ,
FunctorOnUserTypeSuccess   
)

Definition at line 2043 of file gtest_pred_impl_unittest.cc.

References Bool::Bool(), and EXPECT_PRED5.

2043  {
2045  Bool(++n1_),
2046  Bool(++n2_),
2047  Bool(++n3_),
2048  Bool(++n4_),
2049  Bool(++n5_));
2050  finished_ = true;
2051 }
#define EXPECT_PRED5(pred, v1, v2, v3, v4, v5)
bool_constant< B > Bool
Definition: TypeList.h:81
TEST_F ( EXPECT_PRED5Test  ,
FunctionOnBuiltInTypeFailure   
)

Definition at line 2055 of file gtest_pred_impl_unittest.cc.

References EXPECT_NONFATAL_FAILURE, EXPECT_PRED5, and PredFunction5Int().

2055  {
2056  EXPECT_NONFATAL_FAILURE({ // NOLINT
2058  n1_++,
2059  n2_++,
2060  n3_++,
2061  n4_++,
2062  n5_++);
2063  finished_ = true;
2064  }, "");
2065 }
bool PredFunction5Int(int v1, int v2, int v3, int v4, int v5)
#define EXPECT_PRED5(pred, v1, v2, v3, v4, v5)
#define EXPECT_NONFATAL_FAILURE(statement, substr)
Definition: gtest-spi.h:204
TEST_F ( EXPECT_PRED5Test  ,
FunctionOnUserTypeFailure   
)

Definition at line 2069 of file gtest_pred_impl_unittest.cc.

References Bool::Bool(), EXPECT_NONFATAL_FAILURE, EXPECT_PRED5, and PredFunction5Bool().

2069  {
2070  EXPECT_NONFATAL_FAILURE({ // NOLINT
2072  Bool(n1_++),
2073  Bool(n2_++),
2074  Bool(n3_++),
2075  Bool(n4_++),
2076  Bool(n5_++));
2077  finished_ = true;
2078  }, "");
2079 }
#define EXPECT_PRED5(pred, v1, v2, v3, v4, v5)
#define EXPECT_NONFATAL_FAILURE(statement, substr)
Definition: gtest-spi.h:204
bool_constant< B > Bool
Definition: TypeList.h:81
bool PredFunction5Bool(Bool v1, Bool v2, Bool v3, Bool v4, Bool v5)
TEST_F ( EXPECT_PRED5Test  ,
FunctorOnBuiltInTypeFailure   
)

Definition at line 2083 of file gtest_pred_impl_unittest.cc.

References EXPECT_NONFATAL_FAILURE, and EXPECT_PRED5.

2083  {
2084  EXPECT_NONFATAL_FAILURE({ // NOLINT
2086  n1_++,
2087  n2_++,
2088  n3_++,
2089  n4_++,
2090  n5_++);
2091  finished_ = true;
2092  }, "");
2093 }
#define EXPECT_PRED5(pred, v1, v2, v3, v4, v5)
#define EXPECT_NONFATAL_FAILURE(statement, substr)
Definition: gtest-spi.h:204
TEST_F ( EXPECT_PRED5Test  ,
FunctorOnUserTypeFailure   
)

Definition at line 2097 of file gtest_pred_impl_unittest.cc.

References ASSERT_PRED5, ASSERT_PRED_FORMAT5, Bool::Bool(), EXPECT_FATAL_FAILURE, EXPECT_NONFATAL_FAILURE, EXPECT_PRED5, EXPECT_PRED_FORMAT5, PredFormatFunction5(), PredFunction5Bool(), PredFunction5Int(), and TEST_F().

2097  {
2098  EXPECT_NONFATAL_FAILURE({ // NOLINT
2100  Bool(n1_++),
2101  Bool(n2_++),
2102  Bool(n3_++),
2103  Bool(n4_++),
2104  Bool(n5_++));
2105  finished_ = true;
2106  }, "");
2107 }
#define EXPECT_PRED5(pred, v1, v2, v3, v4, v5)
#define EXPECT_NONFATAL_FAILURE(statement, substr)
Definition: gtest-spi.h:204
bool_constant< B > Bool
Definition: TypeList.h:81