Lines Matching defs:v1

75 bool PredFunction1(T1 v1) {
76 return v1 > 0;
81 bool PredFunction1Int(int v1) { return v1 > 0; }
82 bool PredFunction1Bool(Bool v1) { return v1 > 0; }
87 bool operator()(const T1& v1) {
88 return v1 > 0;
94 testing::AssertionResult PredFormatFunction1(const char* e1, const T1& v1) {
95 if (PredFunction1(v1)) return testing::AssertionSuccess();
98 << e1 << " is expected to be positive, but evaluates to " << v1 << ".";
104 testing::AssertionResult operator()(const char* e1, const T1& v1) const {
105 return PredFormatFunction1(e1, v1);
451 bool PredFunction2(T1 v1, T2 v2) {
452 return v1 + v2 > 0;
457 bool PredFunction2Int(int v1, int v2) { return v1 + v2 > 0; }
458 bool PredFunction2Bool(Bool v1, Bool v2) { return v1 + v2 > 0; }
463 bool operator()(const T1& v1, const T2& v2) {
464 return v1 + v2 > 0;
471 const T1& v1, const T2& v2) {
472 if (PredFunction2(v1, v2)) return testing::AssertionSuccess();
476 << " is expected to be positive, but evaluates to " << v1 + v2 << ".";
483 const T1& v1, const T2& v2) const {
484 return PredFormatFunction2(e1, e2, v1, v2);
834 bool PredFunction3(T1 v1, T2 v2, T3 v3) {
835 return v1 + v2 + v3 > 0;
840 bool PredFunction3Int(int v1, int v2, int v3) { return v1 + v2 + v3 > 0; }
841 bool PredFunction3Bool(Bool v1, Bool v2, Bool v3) { return v1 + v2 + v3 > 0; }
846 bool operator()(const T1& v1, const T2& v2, const T3& v3) {
847 return v1 + v2 + v3 > 0;
854 const char* e3, const T1& v1,
856 if (PredFunction3(v1, v2, v3)) return testing::AssertionSuccess();
860 << " is expected to be positive, but evaluates to " << v1 + v2 + v3
868 const char* e3, const T1& v1,
870 return PredFormatFunction3(e1, e2, e3, v1, v2, v3);
1232 bool PredFunction4(T1 v1, T2 v2, T3 v3, T4 v4) {
1233 return v1 + v2 + v3 + v4 > 0;
1238 bool PredFunction4Int(int v1, int v2, int v3, int v4) {
1239 return v1 + v2 + v3 + v4 > 0;
1241 bool PredFunction4Bool(Bool v1, Bool v2, Bool v3, Bool v4) {
1242 return v1 + v2 + v3 + v4 > 0;
1248 bool operator()(const T1& v1, const T2& v2, const T3& v3, const T4& v4) {
1249 return v1 + v2 + v3 + v4 > 0;
1257 const T1& v1, const T2& v2,
1259 if (PredFunction4(v1, v2, v3, v4)) return testing::AssertionSuccess();
1264 << v1 + v2 + v3 + v4 << ".";
1272 const T1& v1, const T2& v2, const T3& v3,
1274 return PredFormatFunction4(e1, e2, e3, e4, v1, v2, v3, v4);
1648 bool PredFunction5(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5) {
1649 return v1 + v2 + v3 + v4 + v5 > 0;
1654 bool PredFunction5Int(int v1, int v2, int v3, int v4, int v5) {
1655 return v1 + v2 + v3 + v4 + v5 > 0;
1657 bool PredFunction5Bool(Bool v1, Bool v2, Bool v3, Bool v4, Bool v5) {
1658 return v1 + v2 + v3 + v4 + v5 > 0;
1664 bool operator()(const T1& v1, const T2& v2, const T3& v3, const T4& v4,
1666 return v1 + v2 + v3 + v4 + v5 > 0;
1674 const char* e5, const T1& v1,
1677 if (PredFunction5(v1, v2, v3, v4, v5)) return testing::AssertionSuccess();
1682 << v1 + v2 + v3 + v4 + v5 << ".";
1690 const char* e5, const T1& v1,
1693 return PredFormatFunction5(e1, e2, e3, e4, e5, v1, v2, v3, v4, v5);