Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
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

namespace  testing
 
namespace  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 137 of file gtest-spi.h.

137#define EXPECT_FATAL_FAILURE(statement, substr) \
138 do { \
139 class GTestExpectFatalFailureHelper {\
140 public:\
141 static void Execute() { statement; }\
142 };\
143 ::testing::TestPartResultArray gtest_failures;\
144 ::testing::internal::SingleFailureChecker gtest_checker(\
145 &gtest_failures, ::testing::TestPartResult::kFatalFailure, (substr));\
146 {\
147 ::testing::ScopedFakeTestPartResultReporter gtest_reporter(\
148 ::testing::ScopedFakeTestPartResultReporter:: \
149 INTERCEPT_ONLY_CURRENT_THREAD, &gtest_failures);\
150 GTestExpectFatalFailureHelper::Execute();\
151 }\
152 } while (::testing::internal::AlwaysFalse())

◆ 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 154 of file gtest-spi.h.

154#define EXPECT_FATAL_FAILURE_ON_ALL_THREADS(statement, substr) \
155 do { \
156 class GTestExpectFatalFailureHelper {\
157 public:\
158 static void Execute() { statement; }\
159 };\
160 ::testing::TestPartResultArray gtest_failures;\
161 ::testing::internal::SingleFailureChecker gtest_checker(\
162 &gtest_failures, ::testing::TestPartResult::kFatalFailure, (substr));\
163 {\
164 ::testing::ScopedFakeTestPartResultReporter gtest_reporter(\
165 ::testing::ScopedFakeTestPartResultReporter:: \
166 INTERCEPT_ALL_THREADS, &gtest_failures);\
167 GTestExpectFatalFailureHelper::Execute();\
168 }\
169 } while (::testing::internal::AlwaysFalse())

◆ EXPECT_NONFATAL_FAILURE

#define EXPECT_NONFATAL_FAILURE ( statement,
substr )
Value:
do {\
(substr));\
{\
INTERCEPT_ONLY_CURRENT_THREAD, &gtest_failures);\
if (::testing::internal::AlwaysTrue()) { statement; }\
}\
GTEST_API_ bool AlwaysTrue()
Definition gtest.cc:5406

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

203#define EXPECT_NONFATAL_FAILURE(statement, substr) \
204 do {\
205 ::testing::TestPartResultArray gtest_failures;\
206 ::testing::internal::SingleFailureChecker gtest_checker(\
207 &gtest_failures, ::testing::TestPartResult::kNonFatalFailure, \
208 (substr));\
209 {\
210 ::testing::ScopedFakeTestPartResultReporter gtest_reporter(\
211 ::testing::ScopedFakeTestPartResultReporter:: \
212 INTERCEPT_ONLY_CURRENT_THREAD, &gtest_failures);\
213 if (::testing::internal::AlwaysTrue()) { statement; }\
214 }\
215 } while (::testing::internal::AlwaysFalse())

◆ EXPECT_NONFATAL_FAILURE_ON_ALL_THREADS

#define EXPECT_NONFATAL_FAILURE_ON_ALL_THREADS ( statement,
substr )
Value:

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

217#define EXPECT_NONFATAL_FAILURE_ON_ALL_THREADS(statement, substr) \
218 do {\
219 ::testing::TestPartResultArray gtest_failures;\
220 ::testing::internal::SingleFailureChecker gtest_checker(\
221 &gtest_failures, ::testing::TestPartResult::kNonFatalFailure, \
222 (substr));\
223 {\
224 ::testing::ScopedFakeTestPartResultReporter gtest_reporter(\
225 ::testing::ScopedFakeTestPartResultReporter::INTERCEPT_ALL_THREADS, \
226 &gtest_failures);\
227 if (::testing::internal::AlwaysTrue()) { statement; }\
228 }\
229 } while (::testing::internal::AlwaysFalse())