Sacado Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Namespaces | Macros | Typedefs | Enumerations | Functions | Variables
gtest_unittest.cc File Reference
#include "gtest/gtest.h"
#include <limits.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <cstdint>
#include <map>
#include <ostream>
#include <type_traits>
#include <unordered_set>
#include <vector>
#include "gtest/gtest-spi.h"
#include "src/gtest-internal-inl.h"
Include dependency graph for gtest_unittest.cc:
This graph shows which files directly or indirectly include this file:

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
 
class  testing::SetUpTestSuiteTest
 
struct  testing::Flags
 
class  testing::ParseFlagsTest
 
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
 
struct  ConstOnlyContainerWithPointerIterator
 
struct  ConstOnlyContainerWithClassIterator
 
struct  ConstOnlyContainerWithClassIterator::const_iterator
 
struct  AHashTable
 
struct  NotReallyAHashTable
 
class  DynamicUnitTestFixture
 
class  DynamicTest< Pass >
 

Namespaces

 testing
 
 testing::internal
 
 namespace1
 
 namespace2
 
 my_namespace
 
 my_namespace::testing
 

Macros

#define GTEST_USE_UNPROTECTED_COMMA_   global_var++, global_var++
 
#define VERIFY_CODE_LOCATION
 
#define GTEST_TEST_PARSING_FLAGS_(argv1, argv2, expected, should_print_help)
 
#define GTEST_FLAT_TUPLE_INT8   int, int, int, int, int, int, int, int,
 
#define GTEST_FLAT_TUPLE_INT16   GTEST_FLAT_TUPLE_INT8 GTEST_FLAT_TUPLE_INT8
 
#define GTEST_FLAT_TUPLE_INT32   GTEST_FLAT_TUPLE_INT16 GTEST_FLAT_TUPLE_INT16
 
#define GTEST_FLAT_TUPLE_INT64   GTEST_FLAT_TUPLE_INT32 GTEST_FLAT_TUPLE_INT32
 
#define GTEST_FLAT_TUPLE_INT128   GTEST_FLAT_TUPLE_INT64 GTEST_FLAT_TUPLE_INT64
 
#define GTEST_FLAT_TUPLE_INT256   GTEST_FLAT_TUPLE_INT128 GTEST_FLAT_TUPLE_INT128
 

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, ConstructibleFromContextuallyConvertibleToBool)
 
 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_SUITE_P (, CodeLocationForTESTP, Values(0))
 
 testing::TYPED_TEST_SUITE (CodeLocationForTYPEDTEST, int)
 
 testing::TYPED_TEST (CodeLocationForTYPEDTEST, Verify)
 
 testing::TYPED_TEST_SUITE_P (CodeLocationForTYPEDTESTP)
 
 testing::TYPED_TEST_P (CodeLocationForTYPEDTESTP, Verify)
 
 testing::REGISTER_TYPED_TEST_SUITE_P (CodeLocationForTYPEDTESTP, Verify)
 
 testing::INSTANTIATE_TYPED_TEST_SUITE_P (My, CodeLocationForTYPEDTESTP, int)
 
 testing::TEST_F (SetUpTestCaseTest, Test1)
 
 testing::TEST_F (SetUpTestCaseTest, Test2)
 
 testing::TEST_F (SetUpTestSuiteTest, TestSetupTestSuite1)
 
 testing::TEST_F (SetUpTestSuiteTest, TestSetupTestSuite2)
 
 testing::TEST_F (ParseFlagsTest, Empty)
 
 testing::TEST_F (ParseFlagsTest, NoFlag)
 
 testing::TEST_F (ParseFlagsTest, FailFast)
 
 testing::TEST_F (ParseFlagsTest, FilterBad)
 
 testing::TEST_F (ParseFlagsTest, FilterEmpty)
 
 testing::TEST_F (ParseFlagsTest, FilterNonEmpty)
 
 testing::TEST_F (ParseFlagsTest, BreakOnFailureWithoutValue)
 
 testing::TEST_F (ParseFlagsTest, BreakOnFailureFalse_0)
 
 testing::TEST_F (ParseFlagsTest, BreakOnFailureFalse_f)
 
 testing::TEST_F (ParseFlagsTest, BreakOnFailureFalse_F)
 
 testing::TEST_F (ParseFlagsTest, BreakOnFailureTrue)
 
 testing::TEST_F (ParseFlagsTest, CatchExceptions)
 
 testing::TEST_F (ParseFlagsTest, DeathTestUseFork)
 
 testing::TEST_F (ParseFlagsTest, DuplicatedFlags)
 
 testing::TEST_F (ParseFlagsTest, UnrecognizedFlag)
 
 testing::TEST_F (ParseFlagsTest, ListTestsFlag)
 
 testing::TEST_F (ParseFlagsTest, ListTestsTrue)
 
 testing::TEST_F (ParseFlagsTest, ListTestsFalse)
 
 testing::TEST_F (ParseFlagsTest, ListTestsFalse_f)
 
 testing::TEST_F (ParseFlagsTest, ListTestsFalse_F)
 
 testing::TEST_F (ParseFlagsTest, OutputEmpty)
 
 testing::TEST_F (ParseFlagsTest, OutputXml)
 
 testing::TEST_F (ParseFlagsTest, OutputXmlFile)
 
 testing::TEST_F (ParseFlagsTest, OutputXmlDirectory)
 
 testing::TEST_F (ParseFlagsTest, BriefFlag)
 
 testing::TEST_F (ParseFlagsTest, BriefFlagTrue)
 
 testing::TEST_F (ParseFlagsTest, BriefFlagFalse)
 
 testing::TEST_F (ParseFlagsTest, PrintTimeFlag)
 
 testing::TEST_F (ParseFlagsTest, PrintTimeTrue)
 
 testing::TEST_F (ParseFlagsTest, PrintTimeFalse)
 
 testing::TEST_F (ParseFlagsTest, PrintTimeFalse_f)
 
 testing::TEST_F (ParseFlagsTest, PrintTimeFalse_F)
 
 testing::TEST_F (ParseFlagsTest, RandomSeed)
 
 testing::TEST_F (ParseFlagsTest, Repeat)
 
 testing::TEST_F (ParseFlagsTest, AlsoRunDisabledTestsFlag)
 
 testing::TEST_F (ParseFlagsTest, AlsoRunDisabledTestsTrue)
 
 testing::TEST_F (ParseFlagsTest, AlsoRunDisabledTestsFalse)
 
 testing::TEST_F (ParseFlagsTest, ShuffleWithoutValue)
 
 testing::TEST_F (ParseFlagsTest, ShuffleFalse_0)
 
 testing::TEST_F (ParseFlagsTest, ShuffleTrue)
 
 testing::TEST_F (ParseFlagsTest, StackTraceDepth)
 
 testing::TEST_F (ParseFlagsTest, StreamResultTo)
 
 testing::TEST_F (ParseFlagsTest, ThrowOnFailureWithoutValue)
 
 testing::TEST_F (ParseFlagsTest, ThrowOnFailureFalse_0)
 
 testing::TEST_F (ParseFlagsTest, ThrowOnFailureTrue)
 
 testing::TEST_F (CurrentTestInfoTest, WorksForFirstTestInATestSuite)
 
 testing::TEST_F (CurrentTestInfoTest, WorksForSecondTestInATestSuite)
 
 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 (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)
 
template<typename T1 , typename T2 >
void TestGTestRemoveReferenceAndConst ()
 
 TEST (RemoveReferenceToConstTest, Works)
 
template<typename T1 , typename T2 >
void TestGTestReferenceToConst ()
 
 TEST (GTestReferenceToConstTest, Works)
 
 TEST (IsContainerTestTest, WorksForNonContainer)
 
 TEST (IsContainerTestTest, WorksForContainer)
 
 TEST (IsContainerTestTest, ConstOnlyContainer)
 
 TEST (IsHashTable, Basic)
 
 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 (IndexSequence, MakeIndexSequence)
 
 TEST (ElemFromList, Basic)
 
 TEST (FlatTuple, Basic)
 
 TEST (FlatTuple, ManyTypes)
 
 TEST (SkipPrefixTest, SkipsWhenPrefixMatches)
 
 TEST (SkipPrefixTest, DoesNotSkipWhenPrefixDoesNotMatch)
 
 TEST (AdHocTestResultTest, AdHocTestResultForUnitTestDoesNotShowFailure)
 
 TEST (RegisterTest, WasRegistered)
 

Variables

static bool dummy1 GTEST_ATTRIBUTE_UNUSED_ = StaticAssertTypeEq<bool, bool>()
 
auto * dynamic_test
 

Macro Definition Documentation

#define GTEST_USE_UNPROTECTED_COMMA_   global_var++, global_var++

Definition at line 1304 of file gtest_unittest.cc.

#define VERIFY_CODE_LOCATION
Value:
const int expected_line = __LINE__ - 1; \
const TestInfo* const test_info = GetUnitTestImpl()->current_test_info(); \
ASSERT_TRUE(test_info); \
EXPECT_STREQ(__FILE__, test_info->file()); \
EXPECT_EQ(expected_line, test_info->line())
#define ASSERT_TRUE(condition)
Definition: gtest.h:1985
#define EXPECT_STREQ(s1, s2)
Definition: gtest.h:2107
#define EXPECT_EQ(val1, val2)
Definition: gtest.h:2038

Definition at line 5357 of file gtest_unittest.cc.

#define GTEST_TEST_PARSING_FLAGS_ (   argv1,
  argv2,
  expected,
  should_print_help 
)
Value:
TestParsingFlags(sizeof(argv1)/sizeof(*argv1) - 1, argv1, \
sizeof(argv2)/sizeof(*argv2) - 1, argv2, \
expected, should_print_help)
static ExpectedAnswer expected[4]

Definition at line 5812 of file gtest_unittest.cc.

#define GTEST_FLAT_TUPLE_INT8   int, int, int, int, int, int, int, int,
#define GTEST_FLAT_TUPLE_INT16   GTEST_FLAT_TUPLE_INT8 GTEST_FLAT_TUPLE_INT8
#define GTEST_FLAT_TUPLE_INT32   GTEST_FLAT_TUPLE_INT16 GTEST_FLAT_TUPLE_INT16
#define GTEST_FLAT_TUPLE_INT64   GTEST_FLAT_TUPLE_INT32 GTEST_FLAT_TUPLE_INT32
#define GTEST_FLAT_TUPLE_INT128   GTEST_FLAT_TUPLE_INT64 GTEST_FLAT_TUPLE_INT64
#define GTEST_FLAT_TUPLE_INT256   GTEST_FLAT_TUPLE_INT128 GTEST_FLAT_TUPLE_INT128

Typedef Documentation

typedef int IntAlias

Definition at line 6720 of file gtest_unittest.cc.

Enumeration Type Documentation

enum NamedEnum

Definition at line 3952 of file gtest_unittest.cc.

anonymous enum

Definition at line 3968 of file gtest_unittest.cc.

Function Documentation

TEST ( CommandLineFlagsTest  ,
CanBeAccessedInCodeOnceGTestHIsIncluded   
)

Definition at line 39 of file gtest_unittest.cc.

::std::ostream& operator<< ( ::std::ostream &  os,
const TestingVector vector 
)

Definition at line 298 of file gtest_unittest.cc.

TEST ( AssertionResultTest  ,
CopyConstructorWorksWhenNotOptimied   
)

Definition at line 5090 of file gtest_unittest.cc.

TEST ( AssertionResultTest  ,
ConstructionWorks   
)

Definition at line 5106 of file gtest_unittest.cc.

TEST ( AssertionResultTest  ,
NegationWorks   
)

Definition at line 5129 of file gtest_unittest.cc.

TEST ( AssertionResultTest  ,
StreamingWorks   
)

Definition at line 5139 of file gtest_unittest.cc.

TEST ( AssertionResultTest  ,
CanStreamOstreamManipulators   
)

Definition at line 5145 of file gtest_unittest.cc.

TEST ( AssertionResultTest  ,
ConstructibleFromContextuallyConvertibleToBool   
)

Definition at line 5153 of file gtest_unittest.cc.

TEST ( AssertionResultTest  ,
ConstructibleFromImplicitlyConvertible   
)

Definition at line 5168 of file gtest_unittest.cc.

std::ostream& operator<< ( std::ostream &  os,
const Base val 
)

Definition at line 5182 of file gtest_unittest.cc.

std::ostream& operator<< ( std::ostream &  os,
const Base pointer 
)

Definition at line 5186 of file gtest_unittest.cc.

TEST ( MessageTest  ,
CanStreamUserTypeInGlobalNameSpace   
)

Definition at line 5191 of file gtest_unittest.cc.

TEST ( MessageTest  ,
CanStreamUserTypeInUnnamedNameSpace   
)

Definition at line 5216 of file gtest_unittest.cc.

TEST ( MessageTest  ,
CanStreamUserTypeInUserNameSpace   
)

Definition at line 5241 of file gtest_unittest.cc.

std::ostream& operator<< ( std::ostream &  os,
const namespace2::MyTypeInNameSpace2 val 
)

Definition at line 5257 of file gtest_unittest.cc.

std::ostream& operator<< ( std::ostream &  os,
const namespace2::MyTypeInNameSpace2 pointer 
)

Definition at line 5261 of file gtest_unittest.cc.

TEST ( MessageTest  ,
CanStreamUserTypeInUserNameSpaceWithStreamOperatorInGlobal   
)

Definition at line 5266 of file gtest_unittest.cc.

TEST ( MessageTest  ,
NullPointers   
)

Definition at line 5275 of file gtest_unittest.cc.

TEST ( MessageTest  ,
WideStrings   
)

Definition at line 5290 of file gtest_unittest.cc.

TEST ( StreamingAssertionsTest  ,
Unconditional   
)

Definition at line 6445 of file gtest_unittest.cc.

TEST ( StreamingAssertionsTest  ,
Truth   
)

Definition at line 6458 of file gtest_unittest.cc.

TEST ( StreamingAssertionsTest  ,
Truth2   
)

Definition at line 6467 of file gtest_unittest.cc.

TEST ( StreamingAssertionsTest  ,
IntegerEquals   
)

Definition at line 6481 of file gtest_unittest.cc.

TEST ( StreamingAssertionsTest  ,
IntegerLessThan   
)

Definition at line 6490 of file gtest_unittest.cc.

TEST ( StreamingAssertionsTest  ,
StringsEqual   
)

Definition at line 6499 of file gtest_unittest.cc.

TEST ( StreamingAssertionsTest  ,
StringsNotEqual   
)

Definition at line 6508 of file gtest_unittest.cc.

TEST ( StreamingAssertionsTest  ,
StringsEqualIgnoringCase   
)

Definition at line 6517 of file gtest_unittest.cc.

TEST ( StreamingAssertionsTest  ,
StringNotEqualIgnoringCase   
)

Definition at line 6526 of file gtest_unittest.cc.

TEST ( StreamingAssertionsTest  ,
FloatingPointEquals   
)

Definition at line 6535 of file gtest_unittest.cc.

TEST ( ColoredOutputTest  ,
UsesColorsWhenGTestColorFlagIsYes   
)

Definition at line 6577 of file gtest_unittest.cc.

TEST ( ColoredOutputTest  ,
UsesColorsWhenGTestColorFlagIsAliasOfYes   
)

Definition at line 6589 of file gtest_unittest.cc.

TEST ( ColoredOutputTest  ,
UsesNoColorWhenGTestColorFlagIsNo   
)

Definition at line 6602 of file gtest_unittest.cc.

TEST ( ColoredOutputTest  ,
UsesNoColorWhenGTestColorFlagIsInvalid   
)

Definition at line 6614 of file gtest_unittest.cc.

TEST ( ColoredOutputTest  ,
UsesColorsWhenStdoutIsTty   
)

Definition at line 6627 of file gtest_unittest.cc.

TEST ( ColoredOutputTest  ,
UsesColorsWhenTermSupportsColors   
)

Definition at line 6635 of file gtest_unittest.cc.

TEST ( StaticAssertTypeEqTest  ,
WorksInClass   
)

Definition at line 6714 of file gtest_unittest.cc.

TEST ( StaticAssertTypeEqTest  ,
CompilesForEqualTypes   
)

Definition at line 6722 of file gtest_unittest.cc.

TEST ( HasNonfatalFailureTest  ,
ReturnsFalseWhenThereIsNoFailure   
)

Definition at line 6727 of file gtest_unittest.cc.

static void FailFatally ( )
static

Definition at line 6731 of file gtest_unittest.cc.

TEST ( HasNonfatalFailureTest  ,
ReturnsFalseWhenThereIsOnlyFatalFailure   
)

Definition at line 6733 of file gtest_unittest.cc.

TEST ( HasNonfatalFailureTest  ,
ReturnsTrueWhenThereIsNonfatalFailure   
)

Definition at line 6740 of file gtest_unittest.cc.

TEST ( HasNonfatalFailureTest  ,
ReturnsTrueWhenThereAreFatalAndNonfatalFailures   
)

Definition at line 6747 of file gtest_unittest.cc.

static bool HasNonfatalFailureHelper ( )
static

Definition at line 6756 of file gtest_unittest.cc.

TEST ( HasNonfatalFailureTest  ,
WorksOutsideOfTestBody   
)

Definition at line 6760 of file gtest_unittest.cc.

TEST ( HasNonfatalFailureTest  ,
WorksOutsideOfTestBody2   
)

Definition at line 6764 of file gtest_unittest.cc.

TEST ( HasFailureTest  ,
ReturnsFalseWhenThereIsNoFailure   
)

Definition at line 6771 of file gtest_unittest.cc.

TEST ( HasFailureTest  ,
ReturnsTrueWhenThereIsFatalFailure   
)

Definition at line 6775 of file gtest_unittest.cc.

TEST ( HasFailureTest  ,
ReturnsTrueWhenThereIsNonfatalFailure   
)

Definition at line 6782 of file gtest_unittest.cc.

TEST ( HasFailureTest  ,
ReturnsTrueWhenThereAreFatalAndNonfatalFailures   
)

Definition at line 6789 of file gtest_unittest.cc.

static bool HasFailureHelper ( )
static

Definition at line 6798 of file gtest_unittest.cc.

TEST ( HasFailureTest  ,
WorksOutsideOfTestBody   
)

Definition at line 6800 of file gtest_unittest.cc.

TEST ( HasFailureTest  ,
WorksOutsideOfTestBody2   
)

Definition at line 6804 of file gtest_unittest.cc.

TEST ( TestEventListenersTest  ,
ConstructionWorks   
)

Definition at line 6834 of file gtest_unittest.cc.

TEST ( TestEventListenersTest  ,
DestructionWorks   
)

Definition at line 6844 of file gtest_unittest.cc.

TEST ( TestEventListenersTest  ,
Append   
)

Definition at line 6870 of file gtest_unittest.cc.

TEST ( EventListenerTest  ,
AppendKeepsOrder   
)

Definition at line 6924 of file gtest_unittest.cc.

TEST ( TestEventListenersTest  ,
Release   
)

Definition at line 6965 of file gtest_unittest.cc.

TEST ( EventListenerTest  ,
SuppressEventForwarding   
)

Definition at line 6986 of file gtest_unittest.cc.

TEST ( EventListenerDeathTest  ,
EventsNotForwardedInDeathTestSubprecesses   
)

Definition at line 7002 of file gtest_unittest.cc.

TEST ( EventListenerTest  ,
default_result_printer   
)

Definition at line 7012 of file gtest_unittest.cc.

TEST ( EventListenerTest  ,
RemovingDefaultResultPrinterWorks   
)

Definition at line 7043 of file gtest_unittest.cc.

TEST ( EventListenerTest  ,
default_xml_generator   
)

Definition at line 7071 of file gtest_unittest.cc.

TEST ( EventListenerTest  ,
RemovingDefaultXmlGeneratorWorks   
)

Definition at line 7102 of file gtest_unittest.cc.

GTEST_TEST ( AlternativeNameTest  ,
Works   
)

Definition at line 7132 of file gtest_unittest.cc.

TEST ( IsAProtocolMessageTest  ,
ValueIsCompileTimeConstant   
)

Definition at line 7182 of file gtest_unittest.cc.

TEST ( IsAProtocolMessageTest  ,
ValueIsTrueWhenTypeIsAProtocolMessage   
)

Definition at line 7190 of file gtest_unittest.cc.

TEST ( IsAProtocolMessageTest  ,
ValueIsFalseWhenTypeIsNotAProtocolMessage   
)

Definition at line 7196 of file gtest_unittest.cc.

template<typename T1 , typename T2 >
void TestGTestRemoveReferenceAndConst ( )

Definition at line 7204 of file gtest_unittest.cc.

TEST ( RemoveReferenceToConstTest  ,
Works   
)

Definition at line 7209 of file gtest_unittest.cc.

template<typename T1 , typename T2 >
void TestGTestReferenceToConst ( )

Definition at line 7220 of file gtest_unittest.cc.

TEST ( GTestReferenceToConstTest  ,
Works   
)

Definition at line 7225 of file gtest_unittest.cc.

TEST ( IsContainerTestTest  ,
WorksForNonContainer   
)

Definition at line 7237 of file gtest_unittest.cc.

TEST ( IsContainerTestTest  ,
WorksForContainer   
)

Definition at line 7243 of file gtest_unittest.cc.

TEST ( IsContainerTestTest  ,
ConstOnlyContainer   
)

Definition at line 7265 of file gtest_unittest.cc.

TEST ( IsHashTable  ,
Basic   
)

Definition at line 7280 of file gtest_unittest.cc.

TEST ( ArrayEqTest  ,
WorksForDegeneratedArrays   
)

Definition at line 7289 of file gtest_unittest.cc.

TEST ( ArrayEqTest  ,
WorksForOneDimensionalArrays   
)

Definition at line 7294 of file gtest_unittest.cc.

TEST ( ArrayEqTest  ,
WorksForTwoDimensionalArrays   
)

Definition at line 7306 of file gtest_unittest.cc.

TEST ( ArrayAwareFindTest  ,
WorksForOneDimensionalArray   
)

Definition at line 7320 of file gtest_unittest.cc.

TEST ( ArrayAwareFindTest  ,
WorksForTwoDimensionalArray   
)

Definition at line 7326 of file gtest_unittest.cc.

TEST ( CopyArrayTest  ,
WorksForDegeneratedArrays   
)

Definition at line 7337 of file gtest_unittest.cc.

TEST ( CopyArrayTest  ,
WorksForOneDimensionalArrays   
)

Definition at line 7343 of file gtest_unittest.cc.

TEST ( CopyArrayTest  ,
WorksForTwoDimensionalArrays   
)

Definition at line 7356 of file gtest_unittest.cc.

TEST ( NativeArrayTest  ,
ConstructorFromArrayWorks   
)

Definition at line 7371 of file gtest_unittest.cc.

TEST ( NativeArrayTest  ,
CreatesAndDeletesCopyOfArrayWhenAskedTo   
)

Definition at line 7378 of file gtest_unittest.cc.

TEST ( NativeArrayTest  ,
TypeMembersAreCorrect   
)

Definition at line 7393 of file gtest_unittest.cc.

TEST ( NativeArrayTest  ,
MethodsWork   
)

Definition at line 7401 of file gtest_unittest.cc.

TEST ( NativeArrayTest  ,
WorksForTwoDimensionalArray   
)

Definition at line 7427 of file gtest_unittest.cc.

TEST ( IndexSequence  ,
MakeIndexSequence   
)

Definition at line 7435 of file gtest_unittest.cc.

TEST ( ElemFromList  ,
Basic   
)

Definition at line 7451 of file gtest_unittest.cc.

TEST ( FlatTuple  ,
Basic   
)

Definition at line 7465 of file gtest_unittest.cc.

TEST ( FlatTuple  ,
ManyTypes   
)

Definition at line 7482 of file gtest_unittest.cc.

TEST ( SkipPrefixTest  ,
SkipsWhenPrefixMatches   
)

Definition at line 7509 of file gtest_unittest.cc.

TEST ( SkipPrefixTest  ,
DoesNotSkipWhenPrefixDoesNotMatch   
)

Definition at line 7521 of file gtest_unittest.cc.

TEST ( AdHocTestResultTest  ,
AdHocTestResultForUnitTestDoesNotShowFailure   
)

Definition at line 7534 of file gtest_unittest.cc.

TEST ( RegisterTest  ,
WasRegistered   
)

Definition at line 7550 of file gtest_unittest.cc.

Variable Documentation

bool dummy2 GTEST_ATTRIBUTE_UNUSED_ = StaticAssertTypeEq<bool, bool>()
static

Definition at line 6702 of file gtest_unittest.cc.

auto* dynamic_test
Initial value:
"DynamicUnitTestFixture", "DynamicTest", "TYPE", "VALUE", __FILE__,
__LINE__, []() -> DynamicUnitTestFixture* { return new DynamicTest; })
TestInfo * RegisterTest(const char *test_suite_name, const char *test_name, const char *type_param, const char *value_param, const char *file, int line, Factory factory)
Definition: gtest.h:2450

Definition at line 7546 of file gtest_unittest.cc.