proxygen
Predicate1Test Class Reference
Inheritance diagram for Predicate1Test:
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_
 

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 123 of file gtest_pred_impl_unittest.cc.

Member Function Documentation

virtual void Predicate1Test::SetUp ( )
inlineprotectedvirtual

Reimplemented from testing::Test.

Definition at line 125 of file gtest_pred_impl_unittest.cc.

125  {
126  expected_to_finish_ = true;
127  finished_ = false;
128  n1_ = 0;
129  }
virtual void Predicate1Test::SetUp ( )
inlineprotectedvirtual

Reimplemented from testing::Test.

Definition at line 125 of file gtest_pred_impl_unittest.cc.

125  {
126  expected_to_finish_ = true;
127  finished_ = false;
128  n1_ = 0;
129  }
virtual void Predicate1Test::SetUp ( )
inlineprotectedvirtual

Reimplemented from testing::Test.

Definition at line 125 of file gtest_pred_impl_unittest.cc.

125  {
126  expected_to_finish_ = true;
127  finished_ = false;
128  n1_ = 0;
129  }
virtual void Predicate1Test::TearDown ( )
inlineprotectedvirtual

Reimplemented from testing::Test.

Definition at line 131 of file gtest_pred_impl_unittest.cc.

References EXPECT_EQ, expected_to_finish_, FAIL, finished_, and n1_.

131  {
132  // Verifies that each of the predicate's arguments was evaluated
133  // exactly once.
134  EXPECT_EQ(1, n1_) <<
135  "The predicate assertion didn't evaluate argument 2 "
136  "exactly once.";
137 
138  // Verifies that the control flow in the test function is expected.
139  if (expected_to_finish_ && !finished_) {
140  FAIL() << "The predicate assertion unexpactedly aborted the test.";
141  } else if (!expected_to_finish_ && finished_) {
142  FAIL() << "The failed predicate assertion didn't abort the test "
143  "as expected.";
144  }
145  }
#define FAIL()
Definition: gtest.h:1822
#define EXPECT_EQ(val1, val2)
Definition: gtest.h:1922
virtual void Predicate1Test::TearDown ( )
inlineprotectedvirtual

Reimplemented from testing::Test.

Definition at line 131 of file gtest_pred_impl_unittest.cc.

References EXPECT_EQ, and FAIL.

131  {
132  // Verifies that each of the predicate's arguments was evaluated
133  // exactly once.
134  EXPECT_EQ(1, n1_) <<
135  "The predicate assertion didn't evaluate argument 2 "
136  "exactly once.";
137 
138  // Verifies that the control flow in the test function is expected.
139  if (expected_to_finish_ && !finished_) {
140  FAIL() << "The predicate assertion unexpactedly aborted the test.";
141  } else if (!expected_to_finish_ && finished_) {
142  FAIL() << "The failed predicate assertion didn't abort the test "
143  "as expected.";
144  }
145  }
#define FAIL()
Definition: gtest.h:1822
#define EXPECT_EQ(val1, val2)
Definition: gtest.h:1922
virtual void Predicate1Test::TearDown ( )
inlineprotectedvirtual

Reimplemented from testing::Test.

Definition at line 131 of file gtest_pred_impl_unittest.cc.

References EXPECT_EQ, expected_to_finish_, FAIL, finished_, and n1_.

131  {
132  // Verifies that each of the predicate's arguments was evaluated
133  // exactly once.
134  EXPECT_EQ(1, n1_) <<
135  "The predicate assertion didn't evaluate argument 2 "
136  "exactly once.";
137 
138  // Verifies that the control flow in the test function is expected.
139  if (expected_to_finish_ && !finished_) {
140  FAIL() << "The predicate assertion unexpactedly aborted the test.";
141  } else if (!expected_to_finish_ && finished_) {
142  FAIL() << "The failed predicate assertion didn't abort the test "
143  "as expected.";
144  }
145  }
#define FAIL()
Definition: gtest.h:1822
#define EXPECT_EQ(val1, val2)
Definition: gtest.h:1922

Member Data Documentation

bool Predicate1Test::expected_to_finish_
staticprotected

Definition at line 148 of file gtest_pred_impl_unittest.cc.

Referenced by TearDown().

bool Predicate1Test::finished_
staticprotected

Definition at line 151 of file gtest_pred_impl_unittest.cc.

Referenced by TearDown().

int Predicate1Test::n1_
staticprotected

Definition at line 153 of file gtest_pred_impl_unittest.cc.

Referenced by TearDown().


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