Classes | Namespaces | Defines
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

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 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();\
    }\
  } while (::testing::internal::AlwaysFalse())

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

#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();\
    }\
  } while (::testing::internal::AlwaysFalse())

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

#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; }\
    }\
  } while (::testing::internal::AlwaysFalse())

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

#define EXPECT_NONFATAL_FAILURE_ON_ALL_THREADS (   statement,
  substr 
)
Value:

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



pcl
Author(s): Open Perception
autogenerated on Wed Aug 26 2015 15:38:45