Classes | Namespaces | Macros
gtest-spi.h File Reference
#include "gtest/gtest.h"
Include dependency graph for gtest-spi.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  testing::ScopedFakeTestPartResultReporter
 
class  testing::internal::SingleFailureChecker
 

Namespaces

 testing
 
 testing::internal
 

Macros

#define EXPECT_FATAL_FAILURE(statement, substr)
 
#define EXPECT_FATAL_FAILURE_ON_ALL_THREADS(statement, substr)
 
#define EXPECT_NONFATAL_FAILURE(statement, substr)
 
#define EXPECT_NONFATAL_FAILURE_ON_ALL_THREADS(statement, substr)
 

Macro Definition Documentation

◆ EXPECT_FATAL_FAILURE

#define EXPECT_FATAL_FAILURE (   statement,
  substr 
)
Value:
do { \
class GTestExpectFatalFailureHelper {\
public:\
static void Execute() { statement; }\
};\
&gtest_failures, ::testing::TestPartResult::kFatalFailure, (substr));\
{\
INTERCEPT_ONLY_CURRENT_THREAD, &gtest_failures);\
GTestExpectFatalFailureHelper::Execute();\
}\

Definition at line 138 of file gtest-spi.h.

◆ EXPECT_FATAL_FAILURE_ON_ALL_THREADS

#define EXPECT_FATAL_FAILURE_ON_ALL_THREADS (   statement,
  substr 
)
Value:
do { \
class GTestExpectFatalFailureHelper {\
public:\
static void Execute() { statement; }\
};\
&gtest_failures, ::testing::TestPartResult::kFatalFailure, (substr));\
{\
INTERCEPT_ALL_THREADS, &gtest_failures);\
GTestExpectFatalFailureHelper::Execute();\
}\

Definition at line 155 of file gtest-spi.h.

◆ EXPECT_NONFATAL_FAILURE

#define EXPECT_NONFATAL_FAILURE (   statement,
  substr 
)
Value:
do {\
(substr));\
{\
INTERCEPT_ONLY_CURRENT_THREAD, &gtest_failures);\
if (::testing::internal::AlwaysTrue()) { statement; }\
}\

Definition at line 204 of file gtest-spi.h.

◆ EXPECT_NONFATAL_FAILURE_ON_ALL_THREADS

#define EXPECT_NONFATAL_FAILURE_ON_ALL_THREADS (   statement,
  substr 
)
Value:

Definition at line 218 of file gtest-spi.h.

testing::ScopedFakeTestPartResultReporter
Definition: gtest-spi.h:51
testing::internal::SingleFailureChecker
Definition: gtest-spi.h:96
testing::TestPartResult::kFatalFailure
@ kFatalFailure
Definition: gtest-test-part.h:54
testing::TestPartResultArray
Definition: gtest-test-part.h:126
testing::internal::AlwaysTrue
GTEST_API_ bool AlwaysTrue()
Definition: gtest.cc:4653
testing::internal::AlwaysFalse
bool AlwaysFalse()
Definition: gtest-internal.h:660
testing::TestPartResult::kNonFatalFailure
@ kNonFatalFailure
Definition: gtest-test-part.h:53
testing::ScopedFakeTestPartResultReporter::INTERCEPT_ALL_THREADS
@ INTERCEPT_ALL_THREADS
Definition: gtest-spi.h:57


fcl
Author(s):
autogenerated on Fri Jun 11 2021 02:38:04