proxygen
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"

Go to the source code of this file.

Classes

class  testing::AssertionResult
 
class  testing::Test
 
struct  testing::Test::Setup_should_be_spelled_SetUp
 
class  testing::TestProperty
 
class  testing::TestResult
 
class  testing::TestInfo
 
class  testing::TestCase
 
class  testing::Environment
 
struct  testing::Environment::Setup_should_be_spelled_SetUp
 
class  testing::TestEventListener
 
class  testing::EmptyTestEventListener
 
class  testing::TestEventListeners
 
class  testing::UnitTest
 
class  testing::internal::EqHelper< lhs_is_null_literal >
 
class  testing::internal::EqHelper< true >
 
class  testing::internal::AssertHelper
 
struct  testing::internal::AssertHelper::AssertHelperData
 

Namespaces

 testing
 
 testing::internal
 

Macros

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

Typedefs

typedef internal::TimeInMillis testing::TimeInMillis
 

Functions

 testing::GTEST_DECLARE_bool_ (also_run_disabled_tests)
 
 testing::GTEST_DECLARE_bool_ (break_on_failure)
 
 testing::GTEST_DECLARE_bool_ (catch_exceptions)
 
 testing::GTEST_DECLARE_string_ (color)
 
 testing::GTEST_DECLARE_string_ (filter)
 
 testing::GTEST_DECLARE_bool_ (list_tests)
 
 testing::GTEST_DECLARE_string_ (output)
 
 testing::GTEST_DECLARE_bool_ (print_time)
 
 testing::GTEST_DECLARE_int32_ (random_seed)
 
 testing::GTEST_DECLARE_int32_ (repeat)
 
 testing::GTEST_DECLARE_bool_ (show_internal_stack_frames)
 
 testing::GTEST_DECLARE_bool_ (shuffle)
 
 testing::GTEST_DECLARE_int32_ (stack_trace_depth)
 
 testing::GTEST_DECLARE_bool_ (throw_on_failure)
 
 testing::GTEST_DECLARE_string_ (stream_result_to)
 
class UnitTestImpl * testing::internal::GetUnitTestImpl ()
 
void testing::internal::ReportFailureInUnknownLocation (TestPartResult::Type result_type, const std::string &message)
 
GTEST_API_ AssertionResult testing::AssertionSuccess ()
 
GTEST_API_ AssertionResult testing::AssertionFailure ()
 
GTEST_API_ AssertionResult testing::AssertionFailure (const Message &msg)
 
Environment * testing::AddGlobalTestEnvironment (Environment *env)
 
GTEST_API_ void testing::InitGoogleTest (int *argc, char **argv)
 
GTEST_API_ void testing::InitGoogleTest (int *argc, wchar_t **argv)
 
template<typename T1 , typename T2 >
AssertionResult testing::internal::CmpHelperEQFailure (const char *lhs_expression, const char *rhs_expression, const T1 &lhs, const T2 &rhs)
 
template<typename T1 , typename T2 >
AssertionResult testing::internal::CmpHelperEQ (const char *lhs_expression, const char *rhs_expression, const T1 &lhs, const T2 &rhs)
 
GTEST_API_ AssertionResult testing::internal::CmpHelperEQ (const char *lhs_expression, const char *rhs_expression, BiggestInt lhs, BiggestInt rhs)
 
template<typename T1 , typename T2 >
AssertionResult testing::internal::CmpHelperOpFailure (const char *expr1, const char *expr2, const T1 &val1, const T2 &val2, const char *op)
 
template<typename T1 , typename T2 >
AssertionResult testing::internal::CmpHelperNE (const char *expr1, const char *expr2, const T1 &val1, const T2 &val2)
 
GTEST_API_ AssertionResult testing::internal::CmpHelperNE (const char *expr1, const char *expr2, BiggestInt val1, BiggestInt val2)
 
template<typename T1 , typename T2 >
AssertionResult testing::internal::CmpHelperLE (const char *expr1, const char *expr2, const T1 &val1, const T2 &val2)
 
GTEST_API_ AssertionResult testing::internal::CmpHelperLE (const char *expr1, const char *expr2, BiggestInt val1, BiggestInt val2)
 
template<typename T1 , typename T2 >
AssertionResult testing::internal::CmpHelperLT (const char *expr1, const char *expr2, const T1 &val1, const T2 &val2)
 
GTEST_API_ AssertionResult testing::internal::CmpHelperLT (const char *expr1, const char *expr2, BiggestInt val1, BiggestInt val2)
 
template<typename T1 , typename T2 >
AssertionResult testing::internal::CmpHelperGE (const char *expr1, const char *expr2, const T1 &val1, const T2 &val2)
 
GTEST_API_ AssertionResult testing::internal::CmpHelperGE (const char *expr1, const char *expr2, BiggestInt val1, BiggestInt val2)
 
template<typename T1 , typename T2 >
AssertionResult testing::internal::CmpHelperGT (const char *expr1, const char *expr2, const T1 &val1, const T2 &val2)
 
GTEST_API_ AssertionResult testing::internal::CmpHelperGT (const char *expr1, const char *expr2, BiggestInt val1, BiggestInt val2)
 
GTEST_API_ AssertionResult testing::internal::CmpHelperSTREQ (const char *s1_expression, const char *s2_expression, const char *s1, const char *s2)
 
GTEST_API_ AssertionResult testing::internal::CmpHelperSTRCASEEQ (const char *s1_expression, const char *s2_expression, const char *s1, const char *s2)
 
GTEST_API_ AssertionResult testing::internal::CmpHelperSTRNE (const char *s1_expression, const char *s2_expression, const char *s1, const char *s2)
 
GTEST_API_ AssertionResult testing::internal::CmpHelperSTRCASENE (const char *s1_expression, const char *s2_expression, const char *s1, const char *s2)
 
GTEST_API_ AssertionResult testing::internal::CmpHelperSTREQ (const char *s1_expression, const char *s2_expression, const wchar_t *s1, const wchar_t *s2)
 
GTEST_API_ AssertionResult testing::internal::CmpHelperSTRNE (const char *s1_expression, const char *s2_expression, const wchar_t *s1, const wchar_t *s2)
 
GTEST_API_ AssertionResult testing::IsSubstring (const char *needle_expr, const char *haystack_expr, const char *needle, const char *haystack)
 
GTEST_API_ AssertionResult testing::IsSubstring (const char *needle_expr, const char *haystack_expr, const wchar_t *needle, const wchar_t *haystack)
 
GTEST_API_ AssertionResult testing::IsNotSubstring (const char *needle_expr, const char *haystack_expr, const char *needle, const char *haystack)
 
GTEST_API_ AssertionResult testing::IsNotSubstring (const char *needle_expr, const char *haystack_expr, const wchar_t *needle, const wchar_t *haystack)
 
GTEST_API_ AssertionResult testing::IsSubstring (const char *needle_expr, const char *haystack_expr, const ::std::string &needle, const ::std::string &haystack)
 
GTEST_API_ AssertionResult testing::IsNotSubstring (const char *needle_expr, const char *haystack_expr, const ::std::string &needle, const ::std::string &haystack)
 
template<typename RawType >
AssertionResult testing::internal::CmpHelperFloatingPointEQ (const char *lhs_expression, const char *rhs_expression, RawType lhs_value, RawType rhs_value)
 
GTEST_API_ AssertionResult testing::internal::DoubleNearPredFormat (const char *expr1, const char *expr2, const char *abs_error_expr, double val1, double val2, double abs_error)
 
GTEST_API_ AssertionResult testing::FloatLE (const char *expr1, const char *expr2, float val1, float val2)
 
GTEST_API_ AssertionResult testing::DoubleLE (const char *expr1, const char *expr2, double val1, double val2)
 
template<typename T1 , typename T2 >
bool testing::StaticAssertTypeEq ()
 
int RUN_ALL_TESTS () GTEST_MUST_USE_RESULT_
 

Variables

const int testing::kMaxStackTraceDepth = 100
 

Macro Definition Documentation

#define ADD_FAILURE ( )    GTEST_NONFATAL_FAILURE_("Failed")
#define ADD_FAILURE_AT (   file,
  line 
)
Value:
GTEST_MESSAGE_AT_(file, line, "Failed", \
#define GTEST_MESSAGE_AT_(file, line, message, result_type)

Definition at line 1812 of file gtest.h.

Referenced by TEST(), and testing::TEST().

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

Definition at line 1853 of file gtest.h.

Referenced by TEST().

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

Definition at line 2039 of file gtest.h.

Referenced by testing::TEST().

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

Definition at line 1956 of file gtest.h.

Referenced by array_test(), testing::InitGoogleTestTest::AssertStringArrayEq(), auto_retire_test(), basic_objects_test(), basic_protection_test(), basic_test(), bench(), capacity_test(), TestObserver::checkCalls(), checkReadUntilEmpty(), cleanup_test(), HTTPUpstreamTest< SPDY3CodecPair >::commonSetUp(), HTTP2UpstreamSessionWithVirtualNodesTest::commonSetUp(), enq_deq_test(), eraseCheck(), expectValidData(), testing::internal::UnitTestHelper::GetSortedTests(), testing::TestInfoTest::GetTestResult(), insertItCheck(), insertNTCheck(), isSane(), lifo_test(), linked_test(), QueueTest::MapTester(), move_test(), mt_linked_test(), testing::internal::NoDefaultContructor::NoDefaultContructor(), testing::gtest_printers_test::AllowsGenericStreamingAndImplicitConversionTemplate< T >::operator bool(), std::hash< TestStruct >::operator()(), HTTP2FramerTest::parse(), peek_test(), priv_dtor_test(), folly::io::test::StreamingCompressionTest::runUncompressStreamTest(), serverSocketSanityTest(), fizz::test::DefaultCertificateVerifierTest::SetUp(), fizz::test::HandshakeTest::SetUp(), SubWithoutTrace(), testing::internal::FinalSuccessChecker::TearDown(), folly::TEST(), fizz::test::TEST(), folly::test::TEST(), testing::internal::TEST(), TEST(), testing::gtest_printers_test::TEST(), testing::TEST(), test_enable_shared_from_this(), folly::TEST_F(), TEST_F(), wangle::TEST_F(), fizz::test::TEST_F(), folly::test::TEST_F(), fizz::server::test::TEST_F(), fizz::client::test::TEST_F(), testing::TEST_F(), test_I_assignIL3(), test_I_assignInputRange3(), test_I_assignN3(), test_I_assignRange3(), test_I_at3(), test_I_attach3(), test_I_back3(), test_I_emplaceBack3(), test_I_emptyConstruction3(), test_I_forwardIteratorConstruction3(), test_I_front3(), test_ilAssignment3(), test_ilConstruction3(), test_inputIteratorConstruction3(), test_iteratorEmplacement3(), test_iteratorErase3(), test_iteratorEraseRange3(), test_iteratorInsertIL3(), test_iteratorInsertion3(), test_iteratorInsertionInputIterator3(), test_iteratorInsertionIterator3(), test_iteratorInsertionN3(), test_iteratorInsertionRV3(), test_iterators3(), test_memberSwappable3(), test_moveConstruction3(), test_moveConstructionWithAllocatorSupplied3(), test_nConstruction3(), test_nCopyConstruction3(), test_nonmemberSwappable3(), test_operatorBrace3(), TEST_P(), fizz::test::TEST_P(), test_popBack3(), test_populate3(), test_pushBack3(), test_pushBackRV3(), test_relinquish3(), test_reserve3(), test_resize3(), test_resizeT3(), test_reversibleIterators3(), testConnectOptWrite(), TestEq1(), TestInitGoogleMock(), testNumHandlers(), timeout_test(), testing::internal::To::To(), TYPED_TEST(), TYPED_TEST_P(), verify(), verifyAllocator(), folly::SSLContextTest::verifySSLCipherList(), folly::AsyncSSLSocketWriteTest::verifyVec(), virtual_test(), and UpdateSyncState::waitForUpdate().

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

Definition at line 2035 of file gtest.h.

Referenced by testing::TEST(), and TEST().

#define ASSERT_GE (   val1,
  val2 
)    GTEST_ASSERT_GE(val1, val2)
#define ASSERT_GT (   val1,
  val2 
)    GTEST_ASSERT_GT(val1, val2)
#define ASSERT_LT (   val1,
  val2 
)    GTEST_ASSERT_LT(val1, val2)

Definition at line 1968 of file gtest.h.

Referenced by folly::test::TEST(), testing::TEST(), TEST(), TEST_F(), test_populate3(), and testGrouping().

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

Definition at line 2047 of file gtest.h.

Referenced by testing::TEST().

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

Definition at line 2099 of file gtest.h.

Referenced by TEST(), TEST_F(), and PollerWithState::waitForUpdate().

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

Definition at line 1851 of file gtest.h.

Referenced by TEST(), and TEST_F().

#define ASSERT_STRCASEEQ (   s1,
  s2 
)    ASSERT_PRED_FORMAT2(::testing::internal::CmpHelperSTRCASEEQ, s1, s2)

Definition at line 2008 of file gtest.h.

Referenced by testing::TEST(), and TEST().

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

Definition at line 2010 of file gtest.h.

Referenced by testing::TEST(), and TEST().

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

Definition at line 2006 of file gtest.h.

Referenced by testing::TEST(), and TEST().

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

Definition at line 1849 of file gtest.h.

Referenced by TEST(), and test_enable_shared_from_this().

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

Definition at line 1865 of file gtest.h.

Referenced by basic_test(), bench(), capacity_test(), checkAsyncWriter(), folly::SSLServerAsyncCacheAcceptCallback::connAccepted(), MultiFilePollerTest::delayedWrite(), PCQ< T >::dequeue(), PCQ< T >::enqueue(), expectValidData(), free_function_retire_test(), testing::internal::UnitTestHelper::GetSortedTests(), isSane(), lifo_test(), move_test(), operator<<(), peek_test(), run_basic_test(), run_multi_poster_multi_waiter_test(), folly::io::test::StreamingCompressionTest::runUncompressStreamTest(), runVisitContiguousRangesTest(), fizz::test::DefaultCertificateVerifierTest::SetUp(), folly::test::ReadFileFd::SetUp(), CommonTest< T >::TearDown(), testing::CurrentTestInfoTest::TearDownTestCase(), folly::TEST(), folly::symbolizer::test::TEST(), testing::internal::TEST(), folly::test::TEST(), TEST(), testing::TEST(), test_enable_shared_from_this(), folly::TEST_F(), fizz::test::TEST_F(), TEST_F(), wangle::TEST_F(), testing::TEST_F(), test_I_assignIL3(), test_I_assignInputRange3(), test_I_assignN3(), test_I_assignRange3(), test_I_at3(), test_I_attach3(), test_I_back3(), test_I_clear3(), test_I_comparable3(), test_I_copyAssign3(), test_I_copyConstruction3(), test_I_copyWithAllocator3(), test_I_customAllocator3(), test_I_emplaceBack3(), test_I_emptyConstruction3(), test_I_equitable3(), test_I_forwardIteratorAllocConstruction3(), test_I_forwardIteratorConstruction3(), test_I_front3(), test_ilAllocConstruction3(), test_ilAssignment3(), test_ilConstruction3(), test_inputIteratorAllocConstruction3(), test_inputIteratorConstruction3(), test_iteratorEmplacement3(), test_iteratorErase3(), test_iteratorEraseRange3(), test_iteratorInsertIL3(), test_iteratorInsertion3(), test_iteratorInsertionInputIterator3(), test_iteratorInsertionIterator3(), test_iteratorInsertionN3(), test_iteratorInsertionRV3(), test_iterators3(), test_memberSwappable3(), test_moveAssignment3(), test_moveConstruction3(), test_moveConstructionWithAllocatorSupplied3(), test_nAllocConstruction3(), test_nConstruction3(), test_nCopyAllocConstruction3(), test_nCopyConstruction3(), test_nonmemberSwappable3(), test_operatorBrace3(), TEST_P(), fizz::test::TEST_P(), test_popBack3(), test_pushBack3(), test_pushBackRV3(), test_relinquish3(), test_reserve3(), test_resize3(), test_resizeT3(), test_reversibleIterators3(), test_shrinkToFit3(), timeout_test(), TYPED_TEST(), TYPED_TEST_P(), verify(), wangle::SSLSessionPersistentCacheTest::verifyEntryInCache(), verifyVector(), and wide_cas_test().

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

Definition at line 1847 of file gtest.h.

Referenced by testing::TEST(), TEST(), fizz::test::TEST_F(), and folly::io::test::TEST_P().

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

Definition at line 2031 of file gtest.h.

Referenced by testing::gmock_generated_actions_test::SubstractAction::Perform(), TEST(), testing::gmock_generated_actions_test::TEST(), and testing::TEST().

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

Definition at line 1922 of file gtest.h.

Referenced by proxygen::ACTION_P(), AdHocTest(), testing::gmock_matchers_test::AllArgsHelper::AllArgsHelper(), ExpectingAlloc< T >::allocate(), testing::gmock_matchers_test::AStruct::AStruct(), folly::test::atomic_notify_one(), basicOpsTest(), basics(), folly::basicTest(), BENCHMARK(), testing::gtest_printers_test::Big::Big(), blockingFirst(), fizz::test::callDecrypt(), fizz::test::callEncrypt(), ReadStats::check(), MoveToFbStringTest::check(), check< std::string >(), checkAsyncWriter(), checkBuf(), folly::MockAsyncSSLSocket::checkEor(), checkError(), testing::InitGoogleTestTest::CheckFlags(), checkItemParseError(), checkMaybeCoercedKeys(), FutureDAGTest::checkOrder(), checkQError(), checkResplitMaxLength(), checkTracepointArguments(), checkXYKeyErrorsAndParseError(), clause11_21_4_2_c(), clause11_21_4_2_e(), clause11_21_4_2_f(), clause11_21_4_2_h(), clause11_21_4_2_j(), clause11_21_4_2_k(), clause11_21_4_3(), clause11_21_4_4(), clause11_21_4_5(), clause11_21_4_6_1(), clause11_21_4_6_2(), clause11_21_4_6_3_a(), clause11_21_4_6_4(), compareBinary(), compareHex(), compareOctal(), testing::gmock_more_actions_test::Foo::Concat10(), concurrentBlocking(), concurrentPopforSharedBuffer(), concurrentPush(), concurrentSizeTest(), folly::SSLServerAcceptCallback::connAccepted(), folly::SSLServerAcceptCallbackDelay::connAccepted(), folly::HandshakeErrorCallback::connAccepted(), folly::HandshakeTimeoutCallback::connAccepted(), QPACKTests::controlAck(), HTTP2FramerTest::dataFrameTest(), testing::internal::Derived::Derived(), testing::gmock_matchers_test::Derived::Derived(), testing::gmock_matchers_test::ReferencesBarOrIsZeroImpl::DescribeNegationTo(), testing::gmock_matchers_test::IsHalfOfMatcher::DescribeNegationTo(), testing::gmock_matchers_test::NewEvenMatcherImpl::DescribeTo(), destroy< IOThreadPoolExecutor >(), QueueTest::destroyCallback(), testing::gmock_matchers_test::DivisibleByImpl::divider(), doEmptyHeaderValueTest(), fizz::client::test::ClientProtocolTest::doFinishedFlow(), SizedData< dataSize, alignment >::doModifications(), doResize(), doResizeWithoutInit(), doShortSynReplyTest(), doubleBatchInnerDispatch(), doubleBatchOuterDispatch(), DSchedMixedTest(), proxygen::hpack::encodeDecode(), folly::symbolizer::test::expect(), HTTPDownstreamTest< SPDY3_1CodecPair >::expect101(), fizz::test::ProtocolTest< ClientTypes, Actions >::expectActions(), fizz::test::HandshakeTest::expectEarlyDataRejectError(), fizz::test::ProtocolTest< ClientTypes, Actions >::expectEncryptedReadRecordLayerCreation(), fizz::test::ProtocolTest< ClientTypes, Actions >::expectEncryptedWriteRecordLayerCreation(), fizz::test::ProtocolTest< ClientTypes, Actions >::expectError(), IPAddressTest::ExpectIsValid(), proxygen::FakeHTTPCodecCallback::expectMessageHelper(), HTTPDownstreamTest< SPDY3_1CodecPair >::expectResponses(), fizz::test::PlaintextRecordTest::expectSame(), fizz::test::RecordTest::expectSame(), fizz::test::EncryptedRecordTest::expectSame(), fizz::test::ProtocolTest< ClientTypes, Actions >::expectSingleAction(), expiration(), testing::gmock_generated_function_mockers_test::FunctionMockerTest::FunctionMockerTest(), futureExecutor(), genericCheck(), fizz::test::ExtensionsTest::getExtensions(), NoDiskPoller::getFileModData(), testing::internal::UnitTestHelper::GetSortedTests(), testing::gmock_generated_actions_test::GiantTemplate< T1, T2, T3, k4, k5, k6, T7, T8, T9 >::GiantTemplate(), folly::HandshakeCallback::handshakeSuc(), folly::SSLHandshakeBase::handshakeVer(), QPACKTests::headerAck(), HTTPDownstreamTest< SPDY3_1CodecPair >::HTTPDownstreamTest(), InheritsThrowingConstructor::InheritsThrowingConstructor(), testing::gmock_matchers_test::Type< T >::IsTypeOf(), join(), testing::gmock_matchers_test::DerivedClass::k(), keepAliveTest(), lc_step(), liveClockWaitUntilTests(), FakeAllPowerfulAssertingMutex::lock(), folly::FakeAllPowerfulAssertingMutexInternal::lock(), FakeAllPowerfulAssertingMutex::lock_shared(), folly::FakeAllPowerfulAssertingMutexInternal::lock_shared(), FakeAllPowerfulAssertingMutex::lock_upgrade(), folly::FakeAllPowerfulAssertingMutexInternal::lock_upgrade(), main(), makeMOObserver(), QueueTest::MapTester(), testing::gmock_matchers_test::GreaterThanMatcher::MatchAndExplain(), testing::gmock_matchers_test::PolymorphicIsEvenImpl::MatchAndExplain(), testing::gmock_matchers_test::MATCHER_P(), QueueTest::maxQueueSize(), QueueTest::maxReadAtOnce(), maxTransactionHelper(), folly::compression::maybeTestPrevious(), folly::compression::maybeTestPreviousValue(), SimpleDigest< MergeSize >::merge(), testing::gmock_generated_function_mockers_test::MockOverloadedOnArgNumber::MockOverloadedOnArgNumber(), testing::gmock_generated_function_mockers_test::MockOverloadedOnConstness::MockOverloadedOnConstness(), testing::gmock_generated_function_mockers_test::MockStack< T >::MockStack(), QueueTest::multiConsumer(), multiPusherPopper(), testing::gtest_printers_test::Foo::MyVirtualMethod(), testing::internal::NoDefaultContructor::NoDefaultContructor(), testing::gmock_generated_actions_test::NullaryConstructorClass::NullaryConstructorClass(), HTTPTargetSessionAcceptor::onCreate(), HTTPUpstreamTest< SPDY3CodecPair >::openNiceTransaction(), HTTPUpstreamTest< SPDY3CodecPair >::openTransaction(), MockHTTPUpstreamTest::openTransaction(), testing::gtest_printers_test::AllowsGenericStreamingAndImplicitConversionTemplate< T >::operator bool(), testing::gmock_matchers_test::ConvertibleToBool::operator bool(), testing::gmock_generated_actions_test::SumOf6Functor::operator()(), folly::ExpectingDeleter::operator()(), testing::gmock_matchers_test::ConstPropagatingPtr< T >::operator*(), operator<<(), testing::gmock_matchers_test::NotCopyable::operator>=(), HTTPDownstreamTest< SPDY3_1CodecPair >::parseOutput(), testing::gmock_generated_actions_test::SubstractAction::Perform(), poolStats(), testing::gtest_printers_test::PrintPointer(), producerConsumerBench(), fizz::client::test::pskEq(), QueueTest::putMessages(), folly::AttachDetachClient::readDataAvailable(), folly::SSLClient::readDataAvailable(), proxygen::hpack::TestHeaderCodecStats::recordDecode(), proxygen::hpack::TestHeaderCodecStats::recordDecodeError(), proxygen::hpack::TestHeaderCodecStats::recordDecodeTooLarge(), proxygen::hpack::TestHeaderCodecStats::recordEncode(), RecursiveAddTest(), registersToExecutorListTest(), removeThreadTest(), fizz::test::HandshakeTest::resetTransportsAndStartCookieHandshake(), resize(), proxygen::HeaderTableTests::resizeAndFillTable(), resizeThreadWhileExecutingTest(), resizeUnderLoad(), run_basic_tests(), run_basic_thread(), run_constexpr_clamp_cast_test(), run_mt_sequencer_test(), run_mt_sequencer_thread(), run_queue_moving(), runAllAndValidate(), folly::test::runCloseTest(), folly::io::test::StreamingCompressionTest::runCompressStreamTest(), folly::io::test::StreamingCompressionTest::runFlushTest(), folly::test::runKillTest(), runMultiBitTest64(), runMultiBitTest8(), runMultiScopeTest(), runNeverFailTest(), runPerfectForwardingTest(), folly::io::test::StreamingCompressionTest::runResetStreamTest(), runSignedMultiBitTest8(), folly::io::test::CompressionTest::runSimpleIOBufTest(), runSimpleMapTest(), runSimpleSetTest(), folly::io::test::CompressionTest::runSimpleStringTest(), folly::io::test::CompressionVarintTest::runSimpleTest(), folly::io::test::CompressionCorruptionTest::runSimpleTest(), folly::io::test::AutomaticCodecTest::runSimpleTest(), runSimpleTest64(), runSimpleTest8(), runSimultaneousAccessMapTest(), runTestMatches2(), runTryEnqDeqTest(), folly::runWritesNeverFail(), QueueTest::sendOne(), CommonTest< T >::SetUp(), MoveToFbStringTest::SetUp(), testing::SetUpTestCaseTest::SetUp(), DownstreamTransactionTest::setupRequestResponseFlow(), testing::SetUpTestCaseTest::SetUpTestCase(), shared_ptr_test(), SimpleDigest< MergeSize >::SimpleDigest(), SimpleTest(), singleBatchDispatch(), singleThreadTest(), stop< IOThreadPoolExecutor >(), testing::gmock_nice_strict_test::MockBar::str(), folly::stressTest(), SubWithoutTrace(), swap_test(), taskStats(), CommonTest< T >::TearDown(), Predicate1Test::TearDown(), testing::internal::FinalSuccessChecker::TearDown(), Predicate2Test::TearDown(), Predicate3Test::TearDown(), Predicate4Test::TearDown(), Predicate5Test::TearDown(), testing::SetUpTestCaseTest::TearDownTestCase(), testing::CurrentTestInfoTest::TearDownTestCase(), testing::gmock_generated_actions_test::TenArgConstructorClass::TenArgConstructorClass(), fizz::test::TEST(), folly::symbolizer::test::TEST(), folly::netops::TEST(), fizz::server::test::TEST(), folly::futures::test::TEST(), folly::gen::TEST(), folly::TEST(), fizz::testing::TEST(), TEST(), folly::test::TEST(), wangle::TEST(), testing::internal::TEST(), testing::gmock_generated_actions_test::TEST(), folly::io::test::TEST(), testing::gmock_nice_strict_test::TEST(), testing::gmock_matchers_test::TEST(), testing::gmock_more_actions_test::TEST(), testing::gtest_printers_test::TEST(), testing::gmock_generated_function_mockers_test::TEST(), testing::TEST(), my_namespace::testing::TEST(), folly::detail::TEST_F(), fizz::extensions::test::TEST_F(), proxygen::TEST_F(), fizz::server::test::TEST_F(), fizz::test::TEST_F(), folly::TEST_F(), TEST_F(), proxygen::StructuredHeaders::TEST_F(), folly::test::TEST_F(), testing::gmock_generated_function_mockers_test::TEST_F(), fizz::client::test::TEST_F(), testing::gmock_matchers_test::TEST_F(), fizz::testing::TEST_P(), TEST_P(), fizz::test::TEST_P(), proxygen::TEST_P(), folly::io::test::TEST_P(), testing::gmock_matchers_test::TEST_P(), folly::sync_tests::testAcquireLocked(), folly::sync_tests::testAcquireLockedWithConst(), folly::sync_tests::testBasicImpl(), HTTPUpstreamTest< C >::testBasicRequest(), HTTPUpstreamTest< C >::testBasicRequestHttp10(), testCmp(), folly::sync_tests::testConcurrency(), MockCodecDownstreamTest::testConnFlowControlBlocked(), folly::sync_tests::testConstCopy(), testCustomSwap(), folly::sync_tests::testDeprecated(), testDoubleToString(), folly::sync_tests::testDualLocking(), folly::sync_tests::testDualLockingWithConst(), folly::compression::testEmpty(), testEmptyFile(), folly::sync_tests::testExchange(), testExpectHandling(), TestFailureThrowsRuntimeError(), testFiberLocal(), GenericFilterTest< Owned >::testFilters(), HTTP2CodecTest::testFrameSizeLimit(), testFromBinary(), TESTFUN(), testGetLoop(), MockCodecDownstreamTest::testGoaway(), HTTP2CodecTest::testHeaderListSize(), testHostIsIpAddress(), testIdenticalTo(), testIdenticalToDelim(), TestInitGoogleMock(), testIntegral2String(), testInvalid(), testInvalidFile(), testIsRelocatable(), folly::compression::testJump(), folly::compression::testJumpTo(), testLen(), testMAC(), testMap(), testing::gmock_matchers_test::FloatingPointNearTest< RawType >::TestNearMatches(), folly::compression::testNext(), testNoncopyableMap(), testNumHandlers(), testParseURL(), testing::InitGoogleTestTest::TestParsingFlags(), testPathAndQuery(), HTTPDownstreamTest< C >::testPriorities(), testRangeFunc(), testRemoveQueryParam(), testScopeFailAndScopeSuccess(), testSetLoop(), testSetQueryParam(), wangle::testSimplePutGet(), HTTPDownstreamTest< C >::testSimpleUpgrade(), HTTPUpstreamTest< C >::testSimpleUpgrade(), testing::gmock_matchers_test::FloatingPointTest< RawType >::TestSize(), folly::compression::testSkip(), folly::compression::testSkipTo(), testString2Integral(), testTemporaryDirectory(), folly::sync_tests::testTimed(), folly::sync_tests::testTimedShared(), folly::sync_tests::testTimedSynchronized(), folly::sync_tests::testTimedSynchronizedWithConst(), testTraits(), testTryReadUntil(), testTryWriteUntil(), testUndoAction(), folly::sync_tests::testUnlock(), folly::sync_tests::testUnlockCommon(), testUpdate100x10(), testUsesNameFromNamedThreadFactory(), testValid(), testValidFile(), testVariadicTo(), testVariadicToDelim(), folly::test::testVarint(), folly::sync_tests::testWithLock(), testing::internal::To::To(), FakeAllPowerfulAssertingMutex::try_lock_for(), folly::FakeAllPowerfulAssertingMutexInternal::try_lock_for(), FakeAllPowerfulAssertingMutex::try_lock_upgrade_for(), folly::FakeAllPowerfulAssertingMutexInternal::try_lock_upgrade_for(), FakeAllPowerfulAssertingMutex::try_unlock_upgrade_and_lock_for(), folly::FakeAllPowerfulAssertingMutexInternal::try_unlock_upgrade_and_lock_for(), TYPED_TEST(), fizz::test::TYPED_TEST(), TYPED_TEST_P(), testing::gmock_generated_actions_test::UnaryConstructorClass::UnaryConstructorClass(), unique_ptr_test(), FakeAllPowerfulAssertingMutex::unlock(), folly::FakeAllPowerfulAssertingMutexInternal::unlock(), FakeAllPowerfulAssertingMutex::unlock_and_lock_shared(), folly::FakeAllPowerfulAssertingMutexInternal::unlock_and_lock_shared(), FakeAllPowerfulAssertingMutex::unlock_and_lock_upgrade(), folly::FakeAllPowerfulAssertingMutexInternal::unlock_and_lock_upgrade(), FakeAllPowerfulAssertingMutex::unlock_shared(), folly::FakeAllPowerfulAssertingMutexInternal::unlock_shared(), FakeAllPowerfulAssertingMutex::unlock_upgrade(), folly::FakeAllPowerfulAssertingMutexInternal::unlock_upgrade(), FakeAllPowerfulAssertingMutex::unlock_upgrade_and_lock(), folly::FakeAllPowerfulAssertingMutexInternal::unlock_upgrade_and_lock(), FakeAllPowerfulAssertingMutex::unlock_upgrade_and_lock_shared(), folly::FakeAllPowerfulAssertingMutexInternal::unlock_upgrade_and_lock_shared(), testing::gmock_matchers_test::Unprintable::Unprintable(), useIteratorAfterInsertLarge(), useIteratorAfterInsertSmall(), useReferenceAfterInsertLarge(), useReferenceAfterInsertSmall(), Validator::validate(), AtomicBatchDispatcherTesting::validateResults(), validateTestCertBundle(), validateTestCertWithSAN(), validData(), foo::StreamableTemplateInFoo< T >::value(), fizz::test::HandshakeTest::verifyEarlyParameters(), fizz::extensions::test::TokenBindingServerExtensionTest::verifyExtensionFields(), proxygen::hpack::verifyHeaders(), fizz::test::HandshakeTest::verifyParameters(), VerifyResults(), verifyStackTraces(), virtualExecutorTest(), vprintfCheck(), WeakRefTest(), proxygen::HeaderTableTests::xcheck(), testing::gmock_generated_actions_test::BoolResetter::~BoolResetter(), CommonTest< T >::~CommonTest(), testing::gmock_more_actions_test::DeletionTester::~DeletionTester(), folly::ExpectWriteErrorCallback::~ExpectWriteErrorCallback(), Foo::~Foo(), folly::HandshakeCallback::~HandshakeCallback(), PrimeTableTest< T >::~PrimeTableTest(), folly::ReadCallbackBase::~ReadCallbackBase(), SizedData< dataSize, alignment >::~SizedData(), folly::SSLClient::~SSLClient(), folly::SSLServerAcceptCallback::~SSLServerAcceptCallback(), folly::SSLServerAcceptCallbackBase::~SSLServerAcceptCallbackBase(), ThrowInDestructor< N, I >::~ThrowInDestructor(), and folly::WriteCallbackBase::~WriteCallbackBase().

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

Definition at line 1862 of file gtest.h.

Referenced by testing::gmock_matchers_test::AllOfMatches(), testing::gmock_matchers_test::AnyOfMatches(), testing::gmock_matchers_test::AStruct::AStruct(), basicOpsTest(), BENCHMARK(), fizz::test::callDecrypt(), MoveToFbStringTest::check(), checkTracepointArguments(), fizz::server::test::AeadTicketCipherTest::checkUnsetEncrypt(), fizz::client::test::AsyncFizzClientTest::completeEarlyHandshake(), testing::gmock_more_actions_test::Foo::Concat10(), testing::gmock_matchers_test::ConvertibleFromAny::ConvertibleFromAny(), testing::gmock_matchers_test::Derived::Derived(), testing::gmock_matchers_test::ReferencesBarOrIsZeroImpl::DescribeNegationTo(), testing::gmock_matchers_test::NewEvenMatcherImpl::DescribeTo(), fizz::client::test::ClientProtocolTest::doFinishedFlow(), doTokenBucketTest(), testing::gmock_matchers_test::EMString(), ZlibServerFilterTest::exercise_compression(), expectEQ(), IPAddressTest::ExpectIsValid(), expectLT(), expectTempdirExists(), expiration(), EgressStateMachineFixture::fail(), IngressStateMachineFixture::fail(), testing::gmock_generated_function_mockers_test::FunctionMockerTest::FunctionMockerTest(), testing::internal::UnitTestHelper::GetSortedTests(), intervalTest(), testing::gmock_matchers_test::Type< T >::IsTypeOf(), testing::gmock_matchers_test::DerivedClass::k(), testing::gmock_matchers_test::GreaterThanMatcher::MatchAndExplain(), testing::gmock_matchers_test::PolymorphicIsEvenImpl::MatchAndExplain(), QueueTest::maxQueueSize(), folly::compression::maybeTestPrevious(), testing::internal::ConstAndNonConstCastable::operator Base(), testing::gmock_matchers_test::ConvertibleToBool::operator bool(), testing::gmock_generated_actions_test::SumOf6Functor::operator()(), testing::gmock_matchers_test::IsGreaterThan::operator()(), testing::gmock_matchers_test::Functor::operator()(), testing::gmock_matchers_test::PolymorphicFunctor::operator()(), testing::gmock_matchers_test::ReferencingFunctor::operator()(), testing::gmock_matchers_test::ConstPropagatingPtr< T >::operator*(), operator<<(), testing::gmock_matchers_test::NotCopyable::operator>=(), producerConsumerBench(), run_constexpr_clamp_cast_test(), folly::test::run_timed_wait_tmo_tests(), folly::test::run_try_wait_tests(), runAllAndValidate(), runBasicHoldersTest(), runBasicTest(), runBasicUpgradeTest(), runFailingTryTimeoutTest(), folly::io::test::StreamingCompressionTest::runFlushTest(), runMultiScopeTest(), runPerfectForwardingTest(), runSimultaneousAccessMapTest(), runTestMatches2(), runVisitContiguousRangesTest(), testing::internal::FinalSuccessChecker::TearDown(), fizz::test::TEST(), folly::test::TEST(), fizz::server::test::TEST(), wangle::TEST(), folly::TEST(), testing::internal::TEST(), testing::gmock_more_actions_test::TEST(), testing::gmock_matchers_test::TEST(), testing::gmock_generated_actions_test::TEST(), TEST(), testing::TEST(), proxygen::StructuredHeaders::TEST_F(), fizz::extensions::test::TEST_F(), wangle::TEST_F(), fizz::server::test::TEST_F(), TEST_F(), proxygen::TEST_F(), testing::gmock_generated_function_mockers_test::TEST_F(), folly::TEST_F(), fizz::client::test::TEST_F(), folly::test::TEST_F(), fizz::test::TEST_F(), testing::gmock_matchers_test::TEST_F(), TEST_P(), fizz::test::TEST_P(), folly::io::test::TEST_P(), testing::gmock_matchers_test::TEST_P(), HTTPUpstreamTest< C >::testBasicRequest(), testCmp(), folly::compression::testEmpty(), folly::testExecutor(), testFiberLocal(), MockCodecDownstreamTest::testGoaway(), folly::compression::testJump(), folly::compression::testJumpTo(), testMap(), testing::gmock_matchers_test::FloatingPointTest< RawType >::TestMatches(), testing::gmock_matchers_test::FloatingPointNearTest< RawType >::TestNearMatches(), folly::compression::testNext(), wangle::testSimplePutGet(), HTTPDownstreamTest< C >::testSimpleUpgrade(), folly::compression::testSkip(), folly::compression::testSkipTo(), testStr2Bool(), testTemporaryDirectory(), folly::sync_tests::testTimed(), testTraits(), testTryReadUntil(), testTryWriteUntil(), folly::sync_tests::testUnlock(), folly::sync_tests::testUnlockCommon(), folly::test::testVarintFail(), testing::internal::To::To(), TYPED_TEST(), testing::gmock_matchers_test::Unprintable::Unprintable(), testing::gmock_matchers_test::IntValue::value(), testing::gmock_generated_actions_test::BoolResetter::~BoolResetter(), testing::gmock_more_actions_test::DeletionTester::~DeletionTester(), and PrimeTableTest< T >::~PrimeTableTest().

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

Definition at line 2027 of file gtest.h.

Referenced by testing::TEST(), and TEST().

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

Definition at line 2043 of file gtest.h.

Referenced by TEST(), and testing::TEST().

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

Definition at line 2101 of file gtest.h.

#define EXPECT_STRCASEEQ (   s1,
  s2 
)    EXPECT_PRED_FORMAT2(::testing::internal::CmpHelperSTRCASEEQ, s1, s2)

Definition at line 1999 of file gtest.h.

Referenced by testing::TEST(), and TEST().

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

Definition at line 2001 of file gtest.h.

Referenced by testing::TEST(), and TEST().

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

Definition at line 1997 of file gtest.h.

Referenced by testing::SetUpTestCaseTest::SetUp(), testing::TEST(), TEST(), and testing::TEST_F().

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

Definition at line 1859 of file gtest.h.

Referenced by AdHocTest(), testing::gmock_matchers_test::AllOfMatches(), testing::gmock_matchers_test::AnyOfMatches(), testing::gmock_matchers_test::AStruct::AStruct(), basicOpsTest(), basics(), folly::basicTest(), BENCHMARK(), testing::gtest_printers_test::Big::Big(), fizz::test::callDecrypt(), fizz::test::ExtensionsTest::checkEncode(), checkError(), CheckFirstLessThanSecond(), checkLocation(), FutureDAGTest::checkOrder(), CheckPrefixMatch(), checkSingleLocation(), folly::io::test::compressSome(), testing::gmock_more_actions_test::Foo::Concat10(), concurrentSizeTest(), folly::AttachDetachClient::connectSuccess(), contendedRW(), testing::gmock_matchers_test::ConvertibleFromAny::ConvertibleFromAny(), testing::internal::Derived::Derived(), testing::gmock_matchers_test::Derived::Derived(), testing::gmock_matchers_test::ReferencesBarOrIsZeroImpl::DescribeNegationTo(), testing::gmock_matchers_test::NewEvenMatcherImpl::DescribeTo(), QueueTest::destroyCallback(), deterministicAtomicWaitUntilTests(), AtomicBatchDispatcherTesting::dispatchJobs(), doEmptyHeaderValueTest(), fizz::client::test::ClientProtocolTest::doFinishedFlow(), doResize(), doResizeWithoutInit(), ZlibServerFilterTest::exercise_compression(), fizz::server::test::AeadTicketCipherTest::expectDecode(), fizz::test::ProtocolTest< ClientTypes, Actions >::expectEncryptedReadRecordLayerCreation(), fizz::test::ProtocolTest< ClientTypes, Actions >::expectEncryptedWriteRecordLayerCreation(), expectEQ(), fizz::test::ProtocolTest< ClientTypes, Actions >::expectError(), IPAddressTest::ExpectIsValid(), expectLT(), fizz::test::AsyncFizzBaseTest::expectReadData(), HTTPDownstreamTest< SPDY3_1CodecPair >::expectResponses(), expectTempdirExists(), expiration(), EgressStateMachineFixture::follow(), IngressStateMachineFixture::follow(), testing::gmock_generated_function_mockers_test::FunctionMockerTest::FunctionMockerTest(), fizz::server::test::ServerProtocolTest::getActions(), RequestContextTest::getContext(), RequestContextTest::getData(), fizz::test::ExtensionsTest::getExtensions(), testing::internal::UnitTestHelper::GetSortedTests(), testing::internal::GetThreadCount(), intervalTest(), testing::gmock_matchers_test::IntReferenceWrapper::IntReferenceWrapper(), testing::gmock_matchers_test::Type< T >::IsTypeOf(), testing::gmock_matchers_test::DerivedClass::k(), keepAliveTest(), liveClockWaitUntilTests(), testing::gmock_matchers_test::GreaterThanMatcher::MatchAndExplain(), testing::gmock_matchers_test::PolymorphicIsEvenImpl::MatchAndExplain(), testing::gmock_matchers_test::MATCHER_P(), QueueTest::maxQueueSize(), folly::compression::maybeTestPrevious(), testing::gmock_generated_function_mockers_test::MockOverloadedOnArgNumber::MockOverloadedOnArgNumber(), testing::gtest_printers_test::Foo::MyVirtualMethod(), TestClientPipelineFactory::newPipeline(), testing::internal::NoDefaultContructor::NoDefaultContructor(), testing::internal::Castable::operator Base(), testing::internal::ConstCastable::operator Base(), testing::internal::ConstAndNonConstCastable::operator Base(), testing::gtest_printers_test::AllowsGenericStreamingAndImplicitConversionTemplate< T >::operator bool(), testing::gmock_matchers_test::ConvertibleToBool::operator bool(), testing::gmock_generated_actions_test::SumOf6Functor::operator()(), testing::gmock_matchers_test::IsGreaterThan::operator()(), testing::gmock_matchers_test::Functor::operator()(), testing::gmock_matchers_test::PolymorphicFunctor::operator()(), testing::gmock_matchers_test::ReferencingFunctor::operator()(), testing::gmock_matchers_test::ConstPropagatingPtr< T >::operator*(), operator<<(), testing::gmock_matchers_test::NotCopyable::operator>=(), HTTPUpstreamTest< SPDY3CodecPair >::parseOutput(), testing::gmock_generated_actions_test::SubstractAction::Perform(), folly::AttachDetachClient::readDataAvailable(), folly::test::run_basic_timed_wait_tests(), run_constexpr_clamp_cast_test(), run_queue_moving(), run_steady_clock_test(), run_system_clock_test(), folly::test::run_timed_wait_regular_test(), folly::test::run_try_wait_tests(), runAllAndValidate(), runBasicHoldersTest(), runBasicTest(), runBasicUpgradeTest(), runElementTypeTest(), runFailingTryTimeoutTest(), folly::io::test::StreamingCompressionTest::runFlushTest(), runManyReadLocksTestWithoutTokens(), runManyReadLocksTestWithTokens(), runMultiScopeTest(), runNeverFailTest(), runNeverFailThread(), runNeverFailUntilThread(), runPerfectForwardingTest(), runTestMatches2(), runTimeoutInPastTest(), runTryEnqDeqTest(), folly::io::test::StreamingCompressionTest::runUncompressStreamTest(), runVisitContiguousRangesTest(), fizz::server::test::AeadTicketCipherTest::setTicketSecrets(), fizz::server::test::AeadCookieCipherTest::SetUp(), setupServer(), testing::CurrentTestInfoTest::SetUpTestCase(), wangle::SSLSessionPersistentCacheTest::TearDown(), QuickTest::TearDown(), testing::internal::FinalSuccessChecker::TearDown(), HTTP2UpstreamSessionWithVirtualNodesTest::TearDown(), MockHTTPUpstreamTest::TearDown(), testing::CurrentTestInfoTest::TearDownTestCase(), fizz::test::TEST(), folly::test::TEST(), folly::TEST(), fizz::server::test::TEST(), testing::internal::TEST(), testing::gmock_matchers_test::TEST(), testing::gmock_more_actions_test::TEST(), testing::gmock_generated_actions_test::TEST(), wangle::TEST(), testing::gmock_generated_function_mockers_test::TEST(), testing::gtest_printers_test::TEST(), TEST(), folly::io::test::TEST(), testing::TEST(), proxygen::StructuredHeaders::TEST_F(), fizz::extensions::test::TEST_F(), wangle::TEST_F(), fizz::server::test::TEST_F(), TEST_F(), proxygen::TEST_F(), fizz::test::TEST_F(), testing::gmock_generated_function_mockers_test::TEST_F(), fizz::client::test::TEST_F(), folly::TEST_F(), folly::test::TEST_F(), testing::gmock_matchers_test::TEST_F(), testing::TEST_F(), TEST_P(), fizz::test::TEST_P(), folly::io::test::TEST_P(), testing::gmock_matchers_test::TEST_P(), HTTPUpstreamTest< C >::testBasicRequest(), testCmp(), testEmptyFile(), folly::testExecutor(), testFinally(), TESTFUN(), testInvalidFile(), folly::compression::testJump(), folly::compression::testJumpTo(), testing::gmock_matchers_test::FloatingPointTest< RawType >::TestMatches(), testing::gmock_matchers_test::FloatingPointNearTest< RawType >::TestNearMatches(), folly::compression::testNext(), wangle::testSimplePutGet(), folly::compression::testSkip(), folly::compression::testSkipTo(), testStr2Bool(), testTemporaryDirectory(), folly::sync_tests::testTimed(), testTryReadUntil(), testTryWriteUntil(), folly::sync_tests::testUnlock(), folly::sync_tests::testUnlockCommon(), testValidFile(), testVariadicTo(), testVariadicToDelim(), folly::test::testVarint(), testing::internal::To::To(), treeDfs(), fizz::test::TYPED_TEST(), TYPED_TEST(), testing::gmock_matchers_test::Unprintable::Unprintable(), validateInheritedClass(), validateTestCertBundle(), testing::gmock_matchers_test::IntValue::value(), fizz::test::HandshakeTest::verifyEarlyParameters(), fizz::extensions::test::TokenBindingServerExtensionTest::verifyExtensionFields(), fizz::test::HandshakeTest::verifyParameters(), virtualExecutorTest(), testing::gmock_more_actions_test::DeletionTester::~DeletionTester(), folly::ExpectWriteErrorCallback::~ExpectWriteErrorCallback(), and PrimeTableTest< T >::~PrimeTableTest().

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

Definition at line 1937 of file gtest.h.

Referenced by GTEST_TEST().

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

Definition at line 1947 of file gtest.h.

Referenced by GTEST_TEST().

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

Definition at line 1949 of file gtest.h.

Referenced by GTEST_TEST().

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

Definition at line 1943 of file gtest.h.

Referenced by GTEST_TEST().

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

Definition at line 1945 of file gtest.h.

Referenced by GTEST_TEST().

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

Definition at line 1941 of file gtest.h.

Referenced by GTEST_TEST().

#define GTEST_FAIL ( )    GTEST_FATAL_FAILURE_("Failed")

Definition at line 1817 of file gtest.h.

Referenced by GTEST_TEST().

#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) {\
} else {\
return CmpHelperOpFailure(expr1, expr2, val1, val2, #op);\
}\
}\
GTEST_API_ AssertionResult CmpHelper##op_name(\
const char* expr1, const char* expr2, BiggestInt val1, BiggestInt val2)
#define GTEST_API_
Definition: gtest-port.h:934
GTEST_API_ AssertionResult AssertionSuccess()
Definition: gtest.cc:1010
AssertionResult CmpHelperOpFailure(const char *expr1, const char *expr2, const T1 &val1, const T2 &val2, const char *op)
Definition: gtest.h:1486
long long BiggestInt
Definition: gtest-port.h:2241
if(FOLLY_USE_SYMBOLIZER) add_library(folly_exception_tracer_base ExceptionTracer.cpp StackTrace.cpp) apply_folly_compile_options_to_target(folly_exception_tracer_base) target_link_libraries(folly_exception_tracer_base PUBLIC folly) add_library(folly_exception_tracer ExceptionStackTraceLib.cpp ExceptionTracerLib.cpp) apply_folly_compile_options_to_target(folly_exception_tracer) target_link_libraries(folly_exception_tracer PUBLIC folly_exception_tracer_base) add_library(folly_exception_counter ExceptionCounterLib.cpp) apply_folly_compile_options_to_target(folly_exception_counter) target_link_libraries(folly_exception_counter PUBLIC folly_exception_tracer) install(FILES ExceptionAbi.h ExceptionCounterLib.h ExceptionTracer.h ExceptionTracerLib.h StackTrace.h DESTINATION $
Definition: CMakeLists.txt:1

Definition at line 1506 of file gtest.h.

#define GTEST_SUCCEED ( )    GTEST_SUCCESS_("Succeeded")

Definition at line 1826 of file gtest.h.

Referenced by GTEST_TEST().

#define GTEST_TEST (   test_case_name,
  test_name 
)
Value:
GTEST_TEST_(test_case_name, test_name, \
GTEST_API_ TypeId GetTestTypeId()
Definition: gtest.cc:620
#define GTEST_TEST_(test_case_name, test_name, parent_class, parent_id)

Definition at line 2180 of file gtest.h.

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

Definition at line 2187 of file gtest.h.

Referenced by cmake_minimum_required(), and std::chrono::PrintTo().

#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 2216 of file gtest.h.

Referenced by CommonTest< T >::TearDown().

Function Documentation

int RUN_ALL_TESTS ( )
inline

Definition at line 2232 of file gtest.h.

Referenced by main(), and RunAllTests().

2232  {
2233  return ::testing::UnitTest::GetInstance()->Run();
2234 }