70 return os << (x.
value ?
"true" :
"false");
93 template <
typename T1>
100template <
typename T1>
108 <<
" is expected to be positive, but evaluates to "
114 template <
typename T1>
116 const T1& v1)
const {
135 "The predicate assertion didn't evaluate argument 2 "
140 FAIL() <<
"The predicate assertion unexpactedly aborted the test.";
142 FAIL() <<
"The failed predicate assertion didn't abort the test "
272 expected_to_finish_ =
false;
283 expected_to_finish_ =
false;
294 expected_to_finish_ =
false;
305 expected_to_finish_ =
false;
420 expected_to_finish_ =
false;
431 expected_to_finish_ =
false;
442 expected_to_finish_ =
false;
453 expected_to_finish_ =
false;
463template <
typename T1,
typename T2>
480 template <
typename T1,
typename T2>
488template <
typename T1,
typename T2>
498 <<
" is expected to be positive, but evaluates to "
504 template <
typename T1,
typename T2>
508 const T2& v2)
const {
527 "The predicate assertion didn't evaluate argument 2 "
530 "The predicate assertion didn't evaluate argument 3 "
535 FAIL() <<
"The predicate assertion unexpactedly aborted the test.";
537 FAIL() <<
"The failed predicate assertion didn't abort the test "
681 expected_to_finish_ =
false;
693 expected_to_finish_ =
false;
705 expected_to_finish_ =
false;
717 expected_to_finish_ =
false;
845 expected_to_finish_ =
false;
857 expected_to_finish_ =
false;
869 expected_to_finish_ =
false;
881 expected_to_finish_ =
false;
892template <
typename T1,
typename T2,
typename T3>
894 return v1 + v2 + v3 > 0;
901 return v1 + v2 + v3 > 0;
904 return v1 + v2 + v3 > 0;
909 template <
typename T1,
typename T2,
typename T3>
913 return v1 + v2 + v3 > 0;
918template <
typename T1,
typename T2,
typename T3>
929 << e1 <<
" + " << e2 <<
" + " << e3
930 <<
" is expected to be positive, but evaluates to "
931 << v1 + v2 + v3 <<
".";
936 template <
typename T1,
typename T2,
typename T3>
942 const T3& v3)
const {
961 "The predicate assertion didn't evaluate argument 2 "
964 "The predicate assertion didn't evaluate argument 3 "
967 "The predicate assertion didn't evaluate argument 4 "
972 FAIL() <<
"The predicate assertion unexpactedly aborted the test.";
974 FAIL() <<
"The failed predicate assertion didn't abort the test "
1132 expected_to_finish_ =
false;
1145 expected_to_finish_ =
false;
1158 expected_to_finish_ =
false;
1171 expected_to_finish_ =
false;
1312 expected_to_finish_ =
false;
1325 expected_to_finish_ =
false;
1338 expected_to_finish_ =
false;
1351 expected_to_finish_ =
false;
1363template <
typename T1,
typename T2,
typename T3,
typename T4>
1365 return v1 + v2 + v3 + v4 > 0;
1372 return v1 + v2 + v3 + v4 > 0;
1375 return v1 + v2 + v3 + v4 > 0;
1380 template <
typename T1,
typename T2,
typename T3,
typename T4>
1385 return v1 + v2 + v3 + v4 > 0;
1390template <
typename T1,
typename T2,
typename T3,
typename T4>
1403 << e1 <<
" + " << e2 <<
" + " << e3 <<
" + " << e4
1404 <<
" is expected to be positive, but evaluates to "
1405 << v1 + v2 + v3 + v4 <<
".";
1410 template <
typename T1,
typename T2,
typename T3,
typename T4>
1418 const T4& v4)
const {
1437 "The predicate assertion didn't evaluate argument 2 "
1440 "The predicate assertion didn't evaluate argument 3 "
1443 "The predicate assertion didn't evaluate argument 4 "
1446 "The predicate assertion didn't evaluate argument 5 "
1451 FAIL() <<
"The predicate assertion unexpactedly aborted the test.";
1453 FAIL() <<
"The failed predicate assertion didn't abort the test "
1625 expected_to_finish_ =
false;
1639 expected_to_finish_ =
false;
1653 expected_to_finish_ =
false;
1667 expected_to_finish_ =
false;
1821 expected_to_finish_ =
false;
1835 expected_to_finish_ =
false;
1849 expected_to_finish_ =
false;
1863 expected_to_finish_ =
false;
1876template <
typename T1,
typename T2,
typename T3,
typename T4,
typename T5>
1878 return v1 + v2 + v3 + v4 + v5 > 0;
1885 return v1 + v2 + v3 + v4 + v5 > 0;
1888 return v1 + v2 + v3 + v4 + v5 > 0;
1893 template <
typename T1,
typename T2,
typename T3,
typename T4,
typename T5>
1899 return v1 + v2 + v3 + v4 + v5 > 0;
1904template <
typename T1,
typename T2,
typename T3,
typename T4,
typename T5>
1919 << e1 <<
" + " << e2 <<
" + " << e3 <<
" + " << e4 <<
" + " << e5
1920 <<
" is expected to be positive, but evaluates to "
1921 << v1 + v2 + v3 + v4 + v5 <<
".";
1926 template <
typename T1,
typename T2,
typename T3,
typename T4,
typename T5>
1936 const T5& v5)
const {
1955 "The predicate assertion didn't evaluate argument 2 "
1958 "The predicate assertion didn't evaluate argument 3 "
1961 "The predicate assertion didn't evaluate argument 4 "
1964 "The predicate assertion didn't evaluate argument 5 "
1967 "The predicate assertion didn't evaluate argument 6 "
1972 FAIL() <<
"The predicate assertion unexpactedly aborted the test.";
1974 FAIL() <<
"The failed predicate assertion didn't abort the test "
2160 expected_to_finish_ =
false;
2175 expected_to_finish_ =
false;
2190 expected_to_finish_ =
false;
2205 expected_to_finish_ =
false;
2372 expected_to_finish_ =
false;
2387 expected_to_finish_ =
false;
2402 expected_to_finish_ =
false;
2417 expected_to_finish_ =
false;
static bool expected_to_finish_
static bool expected_to_finish_
static bool expected_to_finish_
static bool expected_to_finish_
static bool expected_to_finish_
#define EXPECT_FATAL_FAILURE(statement, substr)
#define EXPECT_NONFATAL_FAILURE(statement, substr)
#define TEST_F(test_fixture, test_name)
#define EXPECT_EQ(val1, val2)
#define EXPECT_PRED_FORMAT1(pred_format, v1)
#define EXPECT_PRED3(pred, v1, v2, v3)
#define EXPECT_PRED2(pred, v1, v2)
#define ASSERT_PRED_FORMAT4(pred_format, v1, v2, v3, v4)
#define EXPECT_PRED_FORMAT4(pred_format, v1, v2, v3, v4)
#define ASSERT_PRED_FORMAT1(pred_format, v1)
#define ASSERT_PRED_FORMAT3(pred_format, v1, v2, v3)
#define ASSERT_PRED2(pred, v1, v2)
#define EXPECT_PRED4(pred, v1, v2, v3, v4)
#define EXPECT_PRED1(pred, v1)
#define EXPECT_PRED_FORMAT3(pred_format, v1, v2, v3)
#define EXPECT_PRED_FORMAT5(pred_format, v1, v2, v3, v4, v5)
#define ASSERT_PRED1(pred, v1)
#define ASSERT_PRED3(pred, v1, v2, v3)
#define ASSERT_PRED_FORMAT5(pred_format, v1, v2, v3, v4, v5)
#define ASSERT_PRED_FORMAT2(pred_format, v1, v2)
#define EXPECT_PRED5(pred, v1, v2, v3, v4, v5)
#define ASSERT_PRED4(pred, v1, v2, v3, v4)
#define EXPECT_PRED_FORMAT2(pred_format, v1, v2)
#define ASSERT_PRED5(pred, v1, v2, v3, v4, v5)
Predicate4Test ASSERT_PRED4Test
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)
bool PredFunction1Int(int v1)
bool PredFunction4Int(int v1, int v2, int v3, int v4)
Predicate1Test ASSERT_PRED1Test
Predicate3Test EXPECT_PRED3Test
Predicate2Test ASSERT_PRED2Test
bool PredFunction1Bool(Bool v1)
Predicate2Test EXPECT_PRED2Test
Predicate4Test EXPECT_PRED_FORMAT4Test
bool PredFunction3Int(int v1, int v2, int v3)
Predicate3Test EXPECT_PRED_FORMAT3Test
Predicate1Test EXPECT_PRED_FORMAT1Test
bool PredFunction4Bool(Bool v1, Bool v2, Bool v3, Bool v4)
std::ostream & operator<<(std::ostream &os, const Bool &x)
Predicate3Test ASSERT_PRED3Test
bool PredFunction4(T1 v1, T2 v2, T3 v3, T4 v4)
bool PredFunction2(T1 v1, T2 v2)
bool PredFunction5Bool(Bool v1, Bool v2, Bool v3, Bool v4, Bool v5)
Predicate1Test ASSERT_PRED_FORMAT1Test
bool PredFunction3(T1 v1, T2 v2, T3 v3)
bool PredFunction2Int(int v1, int v2)
Predicate2Test EXPECT_PRED_FORMAT2Test
Predicate5Test ASSERT_PRED5Test
Predicate2Test ASSERT_PRED_FORMAT2Test
Predicate5Test EXPECT_PRED5Test
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)
bool PredFunction1(T1 v1)
bool PredFunction5(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5)
bool PredFunction2Bool(Bool v1, Bool v2)
Predicate4Test EXPECT_PRED4Test
testing::AssertionResult PredFormatFunction3(const char *e1, const char *e2, const char *e3, const T1 &v1, const T2 &v2, const T3 &v3)
Predicate4Test ASSERT_PRED_FORMAT4Test
bool PredFunction5Int(int v1, int v2, int v3, int v4, int v5)
Predicate3Test ASSERT_PRED_FORMAT3Test
testing::AssertionResult PredFormatFunction2(const char *e1, const char *e2, const T1 &v1, const T2 &v2)
Predicate5Test ASSERT_PRED_FORMAT5Test
Predicate1Test EXPECT_PRED1Test
Predicate5Test EXPECT_PRED_FORMAT5Test
testing::AssertionResult PredFormatFunction1(const char *e1, const T1 &v1)
bool PredFunction3Bool(Bool v1, Bool v2, Bool v3)
GTEST_API_ AssertionResult AssertionFailure()
GTEST_API_ AssertionResult AssertionSuccess()
Bool operator+(const Bool &rhs) const
bool operator>(int n) const
bool operator==(const Bool &rhs) const
bool operator()(const T1 &v1)
bool operator()(const T1 &v1, const T2 &v2)
bool operator()(const T1 &v1, const T2 &v2, const T3 &v3)
bool operator()(const T1 &v1, const T2 &v2, const T3 &v3, const T4 &v4)
bool operator()(const T1 &v1, const T2 &v2, const T3 &v3, const T4 &v4, const T5 &v5)