proxygen
|
#include "gtest/gtest.h"
#include <limits.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <map>
#include <vector>
#include <ostream>
#include "gtest/gtest-spi.h"
#include "src/gtest-internal-inl.h"
Go to the source code of this file.
Classes | |
class | testing::internal::TestEventListenersAccessor |
class | testing::internal::UnitTestRecordPropertyTestHelper |
class | TestingVector |
struct | ConvertibleToAssertionResult |
class | Base |
class | namespace1::MyTypeInNameSpace1 |
class | namespace2::MyTypeInNameSpace2 |
class | testing::TestInfoTest |
class | testing::CodeLocationForTESTF |
class | testing::CodeLocationForTESTP |
class | testing::CodeLocationForTYPEDTEST< T > |
class | testing::CodeLocationForTYPEDTESTP< T > |
class | testing::SetUpTestCaseTest |
struct | testing::Flags |
class | testing::InitGoogleTestTest |
class | testing::CurrentTestInfoTest |
class | my_namespace::testing::Test |
class | my_namespace::testing::Message |
class | my_namespace::testing::AssertionResult |
class | ProtectedFixtureMethodsTest |
class | StaticAssertTypeEqTestHelper< T > |
class | TestListener |
class | SequenceTestingListener |
class | ConversionHelperBase |
class | ConversionHelperDerived |
class | NonContainer |
Namespaces | |
testing | |
testing::internal | |
namespace1 | |
namespace2 | |
my_namespace | |
my_namespace::testing | |
Macros | |
#define | GTEST_IMPLEMENTATION_ 1 |
#define | GTEST_USE_UNPROTECTED_COMMA_ global_var++, global_var++ |
#define | VERIFY_CODE_LOCATION |
#define | GTEST_TEST_PARSING_FLAGS_(argv1, argv2, expected, should_print_help) |
Typedefs | |
typedef int | IntAlias |
Enumerations | |
enum | NamedEnum |
enum | |
Functions | |
TEST (CommandLineFlagsTest, CanBeAccessedInCodeOnceGTestHIsIncluded) | |
::std::ostream & | operator<< (::std::ostream &os, const TestingVector &vector) |
testing::TEST (SuccessfulAssertionTest, SUCCEED) | |
testing::TEST (SuccessfulAssertionTest, EXPECT) | |
testing::TEST (SuccessfulAssertionTest, EXPECT_STR) | |
testing::TEST (SuccessfulAssertionTest, ASSERT) | |
testing::TEST (SuccessfulAssertionTest, ASSERT_STR) | |
TEST (AssertionResultTest, CopyConstructorWorksWhenNotOptimied) | |
TEST (AssertionResultTest, ConstructionWorks) | |
TEST (AssertionResultTest, NegationWorks) | |
TEST (AssertionResultTest, StreamingWorks) | |
TEST (AssertionResultTest, CanStreamOstreamManipulators) | |
TEST (AssertionResultTest, ConstructibleFromImplicitlyConvertible) | |
std::ostream & | operator<< (std::ostream &os, const Base &val) |
std::ostream & | operator<< (std::ostream &os, const Base *pointer) |
TEST (MessageTest, CanStreamUserTypeInGlobalNameSpace) | |
TEST (MessageTest, CanStreamUserTypeInUnnamedNameSpace) | |
std::ostream & | namespace1::operator<< (std::ostream &os, const MyTypeInNameSpace1 &val) |
std::ostream & | namespace1::operator<< (std::ostream &os, const MyTypeInNameSpace1 *pointer) |
TEST (MessageTest, CanStreamUserTypeInUserNameSpace) | |
std::ostream & | operator<< (std::ostream &os, const namespace2::MyTypeInNameSpace2 &val) |
std::ostream & | operator<< (std::ostream &os, const namespace2::MyTypeInNameSpace2 *pointer) |
TEST (MessageTest, CanStreamUserTypeInUserNameSpaceWithStreamOperatorInGlobal) | |
TEST (MessageTest, NullPointers) | |
TEST (MessageTest, WideStrings) | |
testing::TEST_F (TestInfoTest, Names) | |
testing::TEST_F (TestInfoTest, result) | |
testing::TEST (CodeLocationForTEST, Verify) | |
testing::TEST_F (CodeLocationForTESTF, Verify) | |
testing::TEST_P (CodeLocationForTESTP, Verify) | |
testing::INSTANTIATE_TEST_CASE_P (, CodeLocationForTESTP, Values(0)) | |
testing::TYPED_TEST_CASE (CodeLocationForTYPEDTEST, int) | |
testing::TYPED_TEST (CodeLocationForTYPEDTEST, Verify) | |
testing::TYPED_TEST_CASE_P (CodeLocationForTYPEDTESTP) | |
testing::TYPED_TEST_P (CodeLocationForTYPEDTESTP, Verify) | |
testing::REGISTER_TYPED_TEST_CASE_P (CodeLocationForTYPEDTESTP, Verify) | |
testing::INSTANTIATE_TYPED_TEST_CASE_P (My, CodeLocationForTYPEDTESTP, int) | |
testing::TEST_F (SetUpTestCaseTest, Test1) | |
testing::TEST_F (SetUpTestCaseTest, Test2) | |
testing::TEST_F (InitGoogleTestTest, Empty) | |
testing::TEST_F (InitGoogleTestTest, NoFlag) | |
testing::TEST_F (InitGoogleTestTest, FilterBad) | |
testing::TEST_F (InitGoogleTestTest, FilterEmpty) | |
testing::TEST_F (InitGoogleTestTest, FilterNonEmpty) | |
testing::TEST_F (InitGoogleTestTest, BreakOnFailureWithoutValue) | |
testing::TEST_F (InitGoogleTestTest, BreakOnFailureFalse_0) | |
testing::TEST_F (InitGoogleTestTest, BreakOnFailureFalse_f) | |
testing::TEST_F (InitGoogleTestTest, BreakOnFailureFalse_F) | |
testing::TEST_F (InitGoogleTestTest, BreakOnFailureTrue) | |
testing::TEST_F (InitGoogleTestTest, CatchExceptions) | |
testing::TEST_F (InitGoogleTestTest, DeathTestUseFork) | |
testing::TEST_F (InitGoogleTestTest, DuplicatedFlags) | |
testing::TEST_F (InitGoogleTestTest, UnrecognizedFlag) | |
testing::TEST_F (InitGoogleTestTest, ListTestsFlag) | |
testing::TEST_F (InitGoogleTestTest, ListTestsTrue) | |
testing::TEST_F (InitGoogleTestTest, ListTestsFalse) | |
testing::TEST_F (InitGoogleTestTest, ListTestsFalse_f) | |
testing::TEST_F (InitGoogleTestTest, ListTestsFalse_F) | |
testing::TEST_F (InitGoogleTestTest, OutputEmpty) | |
testing::TEST_F (InitGoogleTestTest, OutputXml) | |
testing::TEST_F (InitGoogleTestTest, OutputXmlFile) | |
testing::TEST_F (InitGoogleTestTest, OutputXmlDirectory) | |
testing::TEST_F (InitGoogleTestTest, PrintTimeFlag) | |
testing::TEST_F (InitGoogleTestTest, PrintTimeTrue) | |
testing::TEST_F (InitGoogleTestTest, PrintTimeFalse) | |
testing::TEST_F (InitGoogleTestTest, PrintTimeFalse_f) | |
testing::TEST_F (InitGoogleTestTest, PrintTimeFalse_F) | |
testing::TEST_F (InitGoogleTestTest, RandomSeed) | |
testing::TEST_F (InitGoogleTestTest, Repeat) | |
testing::TEST_F (InitGoogleTestTest, AlsoRunDisabledTestsFlag) | |
testing::TEST_F (InitGoogleTestTest, AlsoRunDisabledTestsTrue) | |
testing::TEST_F (InitGoogleTestTest, AlsoRunDisabledTestsFalse) | |
testing::TEST_F (InitGoogleTestTest, ShuffleWithoutValue) | |
testing::TEST_F (InitGoogleTestTest, ShuffleFalse_0) | |
testing::TEST_F (InitGoogleTestTest, ShuffleTrue) | |
testing::TEST_F (InitGoogleTestTest, StackTraceDepth) | |
testing::TEST_F (InitGoogleTestTest, StreamResultTo) | |
testing::TEST_F (InitGoogleTestTest, ThrowOnFailureWithoutValue) | |
testing::TEST_F (InitGoogleTestTest, ThrowOnFailureFalse_0) | |
testing::TEST_F (InitGoogleTestTest, ThrowOnFailureTrue) | |
testing::TEST_F (CurrentTestInfoTest, WorksForFirstTestInATestCase) | |
testing::TEST_F (CurrentTestInfoTest, WorksForSecondTestInATestCase) | |
my_namespace::testing::TEST (NestedTestingNamespaceTest, Success) | |
my_namespace::testing::TEST (NestedTestingNamespaceTest, Failure) | |
TEST (StreamingAssertionsTest, Unconditional) | |
TEST (StreamingAssertionsTest, Truth) | |
TEST (StreamingAssertionsTest, Truth2) | |
TEST (StreamingAssertionsTest, IntegerEquals) | |
TEST (StreamingAssertionsTest, IntegerLessThan) | |
TEST (StreamingAssertionsTest, StringsEqual) | |
TEST (StreamingAssertionsTest, StringsNotEqual) | |
TEST (StreamingAssertionsTest, StringsEqualIgnoringCase) | |
TEST (StreamingAssertionsTest, StringNotEqualIgnoringCase) | |
TEST (StreamingAssertionsTest, FloatingPointEquals) | |
TEST (ColoredOutputTest, UsesColorsWhenGTestColorFlagIsYes) | |
TEST (ColoredOutputTest, UsesColorsWhenGTestColorFlagIsAliasOfYes) | |
TEST (ColoredOutputTest, UsesNoColorWhenGTestColorFlagIsNo) | |
TEST (ColoredOutputTest, UsesNoColorWhenGTestColorFlagIsInvalid) | |
TEST (ColoredOutputTest, UsesColorsWhenStdoutIsTty) | |
TEST (ColoredOutputTest, UsesColorsWhenTermSupportsColors) | |
TEST (StaticAssertTypeEqTest, WorksInClass) | |
TEST (StaticAssertTypeEqTest, CompilesForEqualTypes) | |
TEST (GetCurrentOsStackTraceExceptTopTest, ReturnsTheStackTrace) | |
TEST (HasNonfatalFailureTest, ReturnsFalseWhenThereIsNoFailure) | |
static void | FailFatally () |
TEST (HasNonfatalFailureTest, ReturnsFalseWhenThereIsOnlyFatalFailure) | |
TEST (HasNonfatalFailureTest, ReturnsTrueWhenThereIsNonfatalFailure) | |
TEST (HasNonfatalFailureTest, ReturnsTrueWhenThereAreFatalAndNonfatalFailures) | |
static bool | HasNonfatalFailureHelper () |
TEST (HasNonfatalFailureTest, WorksOutsideOfTestBody) | |
TEST (HasNonfatalFailureTest, WorksOutsideOfTestBody2) | |
TEST (HasFailureTest, ReturnsFalseWhenThereIsNoFailure) | |
TEST (HasFailureTest, ReturnsTrueWhenThereIsFatalFailure) | |
TEST (HasFailureTest, ReturnsTrueWhenThereIsNonfatalFailure) | |
TEST (HasFailureTest, ReturnsTrueWhenThereAreFatalAndNonfatalFailures) | |
static bool | HasFailureHelper () |
TEST (HasFailureTest, WorksOutsideOfTestBody) | |
TEST (HasFailureTest, WorksOutsideOfTestBody2) | |
TEST (TestEventListenersTest, ConstructionWorks) | |
TEST (TestEventListenersTest, DestructionWorks) | |
TEST (TestEventListenersTest, Append) | |
TEST (EventListenerTest, AppendKeepsOrder) | |
TEST (TestEventListenersTest, Release) | |
TEST (EventListenerTest, SuppressEventForwarding) | |
TEST (EventListenerDeathTest, EventsNotForwardedInDeathTestSubprecesses) | |
TEST (EventListenerTest, default_result_printer) | |
TEST (EventListenerTest, RemovingDefaultResultPrinterWorks) | |
TEST (EventListenerTest, default_xml_generator) | |
TEST (EventListenerTest, RemovingDefaultXmlGeneratorWorks) | |
GTEST_TEST (AlternativeNameTest, Works) | |
TEST (IsAProtocolMessageTest, ValueIsCompileTimeConstant) | |
TEST (IsAProtocolMessageTest, ValueIsTrueWhenTypeIsAProtocolMessage) | |
TEST (IsAProtocolMessageTest, ValueIsFalseWhenTypeIsNotAProtocolMessage) | |
TEST (CompileAssertTypesEqual, CompilesWhenTypesAreEqual) | |
TEST (RemoveReferenceTest, DoesNotAffectNonReferenceType) | |
TEST (RemoveReferenceTest, RemovesReference) | |
template<typename T1 , typename T2 > | |
void | TestGTestRemoveReference () |
TEST (RemoveReferenceTest, MacroVersion) | |
TEST (RemoveConstTest, DoesNotAffectNonConstType) | |
TEST (RemoveConstTest, RemovesConst) | |
template<typename T1 , typename T2 > | |
void | TestGTestRemoveConst () |
TEST (RemoveConstTest, MacroVersion) | |
template<typename T1 , typename T2 > | |
void | TestGTestRemoveReferenceAndConst () |
TEST (RemoveReferenceToConstTest, Works) | |
TEST (AddReferenceTest, DoesNotAffectReferenceType) | |
TEST (AddReferenceTest, AddsReference) | |
template<typename T1 , typename T2 > | |
void | TestGTestAddReference () |
TEST (AddReferenceTest, MacroVersion) | |
template<typename T1 , typename T2 > | |
void | TestGTestReferenceToConst () |
TEST (GTestReferenceToConstTest, Works) | |
TEST (ImplicitlyConvertibleTest, ValueIsCompileTimeConstant) | |
TEST (ImplicitlyConvertibleTest, ValueIsTrueWhenConvertible) | |
TEST (ImplicitlyConvertibleTest, ValueIsFalseWhenNotConvertible) | |
TEST (IsContainerTestTest, WorksForNonContainer) | |
TEST (IsContainerTestTest, WorksForContainer) | |
TEST (ArrayEqTest, WorksForDegeneratedArrays) | |
TEST (ArrayEqTest, WorksForOneDimensionalArrays) | |
TEST (ArrayEqTest, WorksForTwoDimensionalArrays) | |
TEST (ArrayAwareFindTest, WorksForOneDimensionalArray) | |
TEST (ArrayAwareFindTest, WorksForTwoDimensionalArray) | |
TEST (CopyArrayTest, WorksForDegeneratedArrays) | |
TEST (CopyArrayTest, WorksForOneDimensionalArrays) | |
TEST (CopyArrayTest, WorksForTwoDimensionalArrays) | |
TEST (NativeArrayTest, ConstructorFromArrayWorks) | |
TEST (NativeArrayTest, CreatesAndDeletesCopyOfArrayWhenAskedTo) | |
TEST (NativeArrayTest, TypeMembersAreCorrect) | |
TEST (NativeArrayTest, MethodsWork) | |
TEST (NativeArrayTest, WorksForTwoDimensionalArray) | |
TEST (SkipPrefixTest, SkipsWhenPrefixMatches) | |
TEST (SkipPrefixTest, DoesNotSkipWhenPrefixDoesNotMatch) | |
Variables | |
static bool dummy1 | GTEST_ATTRIBUTE_UNUSED_ = StaticAssertTypeEq<bool, bool>() |
#define GTEST_IMPLEMENTATION_ 1 |
Definition at line 75 of file gtest_unittest.cc.
#define GTEST_TEST_PARSING_FLAGS_ | ( | argv1, | |
argv2, | |||
expected, | |||
should_print_help | |||
) |
Definition at line 5705 of file gtest_unittest.cc.
#define GTEST_USE_UNPROTECTED_COMMA_ global_var++, global_var++ |
Definition at line 1238 of file gtest_unittest.cc.
#define VERIFY_CODE_LOCATION |
Definition at line 5337 of file gtest_unittest.cc.
typedef int IntAlias |
Definition at line 6884 of file gtest_unittest.cc.
anonymous enum |
Definition at line 3899 of file gtest_unittest.cc.
enum NamedEnum |
Definition at line 3880 of file gtest_unittest.cc.
|
static |
GTEST_TEST | ( | AlternativeNameTest | , |
Works | |||
) |
Definition at line 7305 of file gtest_unittest.cc.
References EXPECT_FATAL_FAILURE, GTEST_ASSERT_EQ, GTEST_ASSERT_GE, GTEST_ASSERT_GT, GTEST_ASSERT_LE, GTEST_ASSERT_LT, GTEST_ASSERT_NE, GTEST_FAIL, and GTEST_SUCCEED.
|
static |
Definition at line 6970 of file gtest_unittest.cc.
References testing::Test::HasFailure().
Referenced by TEST().
|
static |
Definition at line 6928 of file gtest_unittest.cc.
References testing::Test::HasNonfatalFailure().
Referenced by TEST().
::std::ostream& operator<< | ( | ::std::ostream & | os, |
const TestingVector & | vector | ||
) |
Definition at line 305 of file gtest_unittest.cc.
References a, ADD_FAILURE, ASSERT_PRED1, ASSERT_TRUE, folly::test::begin(), testing::internal::String::CaseInsensitiveWideCStringEquals(), testing::internal::TestResultAccessor::ClearTestPartResults(), testing::internal::CodePointToUtf8(), testing::internal::CountIf(), folly::test::end(), testing::internal::String::EndsWithCaseInsensitive(), EXPECT_DEATH_IF_SUPPORTED, EXPECT_EQ, EXPECT_FALSE, EXPECT_FATAL_FAILURE, EXPECT_FATAL_FAILURE_ON_ALL_THREADS, EXPECT_LE, EXPECT_LT, EXPECT_NE, EXPECT_PRED3, EXPECT_STREQ, EXPECT_TRUE, FAIL, testing::TestPartResult::fatally_failed(), testing::internal::ForEach(), testing::internal::FormatEpochTimeInMillisAsIso8601(), testing::internal::FormatTimeInMillisAsSeconds(), bm::free(), testing::internal::Random::Generate(), testing::internal::GetElementOr(), testing::internal::GetNextRandomSeed(), testing::internal::GetRandomSeedFromFlag(), testing::TestPartResultArray::GetTestPartResult(), testing::internal::GetTestTypeId(), testing::internal::GetUnitTestImpl(), GTEST_DISABLE_MSC_WARNINGS_POP_, GTEST_DISABLE_MSC_WARNINGS_PUSH_, GTEST_IS_NULL_LITERAL_, i, testing::ScopedFakeTestPartResultReporter::INTERCEPT_ALL_THREADS, testing::ScopedFakeTestPartResultReporter::INTERCEPT_ONLY_CURRENT_THREAD, testing::gmock_matchers_test::IsPositive(), testing::TestProperty::key(), testing::internal::kMaxRandomSeed, testing::internal::Random::kMaxRange, kSeed, testing::internal::kTestTypeIdInGoogleTest, testing::TestPartResult::nonfatally_failed(), random(), testing::internal::Random::Reseed(), s, seed, testing::internal::String::ShowWideCString(), testing::internal::Shuffle(), testing::internal::ShuffleRange(), testing::TestPartResultArray::size(), string, testing::internal::TEST(), testing::internal::TEST_F(), v, testing::TestProperty::value(), values(), and testing::internal::WideStringToUtf8().
std::ostream& operator<< | ( | std::ostream & | os, |
const Base & | val | ||
) |
Definition at line 5162 of file gtest_unittest.cc.
std::ostream& operator<< | ( | std::ostream & | os, |
const Base * | pointer | ||
) |
Definition at line 5166 of file gtest_unittest.cc.
std::ostream& operator<< | ( | std::ostream & | os, |
const namespace2::MyTypeInNameSpace2 & | val | ||
) |
Definition at line 5237 of file gtest_unittest.cc.
std::ostream& operator<< | ( | std::ostream & | os, |
const namespace2::MyTypeInNameSpace2 * | pointer | ||
) |
Definition at line 5241 of file gtest_unittest.cc.
TEST | ( | CommandLineFlagsTest | , |
CanBeAccessedInCodeOnceGTestHIsIncluded | |||
) |
Definition at line 40 of file gtest_unittest.cc.
References dummy(), EXPECT_TRUE, folly::pushmi::operators::filter, GTEST_FLAG, gmock_output_test::output, and repeat().
TEST | ( | AssertionResultTest | , |
CopyConstructorWorksWhenNotOptimied | |||
) |
Definition at line 5067 of file gtest_unittest.cc.
References testing::AssertionSuccess(), EXPECT_EQ, EXPECT_STREQ, and testing::AssertionResult::message().
TEST | ( | AssertionResultTest | , |
ConstructionWorks | |||
) |
Definition at line 5083 of file gtest_unittest.cc.
References testing::AssertionFailure(), testing::AssertionSuccess(), EXPECT_FALSE, EXPECT_STREQ, EXPECT_TRUE, and testing::AssertionResult::message().
TEST | ( | AssertionResultTest | , |
NegationWorks | |||
) |
Definition at line 5106 of file gtest_unittest.cc.
References testing::AssertionFailure(), testing::AssertionSuccess(), EXPECT_FALSE, EXPECT_STREQ, EXPECT_TRUE, and message.
TEST | ( | AssertionResultTest | , |
StreamingWorks | |||
) |
Definition at line 5116 of file gtest_unittest.cc.
References testing::AssertionSuccess(), EXPECT_STREQ, and testing::AssertionResult::message().
TEST | ( | AssertionResultTest | , |
CanStreamOstreamManipulators | |||
) |
Definition at line 5122 of file gtest_unittest.cc.
References testing::AssertionSuccess(), EXPECT_FALSE, EXPECT_STREQ, EXPECT_TRUE, testing::AssertionResult::message(), testing::internal::TEST(), and value.
TEST | ( | AssertionResultTest | , |
ConstructibleFromImplicitlyConvertible | |||
) |
TEST | ( | MessageTest | , |
CanStreamUserTypeInGlobalNameSpace | |||
) |
Definition at line 5171 of file gtest_unittest.cc.
References a, EXPECT_STREQ, testing::Message::GetString(), testing::operator<<(), and val.
TEST | ( | MessageTest | , |
CanStreamUserTypeInUnnamedNameSpace | |||
) |
Definition at line 5196 of file gtest_unittest.cc.
References a, EXPECT_STREQ, and testing::Message::GetString().
TEST | ( | MessageTest | , |
CanStreamUserTypeInUserNameSpace | |||
) |
Definition at line 5221 of file gtest_unittest.cc.
References a, EXPECT_STREQ, and testing::Message::GetString().
TEST | ( | MessageTest | , |
CanStreamUserTypeInUserNameSpaceWithStreamOperatorInGlobal | |||
) |
Definition at line 5246 of file gtest_unittest.cc.
References a, EXPECT_STREQ, and testing::Message::GetString().
TEST | ( | MessageTest | , |
NullPointers | |||
) |
Definition at line 5255 of file gtest_unittest.cc.
References ASSERT_STREQ, and testing::Message::GetString().
TEST | ( | MessageTest | , |
WideStrings | |||
) |
Definition at line 5270 of file gtest_unittest.cc.
References EXPECT_STREQ.
TEST | ( | StreamingAssertionsTest | , |
Unconditional | |||
) |
Definition at line 6609 of file gtest_unittest.cc.
References ADD_FAILURE, EXPECT_FATAL_FAILURE, EXPECT_NONFATAL_FAILURE, FAIL, and SUCCEED.
TEST | ( | StreamingAssertionsTest | , |
Truth | |||
) |
Definition at line 6622 of file gtest_unittest.cc.
References ASSERT_TRUE, EXPECT_FATAL_FAILURE, EXPECT_NONFATAL_FAILURE, and EXPECT_TRUE.
TEST | ( | StreamingAssertionsTest | , |
Truth2 | |||
) |
Definition at line 6631 of file gtest_unittest.cc.
References ASSERT_FALSE, EXPECT_FALSE, EXPECT_FATAL_FAILURE, and EXPECT_NONFATAL_FAILURE.
TEST | ( | StreamingAssertionsTest | , |
IntegerEquals | |||
) |
Definition at line 6645 of file gtest_unittest.cc.
References ASSERT_EQ, EXPECT_EQ, EXPECT_FATAL_FAILURE, and EXPECT_NONFATAL_FAILURE.
TEST | ( | StreamingAssertionsTest | , |
IntegerLessThan | |||
) |
Definition at line 6654 of file gtest_unittest.cc.
References ASSERT_LT, EXPECT_FATAL_FAILURE, EXPECT_LT, and EXPECT_NONFATAL_FAILURE.
TEST | ( | StreamingAssertionsTest | , |
StringsEqual | |||
) |
Definition at line 6663 of file gtest_unittest.cc.
References ASSERT_STREQ, EXPECT_FATAL_FAILURE, EXPECT_NONFATAL_FAILURE, and EXPECT_STREQ.
TEST | ( | StreamingAssertionsTest | , |
StringsNotEqual | |||
) |
Definition at line 6672 of file gtest_unittest.cc.
References ASSERT_STRNE, EXPECT_FATAL_FAILURE, EXPECT_NONFATAL_FAILURE, and EXPECT_STRNE.
TEST | ( | StreamingAssertionsTest | , |
StringsEqualIgnoringCase | |||
) |
Definition at line 6681 of file gtest_unittest.cc.
References ASSERT_STRCASEEQ, EXPECT_FATAL_FAILURE, EXPECT_NONFATAL_FAILURE, and EXPECT_STRCASEEQ.
TEST | ( | StreamingAssertionsTest | , |
StringNotEqualIgnoringCase | |||
) |
Definition at line 6690 of file gtest_unittest.cc.
References ASSERT_STRCASENE, EXPECT_FATAL_FAILURE, EXPECT_NONFATAL_FAILURE, and EXPECT_STRCASENE.
TEST | ( | StreamingAssertionsTest | , |
FloatingPointEquals | |||
) |
Definition at line 6699 of file gtest_unittest.cc.
References ASSERT_ANY_THROW, ASSERT_FLOAT_EQ, ASSERT_NO_THROW, ASSERT_THROW, EXPECT_ANY_THROW, EXPECT_FATAL_FAILURE, EXPECT_FLOAT_EQ, EXPECT_NO_THROW, EXPECT_NONFATAL_FAILURE, EXPECT_THROW, and testing::internal::TEST().
TEST | ( | ColoredOutputTest | , |
UsesColorsWhenGTestColorFlagIsYes | |||
) |
Definition at line 6741 of file gtest_unittest.cc.
References EXPECT_TRUE, GTEST_FLAG, and testing::internal::ShouldUseColor().
TEST | ( | ColoredOutputTest | , |
UsesColorsWhenGTestColorFlagIsAliasOfYes | |||
) |
Definition at line 6753 of file gtest_unittest.cc.
References EXPECT_TRUE, GTEST_FLAG, and testing::internal::ShouldUseColor().
TEST | ( | ColoredOutputTest | , |
UsesNoColorWhenGTestColorFlagIsNo | |||
) |
Definition at line 6766 of file gtest_unittest.cc.
References EXPECT_FALSE, GTEST_FLAG, and testing::internal::ShouldUseColor().
TEST | ( | ColoredOutputTest | , |
UsesNoColorWhenGTestColorFlagIsInvalid | |||
) |
Definition at line 6778 of file gtest_unittest.cc.
References EXPECT_FALSE, GTEST_FLAG, and testing::internal::ShouldUseColor().
TEST | ( | ColoredOutputTest | , |
UsesColorsWhenStdoutIsTty | |||
) |
Definition at line 6791 of file gtest_unittest.cc.
References EXPECT_FALSE, EXPECT_TRUE, GTEST_FLAG, and testing::internal::ShouldUseColor().
TEST | ( | ColoredOutputTest | , |
UsesColorsWhenTermSupportsColors | |||
) |
Definition at line 6799 of file gtest_unittest.cc.
References EXPECT_FALSE, EXPECT_TRUE, GTEST_FLAG, and testing::internal::ShouldUseColor().
TEST | ( | StaticAssertTypeEqTest | , |
WorksInClass | |||
) |
Definition at line 6878 of file gtest_unittest.cc.
TEST | ( | StaticAssertTypeEqTest | , |
CompilesForEqualTypes | |||
) |
Definition at line 6886 of file gtest_unittest.cc.
TEST | ( | GetCurrentOsStackTraceExceptTopTest | , |
ReturnsTheStackTrace | |||
) |
Definition at line 6891 of file gtest_unittest.cc.
References EXPECT_STREQ, testing::internal::GetCurrentOsStackTraceExceptTop(), and testing::UnitTest::GetInstance().
TEST | ( | HasNonfatalFailureTest | , |
ReturnsFalseWhenThereIsNoFailure | |||
) |
TEST | ( | HasNonfatalFailureTest | , |
ReturnsFalseWhenThereIsOnlyFatalFailure | |||
) |
TEST | ( | HasNonfatalFailureTest | , |
ReturnsTrueWhenThereIsNonfatalFailure | |||
) |
TEST | ( | HasNonfatalFailureTest | , |
ReturnsTrueWhenThereAreFatalAndNonfatalFailures | |||
) |
Definition at line 6919 of file gtest_unittest.cc.
References ADD_FAILURE, EXPECT_TRUE, and FailFatally().
TEST | ( | HasNonfatalFailureTest | , |
WorksOutsideOfTestBody | |||
) |
Definition at line 6932 of file gtest_unittest.cc.
References EXPECT_FALSE, and HasNonfatalFailureHelper().
TEST | ( | HasNonfatalFailureTest | , |
WorksOutsideOfTestBody2 | |||
) |
Definition at line 6936 of file gtest_unittest.cc.
References ADD_FAILURE, EXPECT_TRUE, and HasNonfatalFailureHelper().
TEST | ( | HasFailureTest | , |
ReturnsFalseWhenThereIsNoFailure | |||
) |
TEST | ( | HasFailureTest | , |
ReturnsTrueWhenThereIsFatalFailure | |||
) |
TEST | ( | HasFailureTest | , |
ReturnsTrueWhenThereIsNonfatalFailure | |||
) |
TEST | ( | HasFailureTest | , |
ReturnsTrueWhenThereAreFatalAndNonfatalFailures | |||
) |
Definition at line 6961 of file gtest_unittest.cc.
References ADD_FAILURE, EXPECT_TRUE, and FailFatally().
TEST | ( | HasFailureTest | , |
WorksOutsideOfTestBody | |||
) |
TEST | ( | HasFailureTest | , |
WorksOutsideOfTestBody2 | |||
) |
Definition at line 6976 of file gtest_unittest.cc.
References ADD_FAILURE, EXPECT_TRUE, and HasFailureHelper().
TEST | ( | TestEventListenersTest | , |
ConstructionWorks | |||
) |
Definition at line 7007 of file gtest_unittest.cc.
References testing::TestEventListeners::default_result_printer(), testing::TestEventListeners::default_xml_generator(), EXPECT_TRUE, and testing::internal::TestEventListenersAccessor::GetRepeater().
TEST | ( | TestEventListenersTest | , |
DestructionWorks | |||
) |
Definition at line 7017 of file gtest_unittest.cc.
References testing::TestEventListeners::Append(), EXPECT_TRUE, testing::internal::TestEventListenersAccessor::SetDefaultResultPrinter(), and testing::internal::TestEventListenersAccessor::SetDefaultXmlGenerator().
TEST | ( | TestEventListenersTest | , |
Append | |||
) |
Definition at line 7043 of file gtest_unittest.cc.
References testing::TestEventListeners::Append(), EXPECT_EQ, EXPECT_TRUE, testing::UnitTest::GetInstance(), testing::internal::TestEventListenersAccessor::GetRepeater(), and testing::TestEventListener::OnTestProgramStart().
TEST | ( | EventListenerTest | , |
AppendKeepsOrder | |||
) |
Definition at line 7097 of file gtest_unittest.cc.
References testing::TestEventListeners::Append(), ASSERT_EQ, EXPECT_STREQ, testing::UnitTest::GetInstance(), testing::internal::TestEventListenersAccessor::GetRepeater(), testing::TestEventListener::OnTestIterationEnd(), testing::TestEventListener::OnTestIterationStart(), testing::TestEventListener::OnTestProgramEnd(), and testing::TestEventListener::OnTestProgramStart().
TEST | ( | TestEventListenersTest | , |
Release | |||
) |
Definition at line 7138 of file gtest_unittest.cc.
References testing::TestEventListeners::Append(), EXPECT_EQ, EXPECT_FALSE, EXPECT_TRUE, testing::UnitTest::GetInstance(), testing::internal::TestEventListenersAccessor::GetRepeater(), testing::TestEventListener::OnTestProgramStart(), and testing::TestEventListeners::Release().
TEST | ( | EventListenerTest | , |
SuppressEventForwarding | |||
) |
Definition at line 7159 of file gtest_unittest.cc.
References testing::TestEventListeners::Append(), ASSERT_FALSE, ASSERT_TRUE, testing::internal::TestEventListenersAccessor::EventForwardingEnabled(), EXPECT_EQ, testing::UnitTest::GetInstance(), testing::internal::TestEventListenersAccessor::GetRepeater(), testing::TestEventListener::OnTestProgramStart(), and testing::internal::TestEventListenersAccessor::SuppressEventForwarding().
TEST | ( | EventListenerDeathTest | , |
EventsNotForwardedInDeathTestSubprecesses | |||
) |
Definition at line 7175 of file gtest_unittest.cc.
References testing::internal::TestEventListenersAccessor::EventForwardingEnabled(), EXPECT_DEATH_IF_SUPPORTED, testing::internal::GetUnitTestImpl(), and GTEST_CHECK_.
TEST | ( | EventListenerTest | , |
default_result_printer | |||
) |
Definition at line 7185 of file gtest_unittest.cc.
References testing::TestEventListeners::default_result_printer(), EXPECT_EQ, EXPECT_TRUE, testing::UnitTest::GetInstance(), testing::internal::TestEventListenersAccessor::GetRepeater(), testing::TestEventListener::OnTestProgramStart(), and testing::internal::TestEventListenersAccessor::SetDefaultResultPrinter().
TEST | ( | EventListenerTest | , |
RemovingDefaultResultPrinterWorks | |||
) |
Definition at line 7216 of file gtest_unittest.cc.
References testing::TestEventListeners::default_result_printer(), EXPECT_EQ, EXPECT_FALSE, EXPECT_TRUE, testing::UnitTest::GetInstance(), testing::internal::TestEventListenersAccessor::GetRepeater(), testing::TestEventListener::OnTestProgramStart(), testing::TestEventListeners::Release(), and testing::internal::TestEventListenersAccessor::SetDefaultResultPrinter().
TEST | ( | EventListenerTest | , |
default_xml_generator | |||
) |
Definition at line 7244 of file gtest_unittest.cc.
References testing::TestEventListeners::default_xml_generator(), EXPECT_EQ, EXPECT_TRUE, testing::UnitTest::GetInstance(), testing::internal::TestEventListenersAccessor::GetRepeater(), testing::TestEventListener::OnTestProgramStart(), and testing::internal::TestEventListenersAccessor::SetDefaultXmlGenerator().
TEST | ( | EventListenerTest | , |
RemovingDefaultXmlGeneratorWorks | |||
) |
Definition at line 7275 of file gtest_unittest.cc.
References testing::TestEventListeners::default_xml_generator(), EXPECT_EQ, EXPECT_FALSE, EXPECT_TRUE, testing::UnitTest::GetInstance(), testing::internal::TestEventListenersAccessor::GetRepeater(), testing::TestEventListener::OnTestProgramStart(), testing::TestEventListeners::Release(), and testing::internal::TestEventListenersAccessor::SetDefaultXmlGenerator().
TEST | ( | IsAProtocolMessageTest | , |
ValueIsCompileTimeConstant | |||
) |
TEST | ( | IsAProtocolMessageTest | , |
ValueIsTrueWhenTypeIsAProtocolMessage | |||
) |
TEST | ( | IsAProtocolMessageTest | , |
ValueIsFalseWhenTypeIsNotAProtocolMessage | |||
) |
TEST | ( | CompileAssertTypesEqual | , |
CompilesWhenTypesAreEqual | |||
) |
Definition at line 7378 of file gtest_unittest.cc.
TEST | ( | RemoveReferenceTest | , |
DoesNotAffectNonReferenceType | |||
) |
Definition at line 7384 of file gtest_unittest.cc.
TEST | ( | RemoveReferenceTest | , |
RemovesReference | |||
) |
Definition at line 7390 of file gtest_unittest.cc.
TEST | ( | RemoveReferenceTest | , |
MacroVersion | |||
) |
Definition at line 7402 of file gtest_unittest.cc.
TEST | ( | RemoveConstTest | , |
DoesNotAffectNonConstType | |||
) |
Definition at line 7409 of file gtest_unittest.cc.
TEST | ( | RemoveConstTest | , |
RemovesConst | |||
) |
Definition at line 7415 of file gtest_unittest.cc.
TEST | ( | RemoveConstTest | , |
MacroVersion | |||
) |
Definition at line 7428 of file gtest_unittest.cc.
TEST | ( | RemoveReferenceToConstTest | , |
Works | |||
) |
Definition at line 7441 of file gtest_unittest.cc.
TEST | ( | AddReferenceTest | , |
DoesNotAffectReferenceType | |||
) |
Definition at line 7450 of file gtest_unittest.cc.
TEST | ( | AddReferenceTest | , |
AddsReference | |||
) |
Definition at line 7456 of file gtest_unittest.cc.
TEST | ( | AddReferenceTest | , |
MacroVersion | |||
) |
Definition at line 7468 of file gtest_unittest.cc.
TEST | ( | GTestReferenceToConstTest | , |
Works | |||
) |
Definition at line 7480 of file gtest_unittest.cc.
TEST | ( | ImplicitlyConvertibleTest | , |
ValueIsCompileTimeConstant | |||
) |
TEST | ( | ImplicitlyConvertibleTest | , |
ValueIsTrueWhenConvertible | |||
) |
Definition at line 7496 of file gtest_unittest.cc.
References EXPECT_TRUE, and value.
TEST | ( | ImplicitlyConvertibleTest | , |
ValueIsFalseWhenNotConvertible | |||
) |
Definition at line 7509 of file gtest_unittest.cc.
References EXPECT_FALSE, and value.
TEST | ( | IsContainerTestTest | , |
WorksForNonContainer | |||
) |
Definition at line 7521 of file gtest_unittest.cc.
References EXPECT_EQ, and testing::internal::IsContainerTest().
TEST | ( | IsContainerTestTest | , |
WorksForContainer | |||
) |
Definition at line 7527 of file gtest_unittest.cc.
References EXPECT_EQ, and testing::internal::IsContainerTest().
TEST | ( | ArrayEqTest | , |
WorksForDegeneratedArrays | |||
) |
Definition at line 7536 of file gtest_unittest.cc.
References testing::internal::ArrayEq(), EXPECT_FALSE, and EXPECT_TRUE.
TEST | ( | ArrayEqTest | , |
WorksForOneDimensionalArrays | |||
) |
Definition at line 7541 of file gtest_unittest.cc.
References a, testing::internal::ArrayEq(), b, EXPECT_FALSE, and EXPECT_TRUE.
TEST | ( | ArrayEqTest | , |
WorksForTwoDimensionalArrays | |||
) |
Definition at line 7553 of file gtest_unittest.cc.
References a, testing::internal::ArrayEq(), b, c, EXPECT_FALSE, and EXPECT_TRUE.
TEST | ( | ArrayAwareFindTest | , |
WorksForOneDimensionalArray | |||
) |
Definition at line 7567 of file gtest_unittest.cc.
References a, testing::internal::ArrayAwareFind(), and EXPECT_EQ.
TEST | ( | ArrayAwareFindTest | , |
WorksForTwoDimensionalArray | |||
) |
Definition at line 7573 of file gtest_unittest.cc.
References a, testing::internal::ArrayAwareFind(), b, c, and EXPECT_EQ.
TEST | ( | CopyArrayTest | , |
WorksForDegeneratedArrays | |||
) |
Definition at line 7584 of file gtest_unittest.cc.
References testing::internal::CopyArray(), and EXPECT_EQ.
TEST | ( | CopyArrayTest | , |
WorksForOneDimensionalArrays | |||
) |
Definition at line 7590 of file gtest_unittest.cc.
References a, testing::internal::ArrayEq(), b, c, testing::internal::CopyArray(), and EXPECT_TRUE.
TEST | ( | CopyArrayTest | , |
WorksForTwoDimensionalArrays | |||
) |
Definition at line 7603 of file gtest_unittest.cc.
References a, testing::internal::ArrayEq(), b, c, testing::internal::CopyArray(), and EXPECT_TRUE.
TEST | ( | NativeArrayTest | , |
ConstructorFromArrayWorks | |||
) |
Definition at line 7618 of file gtest_unittest.cc.
References a, testing::internal::NativeArray< Element >::begin(), EXPECT_EQ, and testing::internal::NativeArray< Element >::size().
TEST | ( | NativeArrayTest | , |
CreatesAndDeletesCopyOfArrayWhenAskedTo | |||
) |
Definition at line 7625 of file gtest_unittest.cc.
References a, testing::internal::NativeArray< Element >::begin(), EXPECT_EQ, and EXPECT_NE.
TEST | ( | NativeArrayTest | , |
TypeMembersAreCorrect | |||
) |
Definition at line 7640 of file gtest_unittest.cc.
TEST | ( | NativeArrayTest | , |
MethodsWork | |||
) |
Definition at line 7648 of file gtest_unittest.cc.
References a, ASSERT_EQ, testing::internal::NativeArray< Element >::begin(), testing::internal::NativeArray< Element >::end(), EXPECT_EQ, EXPECT_FALSE, EXPECT_TRUE, and testing::internal::NativeArray< Element >::size().
TEST | ( | NativeArrayTest | , |
WorksForTwoDimensionalArray | |||
) |
Definition at line 7674 of file gtest_unittest.cc.
References a, ASSERT_EQ, testing::internal::NativeArray< Element >::begin(), EXPECT_EQ, and testing::internal::NativeArray< Element >::size().
TEST | ( | SkipPrefixTest | , |
SkipsWhenPrefixMatches | |||
) |
Definition at line 7683 of file gtest_unittest.cc.
References EXPECT_EQ, EXPECT_TRUE, and testing::internal::SkipPrefix().
TEST | ( | SkipPrefixTest | , |
DoesNotSkipWhenPrefixDoesNotMatch | |||
) |
Definition at line 7695 of file gtest_unittest.cc.
References EXPECT_EQ, EXPECT_FALSE, and testing::internal::SkipPrefix().
void TestGTestAddReference | ( | ) |
Definition at line 7464 of file gtest_unittest.cc.
void TestGTestReferenceToConst | ( | ) |
Definition at line 7476 of file gtest_unittest.cc.
void TestGTestRemoveConst | ( | ) |
Definition at line 7424 of file gtest_unittest.cc.
void TestGTestRemoveReference | ( | ) |
Definition at line 7398 of file gtest_unittest.cc.
void TestGTestRemoveReferenceAndConst | ( | ) |
Definition at line 7437 of file gtest_unittest.cc.
|
static |
Definition at line 6866 of file gtest_unittest.cc.