Home | History | Annotate | Download | only in test

Lines Matching refs:n2

2430 bool SumIsEven2(int n1, int n2) {
2431 return IsEven(n1 + n2);
2437 bool operator()(int n1, int n2, int n3) {
2438 return IsEven(n1 + n2 + n3);
2446 int n1, int n2, int n3, int n4) {
2447 const int sum = n1 + n2 + n3 + n4;
2454 << " (" << n1 << " + " << n2 << " + " << n3 << " + " << n4
2464 const char* e5, int n1, int n2, int n3, int n4, int n5) {
2465 const int sum = n1 + n2 + n3 + n4 + n5;
2473 << n1 << " + " << n2 << " + " << n3 << " + " << n4 << " + " << n5
2539 const int n2 = 2;
2541 EXPECT_PRED2(SumIsEven2, n1, n2) << "This failure is expected.";
2557 const int n2 = 2;
2561 EXPECT_PRED_FORMAT4(AssertSumIsEven4, n1, n2, n3, n4);
2574 int n2 = 0;
2575 EXPECT_PRED2(SumIsEven2, n1++, n2++);
2577 EXPECT_EQ(1, n2) << "Argument 2 is not evaluated exactly once.";
2580 n1 = n2 = 0;
2585 n1++, n2++, n3++, n4++, n5++)
2588 EXPECT_EQ(1, n2) << "Argument 2 is not evaluated exactly once.";
2594 n1 = n2 = n3 = 0;
2596 EXPECT_PRED3(SumIsEven3Functor(), ++n1, n2++, n3++)
2600 EXPECT_EQ(1, n2) << "Argument 2 is not evaluated exactly once.";
2604 n1 = n2 = n3 = n4 = 0;
2606 EXPECT_PRED_FORMAT4(AssertSumIsEven4, ++n1, n2++, n3++, n4++);
2609 EXPECT_EQ(1, n2) << "Argument 2 is not evaluated exactly once.";