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

Public Types

enum  FailureMode {
  FATAL_FAILURE, NONFATAL_FAILURE, FATAL_FAILURE, NONFATAL_FAILURE,
  FATAL_FAILURE, NONFATAL_FAILURE
}
 
enum  FailureMode {
  FATAL_FAILURE, NONFATAL_FAILURE, FATAL_FAILURE, NONFATAL_FAILURE,
  FATAL_FAILURE, NONFATAL_FAILURE
}
 
enum  FailureMode {
  FATAL_FAILURE, NONFATAL_FAILURE, FATAL_FAILURE, NONFATAL_FAILURE,
  FATAL_FAILURE, NONFATAL_FAILURE
}
 
- 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
 

Static Public Member Functions

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

Additional Inherited Members

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

Detailed Description

Definition at line 877 of file gtest_output_test_.cc.

Member Enumeration Documentation

Enumerator
FATAL_FAILURE 
NONFATAL_FAILURE 
FATAL_FAILURE 
NONFATAL_FAILURE 
FATAL_FAILURE 
NONFATAL_FAILURE 

Definition at line 879 of file gtest_output_test_.cc.

Enumerator
FATAL_FAILURE 
NONFATAL_FAILURE 
FATAL_FAILURE 
NONFATAL_FAILURE 
FATAL_FAILURE 
NONFATAL_FAILURE 

Definition at line 879 of file gtest_output_test_.cc.

Enumerator
FATAL_FAILURE 
NONFATAL_FAILURE 
FATAL_FAILURE 
NONFATAL_FAILURE 
FATAL_FAILURE 
NONFATAL_FAILURE 

Definition at line 879 of file gtest_output_test_.cc.

Member Function Documentation

static void ExpectFailureTest::AddFailure ( FailureMode  failure)
inlinestatic

Definition at line 883 of file gtest_output_test_.cc.

References ADD_FAILURE, and FAIL.

883  {
884  if (failure == FATAL_FAILURE) {
885  FAIL() << "Expected fatal failure.";
886  } else {
887  ADD_FAILURE() << "Expected non-fatal failure.";
888  }
889  }
#define FAIL()
Definition: gtest.h:1822
#define ADD_FAILURE()
Definition: gtest.h:1808
static void ExpectFailureTest::AddFailure ( FailureMode  failure)
inlinestatic

Definition at line 883 of file gtest_output_test_.cc.

References ADD_FAILURE, and FAIL.

883  {
884  if (failure == FATAL_FAILURE) {
885  FAIL() << "Expected fatal failure.";
886  } else {
887  ADD_FAILURE() << "Expected non-fatal failure.";
888  }
889  }
#define FAIL()
Definition: gtest.h:1822
#define ADD_FAILURE()
Definition: gtest.h:1808
static void ExpectFailureTest::AddFailure ( FailureMode  failure)
inlinestatic

Definition at line 883 of file gtest_output_test_.cc.

References ADD_FAILURE, and FAIL.

883  {
884  if (failure == FATAL_FAILURE) {
885  FAIL() << "Expected fatal failure.";
886  } else {
887  ADD_FAILURE() << "Expected non-fatal failure.";
888  }
889  }
#define FAIL()
Definition: gtest.h:1822
#define ADD_FAILURE()
Definition: gtest.h:1808

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