- 3.0.1 core module.
gtest-spi.h File Reference
#include "gtest/gtest.h"

Go to the source code of this file.

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)
 

Functions

 GTEST_DISABLE_MSC_WARNINGS_PUSH_ (4251) namespace testing
 

Macro Definition Documentation

#define EXPECT_FATAL_FAILURE (   statement,
  substr 
)
Value:
do { \
class GTestExpectFatalFailureHelper {\
public:\
static void Execute() { statement; }\
};\
::testing::TestPartResultArray gtest_failures;\
::testing::internal::SingleFailureChecker gtest_checker(\
&gtest_failures, ::testing::TestPartResult::kFatalFailure, (substr));\
{\
::testing::ScopedFakeTestPartResultReporter gtest_reporter(\
::testing::ScopedFakeTestPartResultReporter:: \
INTERCEPT_ONLY_CURRENT_THREAD, &gtest_failures);\
GTestExpectFatalFailureHelper::Execute();\
}\
bool AlwaysFalse()
Definition: gtest-internal.h:817

Referenced by GTEST_TEST(), operator<<(), TEST(), testing::TEST(), my_namespace::testing::TEST(), and TEST_F().

#define EXPECT_FATAL_FAILURE_ON_ALL_THREADS (   statement,
  substr 
)
Value:
do { \
class GTestExpectFatalFailureHelper {\
public:\
static void Execute() { statement; }\
};\
::testing::TestPartResultArray gtest_failures;\
::testing::internal::SingleFailureChecker gtest_checker(\
&gtest_failures, ::testing::TestPartResult::kFatalFailure, (substr));\
{\
::testing::ScopedFakeTestPartResultReporter gtest_reporter(\
::testing::ScopedFakeTestPartResultReporter:: \
INTERCEPT_ALL_THREADS, &gtest_failures);\
GTestExpectFatalFailureHelper::Execute();\
}\
bool AlwaysFalse()
Definition: gtest-internal.h:817

Referenced by operator<<(), and TEST_F().

#define EXPECT_NONFATAL_FAILURE (   statement,
  substr 
)
Value:
do {\
::testing::TestPartResultArray gtest_failures;\
::testing::internal::SingleFailureChecker gtest_checker(\
&gtest_failures, ::testing::TestPartResult::kNonFatalFailure, \
(substr));\
{\
::testing::ScopedFakeTestPartResultReporter gtest_reporter(\
::testing::ScopedFakeTestPartResultReporter:: \
INTERCEPT_ONLY_CURRENT_THREAD, &gtest_failures);\
if (::testing::internal::AlwaysTrue()) { statement; }\
}\
GTEST_API_ bool AlwaysTrue()
Definition: gtest.cc:5655
bool AlwaysFalse()
Definition: gtest-internal.h:817
cmake hermetic_build cmake OPTIONAL if(COMMAND pre_project_set_up_hermetic_build) pre_project_set_up_hermetic_build() endif() if(CMAKE_VERSION VERSION_LESS 3.0) project(gmock CXX C) else() cmake_policy(SET CMP0048 NEW) project(gmock VERSION $
Definition: CMakeLists.txt:23

Referenced by testing::gmock_nice_strict_test::TEST(), testing::internal::TEST(), TEST(), testing::TEST(), and TEST_F().

#define EXPECT_NONFATAL_FAILURE_ON_ALL_THREADS (   statement,
  substr 
)
Value:
do {\
::testing::TestPartResultArray gtest_failures;\
::testing::internal::SingleFailureChecker gtest_checker(\
&gtest_failures, ::testing::TestPartResult::kNonFatalFailure, \
(substr));\
{\
::testing::ScopedFakeTestPartResultReporter gtest_reporter(\
::testing::ScopedFakeTestPartResultReporter::INTERCEPT_ALL_THREADS, \
&gtest_failures);\
if (::testing::internal::AlwaysTrue()) { statement; }\
}\
GTEST_API_ bool AlwaysTrue()
Definition: gtest.cc:5655
bool AlwaysFalse()
Definition: gtest-internal.h:817
cmake hermetic_build cmake OPTIONAL if(COMMAND pre_project_set_up_hermetic_build) pre_project_set_up_hermetic_build() endif() if(CMAKE_VERSION VERSION_LESS 3.0) project(gmock CXX C) else() cmake_policy(SET CMP0048 NEW) project(gmock VERSION $
Definition: CMakeLists.txt:23

Referenced by TEST_F().

Function Documentation

GTEST_DISABLE_MSC_WARNINGS_PUSH_ ( 4251  )