#include "gtest/gtest.h"
Go to the source code of this file.
Classes | |
class | testing::ScopedFakeTestPartResultReporter |
class | testing::internal::SingleFailureChecker |
Namespaces | |
namespace | testing |
namespace | testing::internal |
Defines | |
#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) |
#define EXPECT_FATAL_FAILURE | ( | statement, | |
substr | |||
) |
do { \ class GTestExpectFatalFailureHelper {\ public:\ static void Execute() { statement; }\ };\ ::testing::TestPartResultArray gtest_failures;\ ::testing::internal::SingleFailureChecker gtest_checker(\ >est_failures, ::testing::TestPartResult::kFatalFailure, (substr));\ {\ ::testing::ScopedFakeTestPartResultReporter gtest_reporter(\ ::testing::ScopedFakeTestPartResultReporter:: \ INTERCEPT_ONLY_CURRENT_THREAD, >est_failures);\ GTestExpectFatalFailureHelper::Execute();\ }\ } while (::testing::internal::AlwaysFalse())
Definition at line 138 of file gtest-spi.h.
#define EXPECT_FATAL_FAILURE_ON_ALL_THREADS | ( | statement, | |
substr | |||
) |
do { \ class GTestExpectFatalFailureHelper {\ public:\ static void Execute() { statement; }\ };\ ::testing::TestPartResultArray gtest_failures;\ ::testing::internal::SingleFailureChecker gtest_checker(\ >est_failures, ::testing::TestPartResult::kFatalFailure, (substr));\ {\ ::testing::ScopedFakeTestPartResultReporter gtest_reporter(\ ::testing::ScopedFakeTestPartResultReporter:: \ INTERCEPT_ALL_THREADS, >est_failures);\ GTestExpectFatalFailureHelper::Execute();\ }\ } while (::testing::internal::AlwaysFalse())
Definition at line 155 of file gtest-spi.h.
#define EXPECT_NONFATAL_FAILURE | ( | statement, | |
substr | |||
) |
do {\ ::testing::TestPartResultArray gtest_failures;\ ::testing::internal::SingleFailureChecker gtest_checker(\ >est_failures, ::testing::TestPartResult::kNonFatalFailure, \ (substr));\ {\ ::testing::ScopedFakeTestPartResultReporter gtest_reporter(\ ::testing::ScopedFakeTestPartResultReporter:: \ INTERCEPT_ONLY_CURRENT_THREAD, >est_failures);\ if (::testing::internal::AlwaysTrue()) { statement; }\ }\ } while (::testing::internal::AlwaysFalse())
Definition at line 204 of file gtest-spi.h.
#define EXPECT_NONFATAL_FAILURE_ON_ALL_THREADS | ( | statement, | |
substr | |||
) |
do {\ ::testing::TestPartResultArray gtest_failures;\ ::testing::internal::SingleFailureChecker gtest_checker(\ >est_failures, ::testing::TestPartResult::kNonFatalFailure, \ (substr));\ {\ ::testing::ScopedFakeTestPartResultReporter gtest_reporter(\ ::testing::ScopedFakeTestPartResultReporter::INTERCEPT_ALL_THREADS, \ >est_failures);\ if (::testing::internal::AlwaysTrue()) { statement; }\ }\ } while (::testing::internal::AlwaysFalse())
Definition at line 218 of file gtest-spi.h.