Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
Predicate2Test Class Reference
Inheritance diagram for Predicate2Test:
Collaboration diagram for Predicate2Test:

Protected Member Functions

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

Static Protected Attributes

static bool expected_to_finish_
 
static bool finished_
 
static int n1_
 
static int n2_
 

Additional Inherited Members

- Public Types inherited from testing::Test
typedef internal::SetUpTestCaseFunc SetUpTestCaseFunc
 
typedef internal::TearDownTestCaseFunc TearDownTestCaseFunc
 
- Public Member Functions inherited from testing::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)
 

Detailed Description

Definition at line 515 of file gtest_pred_impl_unittest.cc.

Member Function Documentation

◆ SetUp()

virtual void Predicate2Test::SetUp ( )
inlineprotectedvirtual

Reimplemented from testing::Test.

Definition at line 517 of file gtest_pred_impl_unittest.cc.

517 {
518 expected_to_finish_ = true;
519 finished_ = false;
520 n1_ = n2_ = 0;
521 }

◆ TearDown()

virtual void Predicate2Test::TearDown ( )
inlineprotectedvirtual

Reimplemented from testing::Test.

Definition at line 523 of file gtest_pred_impl_unittest.cc.

523 {
524 // Verifies that each of the predicate's arguments was evaluated
525 // exactly once.
526 EXPECT_EQ(1, n1_) <<
527 "The predicate assertion didn't evaluate argument 2 "
528 "exactly once.";
529 EXPECT_EQ(1, n2_) <<
530 "The predicate assertion didn't evaluate argument 3 "
531 "exactly once.";
532
533 // Verifies that the control flow in the test function is expected.
535 FAIL() << "The predicate assertion unexpactedly aborted the test.";
536 } else if (!expected_to_finish_ && finished_) {
537 FAIL() << "The failed predicate assertion didn't abort the test "
538 "as expected.";
539 }
540 }
#define FAIL()
Definition gtest.h:1858
#define EXPECT_EQ(val1, val2)
Definition gtest.h:1954

Member Data Documentation

◆ expected_to_finish_

bool Predicate2Test::expected_to_finish_
staticprotected

Definition at line 543 of file gtest_pred_impl_unittest.cc.

◆ finished_

bool Predicate2Test::finished_
staticprotected

Definition at line 546 of file gtest_pred_impl_unittest.cc.

◆ n1_

int Predicate2Test::n1_
staticprotected

Definition at line 548 of file gtest_pred_impl_unittest.cc.

◆ n2_

int Predicate2Test::n2_
staticprotected

Definition at line 549 of file gtest_pred_impl_unittest.cc.


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