proxygen
Predicate5Test Class Reference
Inheritance diagram for Predicate5Test:
testing::Test testing::Test testing::Test

Protected Member Functions

virtual void SetUp ()
 
virtual void TearDown ()
 
virtual void SetUp ()
 
virtual void TearDown ()
 
virtual void SetUp ()
 
virtual void TearDown ()
 
- Protected Member Functions inherited from testing::Test
 Test ()
 
 Test ()
 
 Test ()
 

Static Protected Attributes

static bool expected_to_finish_
 
static bool finished_
 
static int n1_
 
static int n2_
 
static int n3_
 
static int n4_
 
static int n5_
 

Additional Inherited Members

- Public Types inherited from testing::Test
typedef internal::SetUpTestCaseFunc SetUpTestCaseFunc
 
typedef internal::TearDownTestCaseFunc TearDownTestCaseFunc
 
typedef internal::SetUpTestCaseFunc SetUpTestCaseFunc
 
typedef internal::TearDownTestCaseFunc TearDownTestCaseFunc
 
typedef internal::SetUpTestCaseFunc SetUpTestCaseFunc
 
typedef internal::TearDownTestCaseFunc TearDownTestCaseFunc
 
- Public Member Functions inherited from testing::Test
virtual ~Test ()
 
virtual ~Test ()
 
virtual ~Test ()
 
- Static Public Member Functions inherited from testing::Test
static void SetUpTestCase ()
 
static void TearDownTestCase ()
 
static bool HasFatalFailure ()
 
static bool HasNonfatalFailure ()
 
static bool HasFailure ()
 
static void RecordProperty (const std::string &key, const std::string &value)
 
static void RecordProperty (const std::string &key, int value)
 
static void SetUpTestCase ()
 
static void TearDownTestCase ()
 
static bool HasFatalFailure ()
 
static bool HasNonfatalFailure ()
 
static bool HasFailure ()
 
static void RecordProperty (const std::string &key, const std::string &value)
 
static void RecordProperty (const std::string &key, int value)
 
static void SetUpTestCase ()
 
static void TearDownTestCase ()
 
static bool HasFatalFailure ()
 
static bool HasNonfatalFailure ()
 
static bool HasFailure ()
 
static void RecordProperty (const std::string &key, const std::string &value)
 
static void RecordProperty (const std::string &key, int value)
 

Detailed Description

Definition at line 1943 of file gtest_pred_impl_unittest.cc.

Member Function Documentation

virtual void Predicate5Test::SetUp ( )
inlineprotectedvirtual

Reimplemented from testing::Test.

Definition at line 1945 of file gtest_pred_impl_unittest.cc.

1945  {
1946  expected_to_finish_ = true;
1947  finished_ = false;
1948  n1_ = n2_ = n3_ = n4_ = n5_ = 0;
1949  }
virtual void Predicate5Test::SetUp ( )
inlineprotectedvirtual

Reimplemented from testing::Test.

Definition at line 1945 of file gtest_pred_impl_unittest.cc.

1945  {
1946  expected_to_finish_ = true;
1947  finished_ = false;
1948  n1_ = n2_ = n3_ = n4_ = n5_ = 0;
1949  }
virtual void Predicate5Test::SetUp ( )
inlineprotectedvirtual

Reimplemented from testing::Test.

Definition at line 1945 of file gtest_pred_impl_unittest.cc.

1945  {
1946  expected_to_finish_ = true;
1947  finished_ = false;
1948  n1_ = n2_ = n3_ = n4_ = n5_ = 0;
1949  }
virtual void Predicate5Test::TearDown ( )
inlineprotectedvirtual

Reimplemented from testing::Test.

Definition at line 1951 of file gtest_pred_impl_unittest.cc.

References EXPECT_EQ, expected_to_finish_, FAIL, finished_, n1_, n2_, n3_, n4_, and n5_.

1951  {
1952  // Verifies that each of the predicate's arguments was evaluated
1953  // exactly once.
1954  EXPECT_EQ(1, n1_) <<
1955  "The predicate assertion didn't evaluate argument 2 "
1956  "exactly once.";
1957  EXPECT_EQ(1, n2_) <<
1958  "The predicate assertion didn't evaluate argument 3 "
1959  "exactly once.";
1960  EXPECT_EQ(1, n3_) <<
1961  "The predicate assertion didn't evaluate argument 4 "
1962  "exactly once.";
1963  EXPECT_EQ(1, n4_) <<
1964  "The predicate assertion didn't evaluate argument 5 "
1965  "exactly once.";
1966  EXPECT_EQ(1, n5_) <<
1967  "The predicate assertion didn't evaluate argument 6 "
1968  "exactly once.";
1969 
1970  // Verifies that the control flow in the test function is expected.
1971  if (expected_to_finish_ && !finished_) {
1972  FAIL() << "The predicate assertion unexpactedly aborted the test.";
1973  } else if (!expected_to_finish_ && finished_) {
1974  FAIL() << "The failed predicate assertion didn't abort the test "
1975  "as expected.";
1976  }
1977  }
#define FAIL()
Definition: gtest.h:1822
#define EXPECT_EQ(val1, val2)
Definition: gtest.h:1922
virtual void Predicate5Test::TearDown ( )
inlineprotectedvirtual

Reimplemented from testing::Test.

Definition at line 1951 of file gtest_pred_impl_unittest.cc.

References EXPECT_EQ, and FAIL.

1951  {
1952  // Verifies that each of the predicate's arguments was evaluated
1953  // exactly once.
1954  EXPECT_EQ(1, n1_) <<
1955  "The predicate assertion didn't evaluate argument 2 "
1956  "exactly once.";
1957  EXPECT_EQ(1, n2_) <<
1958  "The predicate assertion didn't evaluate argument 3 "
1959  "exactly once.";
1960  EXPECT_EQ(1, n3_) <<
1961  "The predicate assertion didn't evaluate argument 4 "
1962  "exactly once.";
1963  EXPECT_EQ(1, n4_) <<
1964  "The predicate assertion didn't evaluate argument 5 "
1965  "exactly once.";
1966  EXPECT_EQ(1, n5_) <<
1967  "The predicate assertion didn't evaluate argument 6 "
1968  "exactly once.";
1969 
1970  // Verifies that the control flow in the test function is expected.
1971  if (expected_to_finish_ && !finished_) {
1972  FAIL() << "The predicate assertion unexpactedly aborted the test.";
1973  } else if (!expected_to_finish_ && finished_) {
1974  FAIL() << "The failed predicate assertion didn't abort the test "
1975  "as expected.";
1976  }
1977  }
#define FAIL()
Definition: gtest.h:1822
#define EXPECT_EQ(val1, val2)
Definition: gtest.h:1922
virtual void Predicate5Test::TearDown ( )
inlineprotectedvirtual

Reimplemented from testing::Test.

Definition at line 1951 of file gtest_pred_impl_unittest.cc.

References EXPECT_EQ, expected_to_finish_, FAIL, finished_, n1_, n2_, n3_, n4_, and n5_.

1951  {
1952  // Verifies that each of the predicate's arguments was evaluated
1953  // exactly once.
1954  EXPECT_EQ(1, n1_) <<
1955  "The predicate assertion didn't evaluate argument 2 "
1956  "exactly once.";
1957  EXPECT_EQ(1, n2_) <<
1958  "The predicate assertion didn't evaluate argument 3 "
1959  "exactly once.";
1960  EXPECT_EQ(1, n3_) <<
1961  "The predicate assertion didn't evaluate argument 4 "
1962  "exactly once.";
1963  EXPECT_EQ(1, n4_) <<
1964  "The predicate assertion didn't evaluate argument 5 "
1965  "exactly once.";
1966  EXPECT_EQ(1, n5_) <<
1967  "The predicate assertion didn't evaluate argument 6 "
1968  "exactly once.";
1969 
1970  // Verifies that the control flow in the test function is expected.
1971  if (expected_to_finish_ && !finished_) {
1972  FAIL() << "The predicate assertion unexpactedly aborted the test.";
1973  } else if (!expected_to_finish_ && finished_) {
1974  FAIL() << "The failed predicate assertion didn't abort the test "
1975  "as expected.";
1976  }
1977  }
#define FAIL()
Definition: gtest.h:1822
#define EXPECT_EQ(val1, val2)
Definition: gtest.h:1922

Member Data Documentation

bool Predicate5Test::expected_to_finish_
staticprotected

Definition at line 1980 of file gtest_pred_impl_unittest.cc.

Referenced by TearDown().

bool Predicate5Test::finished_
staticprotected

Definition at line 1983 of file gtest_pred_impl_unittest.cc.

Referenced by TearDown().

int Predicate5Test::n1_
staticprotected

Definition at line 1985 of file gtest_pred_impl_unittest.cc.

Referenced by TearDown().

int Predicate5Test::n2_
staticprotected

Definition at line 1986 of file gtest_pred_impl_unittest.cc.

Referenced by TearDown().

int Predicate5Test::n3_
staticprotected

Definition at line 1987 of file gtest_pred_impl_unittest.cc.

Referenced by TearDown().

int Predicate5Test::n4_
staticprotected

Definition at line 1988 of file gtest_pred_impl_unittest.cc.

Referenced by TearDown().

int Predicate5Test::n5_
staticprotected

Definition at line 1989 of file gtest_pred_impl_unittest.cc.

Referenced by TearDown().


The documentation for this class was generated from the following file: