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

Public Types

enum  FailureMode { FATAL_FAILURE , NONFATAL_FAILURE }
 
- Public Types inherited from testing::Test
typedef internal::SetUpTestCaseFunc SetUpTestCaseFunc
 
typedef internal::TearDownTestCaseFunc TearDownTestCaseFunc
 

Static Public Member Functions

static void AddFailure (FailureMode failure)
 
- 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)
 

Additional Inherited Members

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

Detailed Description

Definition at line 882 of file gtest_output_test_.cc.

Member Enumeration Documentation

◆ FailureMode

Enumerator
FATAL_FAILURE 
NONFATAL_FAILURE 

Definition at line 884 of file gtest_output_test_.cc.

Member Function Documentation

◆ AddFailure()

static void ExpectFailureTest::AddFailure ( FailureMode failure)
inlinestatic

Definition at line 888 of file gtest_output_test_.cc.

888 {
889 if (failure == FATAL_FAILURE) {
890 FAIL() << "Expected fatal failure.";
891 } else {
892 ADD_FAILURE() << "Expected non-fatal failure.";
893 }
894 }
#define FAIL()
Definition gtest.h:1858
#define ADD_FAILURE()
Definition gtest.h:1844

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