Classes | Namespaces | Macros | Functions
gmock/gtest/include/gtest/gtest.h File Reference
#include <limits>
#include <ostream>
#include <vector>
#include "gtest/internal/gtest-internal.h"
#include "gtest/internal/gtest-string.h"
#include "gtest/gtest-death-test.h"
#include "gtest/gtest-message.h"
#include "gtest/gtest-param-test.h"
#include "gtest/gtest-printers.h"
#include "gtest/gtest_prod.h"
#include "gtest/gtest-test-part.h"
#include "gtest/gtest-typed-test.h"
#include "gtest/gtest_pred_impl.h"
Include dependency graph for gmock/gtest/include/gtest/gtest.h:

Go to the source code of this file.

Classes

class  testing::internal::AssertHelper
 
struct  testing::internal::AssertHelper::AssertHelperData
 
class  testing::AssertionResult
 
class  testing::EmptyTestEventListener
 
class  testing::Environment
 
class  testing::internal::EqHelper< lhs_is_null_literal >
 
class  testing::internal::EqHelper< true >
 
class  testing::internal::FormatForComparison< ToPrint, OtherOperand >
 
class  testing::internal::FormatForComparison< ToPrint[N], OtherOperand >
 
struct  testing::Environment::Setup_should_be_spelled_SetUp
 
struct  testing::Test::Setup_should_be_spelled_SetUp
 
class  testing::Test
 
class  testing::TestCase
 
class  testing::TestEventListener
 
class  testing::TestEventListeners
 
class  testing::TestInfo
 
class  testing::TestProperty
 
class  testing::TestResult
 
class  testing::UnitTest
 

Namespaces

 testing
 
 testing::internal
 

Macros

#define ADD_FAILURE()   GTEST_NONFATAL_FAILURE_("Failed")
 
#define ADD_FAILURE_AT(file, line)
 
#define ASSERT_ANY_THROW(statement)   GTEST_TEST_ANY_THROW_(statement, GTEST_FATAL_FAILURE_)
 
#define ASSERT_DOUBLE_EQ(expected, actual)
 
#define ASSERT_EQ(val1, val2)   GTEST_ASSERT_EQ(val1, val2)
 
#define ASSERT_FALSE(condition)
 
#define ASSERT_FLOAT_EQ(expected, actual)
 
#define ASSERT_GE(val1, val2)   GTEST_ASSERT_GE(val1, val2)
 
#define ASSERT_GT(val1, val2)   GTEST_ASSERT_GT(val1, val2)
 
#define ASSERT_LE(val1, val2)   GTEST_ASSERT_LE(val1, val2)
 
#define ASSERT_LT(val1, val2)   GTEST_ASSERT_LT(val1, val2)
 
#define ASSERT_NE(val1, val2)   GTEST_ASSERT_NE(val1, val2)
 
#define ASSERT_NEAR(val1, val2, abs_error)
 
#define ASSERT_NO_FATAL_FAILURE(statement)   GTEST_TEST_NO_FATAL_FAILURE_(statement, GTEST_FATAL_FAILURE_)
 
#define ASSERT_NO_THROW(statement)   GTEST_TEST_NO_THROW_(statement, GTEST_FATAL_FAILURE_)
 
#define ASSERT_STRCASEEQ(expected, actual)   ASSERT_PRED_FORMAT2(::testing::internal::CmpHelperSTRCASEEQ, expected, actual)
 
#define ASSERT_STRCASENE(s1, s2)   ASSERT_PRED_FORMAT2(::testing::internal::CmpHelperSTRCASENE, s1, s2)
 
#define ASSERT_STREQ(expected, actual)   ASSERT_PRED_FORMAT2(::testing::internal::CmpHelperSTREQ, expected, actual)
 
#define ASSERT_STRNE(s1, s2)   ASSERT_PRED_FORMAT2(::testing::internal::CmpHelperSTRNE, s1, s2)
 
#define ASSERT_THROW(statement, expected_exception)   GTEST_TEST_THROW_(statement, expected_exception, GTEST_FATAL_FAILURE_)
 
#define ASSERT_TRUE(condition)
 
#define EXPECT_ANY_THROW(statement)   GTEST_TEST_ANY_THROW_(statement, GTEST_NONFATAL_FAILURE_)
 
#define EXPECT_DOUBLE_EQ(expected, actual)
 
#define EXPECT_EQ(expected, actual)
 
#define EXPECT_FALSE(condition)
 
#define EXPECT_FLOAT_EQ(expected, actual)
 
#define EXPECT_GE(val1, val2)   EXPECT_PRED_FORMAT2(::testing::internal::CmpHelperGE, val1, val2)
 
#define EXPECT_GT(val1, val2)   EXPECT_PRED_FORMAT2(::testing::internal::CmpHelperGT, val1, val2)
 
#define EXPECT_LE(val1, val2)   EXPECT_PRED_FORMAT2(::testing::internal::CmpHelperLE, val1, val2)
 
#define EXPECT_LT(val1, val2)   EXPECT_PRED_FORMAT2(::testing::internal::CmpHelperLT, val1, val2)
 
#define EXPECT_NE(expected, actual)   EXPECT_PRED_FORMAT2(::testing::internal::CmpHelperNE, expected, actual)
 
#define EXPECT_NEAR(val1, val2, abs_error)
 
#define EXPECT_NO_FATAL_FAILURE(statement)   GTEST_TEST_NO_FATAL_FAILURE_(statement, GTEST_NONFATAL_FAILURE_)
 
#define EXPECT_NO_THROW(statement)   GTEST_TEST_NO_THROW_(statement, GTEST_NONFATAL_FAILURE_)
 
#define EXPECT_STRCASEEQ(expected, actual)   EXPECT_PRED_FORMAT2(::testing::internal::CmpHelperSTRCASEEQ, expected, actual)
 
#define EXPECT_STRCASENE(s1, s2)   EXPECT_PRED_FORMAT2(::testing::internal::CmpHelperSTRCASENE, s1, s2)
 
#define EXPECT_STREQ(expected, actual)   EXPECT_PRED_FORMAT2(::testing::internal::CmpHelperSTREQ, expected, actual)
 
#define EXPECT_STRNE(s1, s2)   EXPECT_PRED_FORMAT2(::testing::internal::CmpHelperSTRNE, s1, s2)
 
#define EXPECT_THROW(statement, expected_exception)   GTEST_TEST_THROW_(statement, expected_exception, GTEST_NONFATAL_FAILURE_)
 
#define EXPECT_TRUE(condition)
 
#define FAIL()   GTEST_FAIL()
 
#define GTEST_ASSERT_EQ(expected, actual)
 
#define GTEST_ASSERT_GE(val1, val2)   ASSERT_PRED_FORMAT2(::testing::internal::CmpHelperGE, val1, val2)
 
#define GTEST_ASSERT_GT(val1, val2)   ASSERT_PRED_FORMAT2(::testing::internal::CmpHelperGT, val1, val2)
 
#define GTEST_ASSERT_LE(val1, val2)   ASSERT_PRED_FORMAT2(::testing::internal::CmpHelperLE, val1, val2)
 
#define GTEST_ASSERT_LT(val1, val2)   ASSERT_PRED_FORMAT2(::testing::internal::CmpHelperLT, val1, val2)
 
#define GTEST_ASSERT_NE(val1, val2)   ASSERT_PRED_FORMAT2(::testing::internal::CmpHelperNE, val1, val2)
 
#define GTEST_FAIL()   GTEST_FATAL_FAILURE_("Failed")
 
#define GTEST_IMPL_CMP_HELPER_(op_name, op)
 
#define GTEST_IMPL_FORMAT_C_STRING_AS_POINTER_(CharType)
 
#define GTEST_IMPL_FORMAT_C_STRING_AS_STRING_(CharType, OtherStringType)
 
#define GTEST_SUCCEED()   GTEST_SUCCESS_("Succeeded")
 
#define GTEST_TEST(test_case_name, test_name)
 
#define SCOPED_TRACE(message)
 
#define SUCCEED()   GTEST_SUCCEED()
 
#define TEST(test_case_name, test_name)   GTEST_TEST(test_case_name, test_name)
 
#define TEST_F(test_fixture, test_name)
 

Functions

Environment * testing::AddGlobalTestEnvironment (Environment *env)
 
AssertionResult testing::AssertionFailure ()
 
AssertionResult testing::AssertionFailure (const Message &message)
 
AssertionResult testing::AssertionSuccess ()
 
AssertionResult testing::internal::CmpHelperEQ (const char *expected_expression, const char *actual_expression, BiggestInt expected, BiggestInt actual)
 
template<typename T1 , typename T2 >
AssertionResult testing::internal::CmpHelperEQ (const char *expected_expression, const char *actual_expression, const T1 &expected, const T2 &actual)
 
template<typename RawType >
AssertionResult testing::internal::CmpHelperFloatingPointEQ (const char *expected_expression, const char *actual_expression, RawType expected, RawType actual)
 
AssertionResult testing::internal::CmpHelperSTRCASEEQ (const char *expected_expression, const char *actual_expression, const char *expected, const char *actual)
 
AssertionResult testing::internal::CmpHelperSTRCASENE (const char *s1_expression, const char *s2_expression, const char *s1, const char *s2)
 
AssertionResult testing::internal::CmpHelperSTREQ (const char *expected_expression, const char *actual_expression, const char *expected, const char *actual)
 
AssertionResult testing::internal::CmpHelperSTREQ (const char *expected_expression, const char *actual_expression, const wchar_t *expected, const wchar_t *actual)
 
AssertionResult testing::internal::CmpHelperSTRNE (const char *s1_expression, const char *s2_expression, const char *s1, const char *s2)
 
AssertionResult testing::internal::CmpHelperSTRNE (const char *s1_expression, const char *s2_expression, const wchar_t *s1, const wchar_t *s2)
 
AssertionResult testing::DoubleLE (const char *expr1, const char *expr2, double val1, double val2)
 
AssertionResult testing::internal::DoubleNearPredFormat (const char *expr1, const char *expr2, const char *abs_error_expr, double val1, double val2, double abs_error)
 
AssertionResult testing::FloatLE (const char *expr1, const char *expr2, float val1, float val2)
 
template<typename T1 , typename T2 >
std::string testing::internal::FormatForComparisonFailureMessage (const T1 &value, const T2 &)
 
UnitTestImpl * testing::internal::GetUnitTestImpl ()
 
 testing::GTEST_DECLARE_bool_ (also_run_disabled_tests)
 
 testing::GTEST_DECLARE_bool_ (break_on_failure)
 
 testing::GTEST_DECLARE_bool_ (catch_exceptions)
 
 testing::GTEST_DECLARE_bool_ (list_tests)
 
 testing::GTEST_DECLARE_bool_ (print_time)
 
 testing::GTEST_DECLARE_bool_ (show_internal_stack_frames)
 
 testing::GTEST_DECLARE_bool_ (shuffle)
 
 testing::GTEST_DECLARE_bool_ (throw_on_failure)
 
 testing::GTEST_DECLARE_int32_ (random_seed)
 
 testing::GTEST_DECLARE_int32_ (repeat)
 
 testing::GTEST_DECLARE_int32_ (stack_trace_depth)
 
 testing::GTEST_DECLARE_string_ (color)
 
 testing::GTEST_DECLARE_string_ (filter)
 
 testing::GTEST_DECLARE_string_ (output)
 
 testing::GTEST_DECLARE_string_ (stream_result_to)
 
 testing::internal::GTEST_IMPL_CMP_HELPER_ (NE,!=)
 
 testing::internal::GTEST_IMPL_CMP_HELPER_ (LE,<=)
 
 testing::internal::GTEST_IMPL_CMP_HELPER_ (LT,<)
 
 testing::internal::GTEST_IMPL_CMP_HELPER_ (GE, >=)
 
 testing::internal::GTEST_IMPL_CMP_HELPER_ (GT, >)
 
 testing::internal::GTEST_IMPL_FORMAT_C_STRING_AS_POINTER_ (char)
 
 testing::internal::GTEST_IMPL_FORMAT_C_STRING_AS_POINTER_ (wchar_t)
 
 testing::internal::GTEST_IMPL_FORMAT_C_STRING_AS_STRING_ (char,::std::string)
 
void testing::InitGoogleTest (int *argc, char **argv)
 
void testing::InitGoogleTest (int *argc, wchar_t **argv)
 
AssertionResult testing::IsNotSubstring (const char *needle_expr, const char *haystack_expr, const char *needle, const char *haystack)
 
AssertionResult testing::IsNotSubstring (const char *needle_expr, const char *haystack_expr, const wchar_t *needle, const wchar_t *haystack)
 
AssertionResult testing::IsNotSubstring (const char *needle_expr, const char *haystack_expr, const ::std::string &needle, const ::std::string &haystack)
 
AssertionResult testing::IsSubstring (const char *needle_expr, const char *haystack_expr, const char *needle, const char *haystack)
 
AssertionResult testing::IsSubstring (const char *needle_expr, const char *haystack_expr, const wchar_t *needle, const wchar_t *haystack)
 
AssertionResult testing::IsSubstring (const char *needle_expr, const char *haystack_expr, const ::std::string &needle, const ::std::string &haystack)
 
void testing::internal::ReportFailureInUnknownLocation (TestPartResult::Type result_type, const std::string &message)
 
int RUN_ALL_TESTS () GTEST_MUST_USE_RESULT_
 
template<typename T1 , typename T2 >
bool testing::StaticAssertTypeEq ()
 

Macro Definition Documentation

#define ADD_FAILURE ( )    GTEST_NONFATAL_FAILURE_("Failed")

Definition at line 1930 of file gmock/gtest/include/gtest/gtest.h.

#define ADD_FAILURE_AT (   file,
  line 
)
Value:

Definition at line 1934 of file gmock/gtest/include/gtest/gtest.h.

#define ASSERT_ANY_THROW (   statement)    GTEST_TEST_ANY_THROW_(statement, GTEST_FATAL_FAILURE_)

Definition at line 1975 of file gmock/gtest/include/gtest/gtest.h.

#define ASSERT_DOUBLE_EQ (   expected,
  actual 
)
Value:
ASSERT_PRED_FORMAT2(::testing::internal::CmpHelperFloatingPointEQ<double>, \
expected, actual)
#define ASSERT_PRED_FORMAT2(pred_format, v1, v2)

Definition at line 2161 of file gmock/gtest/include/gtest/gtest.h.

#define ASSERT_EQ (   val1,
  val2 
)    GTEST_ASSERT_EQ(val1, val2)

Definition at line 2078 of file gmock/gtest/include/gtest/gtest.h.

#define ASSERT_FALSE (   condition)
Value:
GTEST_TEST_BOOLEAN_(!(condition), #condition, true, false, \
#define GTEST_FATAL_FAILURE_(message)
#define GTEST_TEST_BOOLEAN_(expression, text, actual, expected, fail)

Definition at line 1990 of file gmock/gtest/include/gtest/gtest.h.

#define ASSERT_FLOAT_EQ (   expected,
  actual 
)
Value:
ASSERT_PRED_FORMAT2(::testing::internal::CmpHelperFloatingPointEQ<float>, \
expected, actual)
#define ASSERT_PRED_FORMAT2(pred_format, v1, v2)

Definition at line 2157 of file gmock/gtest/include/gtest/gtest.h.

#define ASSERT_GE (   val1,
  val2 
)    GTEST_ASSERT_GE(val1, val2)

Definition at line 2094 of file gmock/gtest/include/gtest/gtest.h.

#define ASSERT_GT (   val1,
  val2 
)    GTEST_ASSERT_GT(val1, val2)

Definition at line 2098 of file gmock/gtest/include/gtest/gtest.h.

#define ASSERT_LE (   val1,
  val2 
)    GTEST_ASSERT_LE(val1, val2)

Definition at line 2086 of file gmock/gtest/include/gtest/gtest.h.

#define ASSERT_LT (   val1,
  val2 
)    GTEST_ASSERT_LT(val1, val2)

Definition at line 2090 of file gmock/gtest/include/gtest/gtest.h.

#define ASSERT_NE (   val1,
  val2 
)    GTEST_ASSERT_NE(val1, val2)

Definition at line 2082 of file gmock/gtest/include/gtest/gtest.h.

#define ASSERT_NEAR (   val1,
  val2,
  abs_error 
)
Value:
val1, val2, abs_error)
AssertionResult DoubleNearPredFormat(const char *expr1, const char *expr2, const char *abs_error_expr, double val1, double val2, double abs_error)
#define ASSERT_PRED_FORMAT3(pred_format, v1, v2, v3)

Definition at line 2169 of file gmock/gtest/include/gtest/gtest.h.

#define ASSERT_NO_FATAL_FAILURE (   statement)    GTEST_TEST_NO_FATAL_FAILURE_(statement, GTEST_FATAL_FAILURE_)

Definition at line 2221 of file gmock/gtest/include/gtest/gtest.h.

#define ASSERT_NO_THROW (   statement)    GTEST_TEST_NO_THROW_(statement, GTEST_FATAL_FAILURE_)

Definition at line 1973 of file gmock/gtest/include/gtest/gtest.h.

#define ASSERT_STRCASEEQ (   expected,
  actual 
)    ASSERT_PRED_FORMAT2(::testing::internal::CmpHelperSTRCASEEQ, expected, actual)

Definition at line 2130 of file gmock/gtest/include/gtest/gtest.h.

#define ASSERT_STRCASENE (   s1,
  s2 
)    ASSERT_PRED_FORMAT2(::testing::internal::CmpHelperSTRCASENE, s1, s2)

Definition at line 2132 of file gmock/gtest/include/gtest/gtest.h.

#define ASSERT_STREQ (   expected,
  actual 
)    ASSERT_PRED_FORMAT2(::testing::internal::CmpHelperSTREQ, expected, actual)

Definition at line 2126 of file gmock/gtest/include/gtest/gtest.h.

#define ASSERT_STRNE (   s1,
  s2 
)    ASSERT_PRED_FORMAT2(::testing::internal::CmpHelperSTRNE, s1, s2)

Definition at line 2128 of file gmock/gtest/include/gtest/gtest.h.

#define ASSERT_THROW (   statement,
  expected_exception 
)    GTEST_TEST_THROW_(statement, expected_exception, GTEST_FATAL_FAILURE_)

Definition at line 1971 of file gmock/gtest/include/gtest/gtest.h.

#define ASSERT_TRUE (   condition)
Value:
GTEST_TEST_BOOLEAN_(condition, #condition, false, true, \
#define GTEST_FATAL_FAILURE_(message)
#define GTEST_TEST_BOOLEAN_(expression, text, actual, expected, fail)

Definition at line 1987 of file gmock/gtest/include/gtest/gtest.h.

#define EXPECT_ANY_THROW (   statement)    GTEST_TEST_ANY_THROW_(statement, GTEST_NONFATAL_FAILURE_)

Definition at line 1969 of file gmock/gtest/include/gtest/gtest.h.

#define EXPECT_DOUBLE_EQ (   expected,
  actual 
)
Value:
EXPECT_PRED_FORMAT2(::testing::internal::CmpHelperFloatingPointEQ<double>, \
expected, actual)
#define EXPECT_PRED_FORMAT2(pred_format, v1, v2)

Definition at line 2153 of file gmock/gtest/include/gtest/gtest.h.

#define EXPECT_EQ (   expected,
  actual 
)
Value:
EqHelper<GTEST_IS_NULL_LITERAL_(expected)>::Compare, \
expected, actual)
#define GTEST_IS_NULL_LITERAL_(x)
#define EXPECT_PRED_FORMAT2(pred_format, v1, v2)

Definition at line 2044 of file gmock/gtest/include/gtest/gtest.h.

#define EXPECT_FALSE (   condition)
Value:
GTEST_TEST_BOOLEAN_(!(condition), #condition, true, false, \
#define GTEST_NONFATAL_FAILURE_(message)
#define GTEST_TEST_BOOLEAN_(expression, text, actual, expected, fail)

Definition at line 1984 of file gmock/gtest/include/gtest/gtest.h.

#define EXPECT_FLOAT_EQ (   expected,
  actual 
)
Value:
EXPECT_PRED_FORMAT2(::testing::internal::CmpHelperFloatingPointEQ<float>, \
expected, actual)
#define EXPECT_PRED_FORMAT2(pred_format, v1, v2)

Definition at line 2149 of file gmock/gtest/include/gtest/gtest.h.

#define EXPECT_GE (   val1,
  val2 
)    EXPECT_PRED_FORMAT2(::testing::internal::CmpHelperGE, val1, val2)

Definition at line 2054 of file gmock/gtest/include/gtest/gtest.h.

#define EXPECT_GT (   val1,
  val2 
)    EXPECT_PRED_FORMAT2(::testing::internal::CmpHelperGT, val1, val2)

Definition at line 2056 of file gmock/gtest/include/gtest/gtest.h.

#define EXPECT_LE (   val1,
  val2 
)    EXPECT_PRED_FORMAT2(::testing::internal::CmpHelperLE, val1, val2)

Definition at line 2050 of file gmock/gtest/include/gtest/gtest.h.

#define EXPECT_LT (   val1,
  val2 
)    EXPECT_PRED_FORMAT2(::testing::internal::CmpHelperLT, val1, val2)

Definition at line 2052 of file gmock/gtest/include/gtest/gtest.h.

#define EXPECT_NE (   expected,
  actual 
)    EXPECT_PRED_FORMAT2(::testing::internal::CmpHelperNE, expected, actual)

Definition at line 2048 of file gmock/gtest/include/gtest/gtest.h.

#define EXPECT_NEAR (   val1,
  val2,
  abs_error 
)
Value:
val1, val2, abs_error)
#define EXPECT_PRED_FORMAT3(pred_format, v1, v2, v3)
AssertionResult DoubleNearPredFormat(const char *expr1, const char *expr2, const char *abs_error_expr, double val1, double val2, double abs_error)

Definition at line 2165 of file gmock/gtest/include/gtest/gtest.h.

#define EXPECT_NO_FATAL_FAILURE (   statement)    GTEST_TEST_NO_FATAL_FAILURE_(statement, GTEST_NONFATAL_FAILURE_)

Definition at line 2223 of file gmock/gtest/include/gtest/gtest.h.

#define EXPECT_NO_THROW (   statement)    GTEST_TEST_NO_THROW_(statement, GTEST_NONFATAL_FAILURE_)

Definition at line 1967 of file gmock/gtest/include/gtest/gtest.h.

#define EXPECT_STRCASEEQ (   expected,
  actual 
)    EXPECT_PRED_FORMAT2(::testing::internal::CmpHelperSTRCASEEQ, expected, actual)

Definition at line 2121 of file gmock/gtest/include/gtest/gtest.h.

#define EXPECT_STRCASENE (   s1,
  s2 
)    EXPECT_PRED_FORMAT2(::testing::internal::CmpHelperSTRCASENE, s1, s2)

Definition at line 2123 of file gmock/gtest/include/gtest/gtest.h.

#define EXPECT_STREQ (   expected,
  actual 
)    EXPECT_PRED_FORMAT2(::testing::internal::CmpHelperSTREQ, expected, actual)

Definition at line 2117 of file gmock/gtest/include/gtest/gtest.h.

#define EXPECT_STRNE (   s1,
  s2 
)    EXPECT_PRED_FORMAT2(::testing::internal::CmpHelperSTRNE, s1, s2)

Definition at line 2119 of file gmock/gtest/include/gtest/gtest.h.

#define EXPECT_THROW (   statement,
  expected_exception 
)    GTEST_TEST_THROW_(statement, expected_exception, GTEST_NONFATAL_FAILURE_)

Definition at line 1965 of file gmock/gtest/include/gtest/gtest.h.

#define EXPECT_TRUE (   condition)
Value:
GTEST_TEST_BOOLEAN_(condition, #condition, false, true, \
#define GTEST_NONFATAL_FAILURE_(message)
#define GTEST_TEST_BOOLEAN_(expression, text, actual, expected, fail)

Definition at line 1981 of file gmock/gtest/include/gtest/gtest.h.

#define FAIL ( )    GTEST_FAIL()

Definition at line 1944 of file gmock/gtest/include/gtest/gtest.h.

#define GTEST_ASSERT_EQ (   expected,
  actual 
)
Value:
EqHelper<GTEST_IS_NULL_LITERAL_(expected)>::Compare, \
expected, actual)
#define GTEST_IS_NULL_LITERAL_(x)
#define ASSERT_PRED_FORMAT2(pred_format, v1, v2)

Definition at line 2059 of file gmock/gtest/include/gtest/gtest.h.

#define GTEST_ASSERT_GE (   val1,
  val2 
)    ASSERT_PRED_FORMAT2(::testing::internal::CmpHelperGE, val1, val2)

Definition at line 2069 of file gmock/gtest/include/gtest/gtest.h.

#define GTEST_ASSERT_GT (   val1,
  val2 
)    ASSERT_PRED_FORMAT2(::testing::internal::CmpHelperGT, val1, val2)

Definition at line 2071 of file gmock/gtest/include/gtest/gtest.h.

#define GTEST_ASSERT_LE (   val1,
  val2 
)    ASSERT_PRED_FORMAT2(::testing::internal::CmpHelperLE, val1, val2)

Definition at line 2065 of file gmock/gtest/include/gtest/gtest.h.

#define GTEST_ASSERT_LT (   val1,
  val2 
)    ASSERT_PRED_FORMAT2(::testing::internal::CmpHelperLT, val1, val2)

Definition at line 2067 of file gmock/gtest/include/gtest/gtest.h.

#define GTEST_ASSERT_NE (   val1,
  val2 
)    ASSERT_PRED_FORMAT2(::testing::internal::CmpHelperNE, val1, val2)

Definition at line 2063 of file gmock/gtest/include/gtest/gtest.h.

#define GTEST_FAIL ( )    GTEST_FATAL_FAILURE_("Failed")

Definition at line 1939 of file gmock/gtest/include/gtest/gtest.h.

#define GTEST_IMPL_CMP_HELPER_ (   op_name,
  op 
)
Value:
template <typename T1, typename T2>\
AssertionResult CmpHelper##op_name(const char* expr1, const char* expr2, \
const T1& val1, const T2& val2) {\
if (val1 op val2) {\
return AssertionSuccess();\
} else {\
return AssertionFailure() \
<< "Expected: (" << expr1 << ") " #op " (" << expr2\
<< "), actual: " << FormatForComparisonFailureMessage(val1, val2)\
<< " vs " << FormatForComparisonFailureMessage(val2, val1);\
}\
}\
GTEST_API_ AssertionResult CmpHelper##op_name(\
const char* expr1, const char* expr2, BiggestInt val1, BiggestInt val2)
AssertionResult AssertionFailure()
#define GTEST_API_
std::string FormatForComparisonFailureMessage(const T1 &value, const T2 &)
AssertionResult AssertionSuccess()

Definition at line 1616 of file gmock/gtest/include/gtest/gtest.h.

#define GTEST_IMPL_FORMAT_C_STRING_AS_POINTER_ (   CharType)
Value:
template <typename OtherOperand> \
class FormatForComparison<CharType*, OtherOperand> { \
public: \
static ::std::string Format(CharType* value) { \
return ::testing::PrintToString(static_cast<const void*>(value)); \
} \
}
::std::string PrintToString(const T &value)

Definition at line 1423 of file gmock/gtest/include/gtest/gtest.h.

#define GTEST_IMPL_FORMAT_C_STRING_AS_STRING_ (   CharType,
  OtherStringType 
)
Value:
template <> \
class FormatForComparison<CharType*, OtherStringType> { \
public: \
static ::std::string Format(CharType* value) { \
} \
}
::std::string PrintToString(const T &value)

Definition at line 1442 of file gmock/gtest/include/gtest/gtest.h.

#define GTEST_SUCCEED ( )    GTEST_SUCCESS_("Succeeded")

Definition at line 1948 of file gmock/gtest/include/gtest/gtest.h.

#define GTEST_TEST (   test_case_name,
  test_name 
)
Value:
GTEST_TEST_(test_case_name, test_name, \
#define GTEST_TEST_(test_case_name, test_name, parent_class, parent_id)

Definition at line 2303 of file gmock/gtest/include/gtest/gtest.h.

#define SCOPED_TRACE (   message)
Value:
__FILE__, __LINE__, ::testing::Message() << (message))
#define GTEST_CONCAT_TOKEN_(foo, bar)
const char Message[]
Definition: strings.h:102
message
Definition: server.py:50

Definition at line 2237 of file gmock/gtest/include/gtest/gtest.h.

#define SUCCEED ( )    GTEST_SUCCEED()

Definition at line 1953 of file gmock/gtest/include/gtest/gtest.h.

#define TEST (   test_case_name,
  test_name 
)    GTEST_TEST(test_case_name, test_name)

Definition at line 2310 of file gmock/gtest/include/gtest/gtest.h.

#define TEST_F (   test_fixture,
  test_name 
)
Value:
GTEST_TEST_(test_fixture, test_name, test_fixture, \
::testing::internal::GetTypeId<test_fixture>())
#define GTEST_TEST_(test_case_name, test_name, parent_class, parent_id)

Definition at line 2339 of file gmock/gtest/include/gtest/gtest.h.

Function Documentation

int RUN_ALL_TESTS ( )

Definition at line 2355 of file gmock/gtest/include/gtest/gtest.h.



ros_opcua_impl_freeopcua
Author(s): Denis Štogl
autogenerated on Tue Jan 19 2021 03:12:08