Home | History | Annotate | Download | only in test

Lines Matching defs:Test

32 // Tests for Google Test itself.  This verifies that the basic constructs of
33 // Google Test work.
41 TEST(CommandLineFlagsTest, CanBeAccessedInCodeOnceGTestHIsIncluded) {
61 // Indicates that this translation unit is part of Google Test's
80 // that are needed to test it.
134 using testing::Test;
203 TEST(GetRandomSeedFromFlagTest, HandlesZero) {
209 TEST(GetRandomSeedFromFlagTest, PreservesValidSeed) {
217 TEST(GetRandomSeedFromFlagTest, NormalizesInvalidSeed) {
227 TEST(GetNextRandomSeedTest, WorksForValidInput) {
234 // We deliberately don't test GetNextRandomSeed() with invalid
247 TEST(GetTypeIdTest, ReturnsSameValueForSameType) {
249 EXPECT_EQ(GetTypeId<Test>(), GetTypeId<Test>());
252 class SubClassOfTest : public Test {};
253 class AnotherSubClassOfTest : public Test {};
255 TEST(GetTypeIdTest, ReturnsDifferentValuesForDifferentTypes) {
265 // is called from inside Google Test or outside of it.
266 TEST(GetTestTypeIdTest, ReturnsTheSameValueInsideOrOutsideOfGoogleTest) {
272 TEST(FormatTimeInMillisAsSecondsTest, FormatsZero) {
276 TEST(FormatTimeInMillisAsSecondsTest, FormatsPositiveNumber) {
284 TEST(FormatTimeInMillisAsSecondsTest, FormatsNegativeNumber) {
301 TEST(NullLiteralTest, IsTrueForNullLiterals) {
318 TEST(NullLiteralTest, IsFalseForNonNullLiterals) {
335 TEST(CodePointToUtf8Test, CanEncodeNul) {
341 TEST(CodePointToUtf8Test, CanEncodeAscii) {
351 TEST(CodePointToUtf8Test, CanEncode8To11Bits) {
362 TEST(CodePointToUtf8Test, CanEncode12To16Bits) {
378 TEST(CodePointToUtf8Test, CanEncode17To21Bits) {
391 TEST(CodePointToUtf8Test, CanEncodeInvalidCodePoint) {
402 TEST(WideStringToUtf8Test, CanEncodeNul) {
408 TEST(WideStringToUtf8Test, CanEncodeAscii) {
417 TEST(WideStringToUtf8Test, CanEncode8To11Bits) {
429 TEST(WideStringToUtf8Test, CanEncode12To16Bits) {
440 TEST(WideStringToUtf8Test, StopsOnNulCharacter) {
446 TEST(WideStringToUtf8Test, StopsWhenLengthLimitReached) {
455 TEST(WideStringToUtf8Test, CanEncode17To21Bits) {
466 TEST(WideStringToUtf8Test, CanEncodeInvalidCodePoint) {
473 TEST(WideStringToUtf8Test, CanEncodeValidUtf16SUrrogatePairs) {
480 TEST(WideStringToUtf8Test, CanEncodeInvalidUtf16SurrogatePair) {
492 TEST(WideStringToUtf8Test, ConcatenatesCodepointsCorrectly) {
503 TEST(WideStringToUtf8Test, ConcatenatesCodepointsCorrectly) {
512 TEST(RandomDeathTest, GeneratesCrashesOnInvalidRange) {
523 TEST(RandomTest, GeneratesNumbersWithinRange) {
536 TEST(RandomTest, RepeatsWhenReseeded) {
559 TEST(ContainerUtilityTest, CountIf) {
578 TEST(ContainerUtilityTest, ForEach) {
597 TEST(ContainerUtilityTest, GetElementOr) {
609 TEST(ContainerUtilityDeathTest, ShuffleRange) {
630 class VectorShuffleTest : public Test {
794 TEST(AssertHelperTest, AssertHelperIsSmall) {
803 TEST(StringTest, Constructors) {
853 TEST(StringTest, ConvertsFromStdString) {
875 TEST(StringTest, ConvertsToStdString) {
894 TEST(StringTest, ConvertsFromGlobalString) {
916 TEST(StringTest, ConvertsToGlobalString) {
935 TEST(StringTest, ShowCStringQuoted) {
945 TEST(StringTest, Empty) {
954 TEST(StringTest, Compare) {
992 TEST(StringTest, Equals) {
1014 TEST(StringTest, NotEquals) {
1036 TEST(StringTest, Length) {
1044 TEST(StringTest, EndsWith) {
1054 TEST(StringTest, EndsWithCaseInsensitive) {
1071 TEST(StringTest, CaseInsensitiveWideCStringEquals) {
1083 TEST(StringTest, CanBeAssignedNULL) {
1092 TEST(StringTest, CanBeAssignedEmpty) {
1101 TEST(StringTest, CanBeAssignedNonEmpty) {
1118 TEST(StringTest, CanBeAssignedSelf) {
1129 TEST(StringTest, Streams) {
1137 TEST(StringTest, FormatWorks) {
1166 TEST(StringTest, ShowWideCString) {
1174 TEST(StringTest, ShowWideCStringQuoted) {
1184 TEST(StringTest, AnsiAndUtf16Null) {
1189 TEST(StringTest, AnsiAndUtf16ConvertBasic) {
1198 TEST(StringTest, AnsiAndUtf16ConvertPathChars) {
1211 TEST(TestPropertyTest, StringValue) {
1218 TEST(TestPropertyTest, ReplaceStringValue) {
1236 class ScopedFakeTestPartResultReporterTest : public Test {
1251 // Tests that ScopedFakeTestPartResultReporter intercepts test
1321 // We have another test below to verify that the macro catches fatal
1398 // We have another test below to verify that the macro catches
1438 TEST(TestPropertyTest, ConstructorWorks) {
1444 TEST(TestPropertyTest, SetValue) {
1454 // The test fixture for testing TestResult.
1455 class TestResultTest : public Test {
1483 // In order to test TestResult, we need to modify its internal
1560 TEST(TestResultPropertyTest, NoPropertiesFoundWhenNoneAreAdded) {
1566 TEST(TestResultPropertyTest, OnePropertyFoundWhenAdded) {
1577 TEST(TestResultPropertyTest, MultiplePropertiesFoundWhenAdded) {
1594 TEST(TestResultPropertyTest, OverridesValuesForDuplicateKeys) {
1616 TEST(TestResultPropertyDeathTest, GetTestProperty) {
1656 TEST(TestResultPropertyTest, AddFailureWhenUsingReservedKeyCalledName) {
1662 TEST(TestResultPropertyTest, AddFailureWhenUsingReservedKeyCalledStatus) {
1668 TEST(TestResultPropertyTest, AddFailureWhenUsingReservedKeyCalledTime) {
1674 TEST(TestResultPropertyTest, AddFailureWhenUsingReservedKeyCalledClassname) {
1680 class GTestFlagSaverTest : public Test {
1682 // Saves the Google Test flags such that we can restore them later, and
1684 // before the first test in this test case is run.
1704 // Restores the Google Test flags that the tests have modified. This will
1705 // be called after the last test in this test case is run.
1711 // Verifies that the Google Test flags have their default values, and then
1745 // For saving Google Test flags during this test case.
1751 // Google Test doesn't guarantee the order of tests. The following two
1754 // Modifies the Google Test flags in the test body.
1759 // Verifies that the Google Test flags in the body of the previous test were
1811 TEST(Int32FromGTestEnvTest, ReturnsDefaultWhenVariableIsNotSet) {
1818 TEST(Int32FromGTestEnvTest, ReturnsDefaultWhenValueOverflows) {
1830 TEST(Int32FromGTestEnvTest, ReturnsDefaultWhenValueIsInvalid) {
1843 TEST(Int32FromGTestEnvTest, ParsesAndReturnsValidValue) {
1856 TEST(ParseInt32FlagTest, ReturnsFalseForInvalidFlag) {
1867 TEST(ParseInt32FlagTest, ReturnsDefaultWhenValueOverflows) {
1881 TEST(ParseInt32FlagTest, ReturnsDefaultWhenValueIsInvalid) {
1895 TEST(ParseInt32FlagTest, ParsesAndReturnsValidValue) {
1909 TEST(Int32FromEnvOrDieTest, ParsesAndReturnsValidValue) {
1920 TEST(Int32FromEnvOrDieDeathTest, AbortsOnFailure) {
1929 TEST(Int32FromEnvOrDieDeathTest, AbortsOnInt32Overflow) {
1938 TEST(ShouldRunTestOnShardTest, IsPartitionWhenThereIsOneShard) {
1946 class ShouldShardTest : public testing::Test {
1981 // we are not in a death test subprocess.
2026 TEST(ShouldRunTestOnShardTest, IsPartitionWhenThereAreFiveShards) {
2031 // Check partitioning: each test should be on exactly 1 shard.
2040 << shard_index << " are both selected to run test " << test_id;
2059 // Test class, there are no separate tests for the following classes
2066 // TEST, TEST_F, RUN_ALL_TESTS
2068 TEST(UnitTestTest, CanGetOriginalWorkingDir) {
2184 TEST(Pred1Test, WithoutFormat) {
2198 TEST(Pred1Test, WithFormat) {
2215 TEST(Pred1Test, SingleEvaluationOnFailure) {
2233 TEST(PredTest, WithoutFormat) {
2250 TEST(PredTest, WithFormat) {
2272 TEST(PredTest, SingleEvaluationOnFailure) {
2335 TEST(PredicateAssertionTest, AcceptsOverloadedFunction) {
2343 TEST(PredicateAssertionTest, AcceptsTemplateFunction) {
2379 TEST(PredicateFormatAssertionTest, AcceptsOverloadedFunction) {
2386 TEST(PredicateFormatAssertionTest, AcceptsTemplateFunction) {
2395 TEST(StringAssertionTest, ASSERT_STREQ) {
2408 TEST(StringAssertionTest, ASSERT_STREQ_Null) {
2415 TEST(StringAssertionTest, ASSERT_STREQ_Null2) {
2421 TEST(StringAssertionTest, ASSERT_STRNE) {
2434 TEST(StringAssertionTest, ASSERT_STRCASEEQ) {
2444 TEST
2457 TEST(StringAssertionTest, STREQ_Wide) {
2481 TEST(StringAssertionTest, STRNE_Wide) {
2510 TEST(IsSubstringTest, ReturnsCorrectResultForCString) {
2521 TEST(IsSubstringTest, ReturnsCorrectResultForWideCString) {
2532 TEST(IsSubstringTest, GeneratesCorrectMessageForCString) {
2543 TEST(IsSubstringTest, ReturnsCorrectResultsForStdString) {
2551 TEST(IsSubstringTest, ReturnsCorrectResultForStdWstring) {
2558 TEST(IsSubstringTest, GeneratesCorrectMessageForWstring) {
2574 TEST(IsNotSubstringTest, ReturnsCorrectResultForCString) {
2581 TEST(IsNotSubstringTest, ReturnsCorrectResultForWideCString) {
2588 TEST(IsNotSubstringTest, GeneratesCorrectMessageForWideCString) {
2600 TEST(IsNotSubstringTest, ReturnsCorrectResultsForStdString) {
2607 TEST(IsNotSubstringTest, GeneratesCorrectMessageForStdString) {
2621 TEST(IsNotSubstringTest, ReturnsCorrectResultForStdWstring) {
2632 class FloatingPointTest : public Test {
3055 // Verifies that a test or test case whose name starts with DISABLED_ is
3058 // A test whose name starts with DISABLED_.
3060 TEST(DisabledTest, DISABLED_TestShouldNotRun) {
3061 FAIL() << "Unexpected failure: Disabled test should not be run.";
3064 // A test whose name does not start with DISABLED_.
3066 TEST(DisabledTest, NotDISABLED_TestShouldRun) {
3070 // A test case whose name starts with DISABLED_.
3072 TEST(DISABLED_TestCase, TestShouldNotRun) {
3073 FAIL() << "Unexpected failure: Test in disabled test case should not be run.";
3076 // A test case and test whose names start with DISABLED_.
3078 TEST(DISABLED_TestCase, DISABLED_TestShouldNotRun) {
3079 FAIL() << "Unexpected failure: Test in disabled test case should not be run.";
3082 // Check that when all tests in a test case are disabled, SetupTestCase() and
3084 class DisabledTestsTest : public Test {
3087 FAIL() << "Unexpected failure: All tests disabled in test case. "
3092 FAIL() << "Unexpected failure: All tests disabled in test case. "
3098 FAIL() << "Unexpected failure: Disabled test should not be run.";
3102 FAIL() << "Unexpected failure: Disabled test should not be run.";
3110 class TypedTest : public Test {
3117 FAIL() << "Unexpected failure: Disabled typed test should not run.";
3121 class DISABLED_TypedTest : public Test {
3127 FAIL() << "Unexpected failure: Disabled typed test should not run.";
3137 class TypedTestP : public Test {
3144 << "Disabled type-parameterized test should not run.";
3152 class DISABLED_TypedTestP : public Test {
3159 << "Disabled type-parameterized test should not run.";
3170 class SingleEvaluationTest : public Test {
3172 // This helper function is needed by the FailedASSERT_STREQ test
3179 // This helper function is needed by the FailedASSERT_NE test below. It's
3323 class NoFatalFailureTest : public Test {
3416 TEST(AssertionTest, EqFailure) {
3466 TEST(AssertionTest, AppendUserMessage) {
3484 TEST(AssertionTest, ASSERT_TRUE) {
3491 TEST(AssertionTest, AssertTrueWithAssertionResult) {
3508 TEST(AssertionTest, ASSERT_FALSE) {
3517 TEST(AssertionTest, AssertFalseWithAssertionResult) {
3541 TEST(ExpectTest, ASSERT_EQ_Double) {
3551 TEST(AssertionTest, ASSERT_EQ) {
3561 TEST(AssertionTest, ASSERT_EQ_NULL) {
3566 // static_cast since the test verifies the ability to use bare NULL as the
3579 // that ASSERT_EQ(0, non_pointer) isn't interpreted by Google Test as
3581 TEST(ExpectTest, ASSERT_EQ_0) {
3593 TEST(AssertionTest, ASSERT_NE) {
3601 TEST(AssertionTest, ASSERT_LE) {
3609 TEST(AssertionTest, ASSERT_LT) {
3616 TEST(AssertionTest, ASSERT_GE) {
3624 TEST(AssertionTest, ASSERT_GT) {
3635 TEST(AssertionTest, ASSERT_THROW) {
3653 TEST(AssertionTest, ASSERT_NO_THROW) {
3661 TEST(AssertionTest, ASSERT_ANY_THROW) {
3671 // Makes sure we deal with the precedence of <<. This test should
3673 TEST(AssertionTest, AssertPrecedence) {
3678 // A subroutine used by the following test.
3683 // Tests calling a test subroutine that's not part of a fixture.
3684 TEST(AssertionTest, NonFixtureSubroutine) {
3715 // A subroutine used by the following test.
3720 // A subroutine used by the following test.
3728 TEST(AssertionTest, AssertWorksWithUncopyableObject) {
3739 TEST(AssertionTest, ExpectWorksWithUncopyableObject) {
3752 // anonymous enums in assertions. Therefore the following test is not
3761 // We want to test the case where the size of the anonymous enum is
3768 // int size. We want to test whether this will confuse the
3776 TEST(AssertionTest, AnonymousEnum) {
3816 // HRESULT assertion tests test both zero and non-zero
3820 TEST(HRESULTAssertionTest, EXPECT_HRESULT_SUCCEEDED) {
3829 TEST(HRESULTAssertionTest, ASSERT_HRESULT_SUCCEEDED) {
3838 TEST(HRESULTAssertionTest, EXPECT_HRESULT_FAILED) {
3849 TEST(HRESULTAssertionTest, ASSERT_HRESULT_FAILED) {
3864 TEST(HRESULTAssertionTest, Streaming) {
3898 TEST(AssertionSyntaxTest, BasicAssertionsBehavesLikeSingleStatement) {
3901 "It's a compilation test only.";
3920 TEST(ExpectThrowTest, DoesNotGenerateUnreachableCodeWarning) {
3932 TEST(AssertionSyntaxTest, ExceptionAssertionsBehavesLikeSingleStatement) {
3959 TEST(AssertionSyntaxTest, NoFatalFailureAssertionsBehavesLikeSingleStatement) {
3962 << "It's a compilation test only.";
3983 TEST(AssertionSyntaxTest, WorksWithSwitch) {
3996 // than the Boolean assertions. Hence we test them separately.
4014 // Test that the exception assertion macros compile and work with const
4016 TEST(AssertionSyntaxTest, WorksWithConst) {
4028 // Tests that Google Test tracks SUCCEED*.
4029 TEST(SuccessfulAssertionTest, SUCCEED) {
4035 // Tests that Google Test doesn't track successful EXPECT_*.
4036 TEST(SuccessfulAssertionTest, EXPECT) {
4041 // Tests that Google Test doesn't track successful EXPECT_STR*.
4042 TEST(SuccessfulAssertionTest, EXPECT_STR) {
4047 // Tests that Google Test doesn't track successful ASSERT_*.
4048 TEST(SuccessfulAssertionTest, ASSERT) {
4053 // Tests that Google Test doesn't track successful ASSERT_STR*.
4054 TEST(SuccessfulAssertionTest, ASSERT_STR) {
4064 TEST(ExpectTest, EXPECT_TRUE) {
4075 TEST(ExpectTest, ExpectTrueWithAssertionResult) {
4089 TEST(ExpectTest, EXPECT_FALSE) {
4100 TEST(ExpectTest, ExpectFalseWithAssertionResult) {
4119 TEST(ExpectTest, EXPECT_EQ) {
4132 TEST(ExpectTest, EXPECT_EQ_Double) {
4143 TEST(ExpectTest, EXPECT_EQ_NULL) {
4148 // static_cast since the test verifies the ability to use bare NULL as the
4161 // that EXPECT_EQ(0, non_pointer) isn't interpreted by Google Test as
4163 TEST(ExpectTest, EXPECT_EQ_0) {
4175 TEST(ExpectTest, EXPECT_NE) {
4197 TEST(ExpectTest, EXPECT_LE) {
4207 TEST(ExpectTest, EXPECT_LT) {
4216 TEST(ExpectTest, EXPECT_GE) {
4226 TEST(ExpectTest, EXPECT_GT) {
4237 TEST(ExpectTest, EXPECT_THROW) {
4249 TEST(ExpectTest, EXPECT_NO_THROW) {
4257 TEST(ExpectTest, EXPECT_ANY_THROW) {
4268 TEST(ExpectTest, ExpectPrecedence) {
4278 TEST(StreamableToStringTest, Scalar) {
4283 TEST(StreamableToStringTest, Pointer) {
4290 TEST(StreamableToStringTest, NullPointer) {
4296 TEST(StreamableToStringTest, CString) {
4301 TEST(StreamableToStringTest, NullCString) {
4309 TEST(StreamableTest, string) {
4318 TEST(StreamableTest, stringWithEmbeddedNUL) {
4329 TEST(StreamableTest, NULChar) {
4336 TEST(StreamableTest, int) {
4343 // In MSVC, streaming a NULL char * causes access violation. Google Test
4346 TEST(StreamableTest, NullCharPtr) {
4353 TEST(StreamableTest, BasicIoManip) {
4369 TEST(MacroTest, ADD_FAILURE) {
4377 TEST(MacroTest, FAIL) {
4385 TEST(MacroTest, SUCCEED) {
4399 TEST(EqAssertionTest, Bool) {
4406 TEST(EqAssertionTest, Int) {
4413 TEST(EqAssertionTest, Time_T) {
4422 TEST(EqAssertionTest, Char) {
4432 TEST(EqAssertionTest, WideChar) {
4451 TEST(EqAssertionTest, StdString) {
4454 ASSERT_EQ("Test", ::std::string("Test"));
4463 EXPECT_NONFATAL_FAILURE(EXPECT_EQ("Test", ::std::string("test")),
4464 "::std::string(\"test\")");
4483 TEST(EqAssertionTest, StdWideString) {
4486 EXPECT_EQ(::std::wstring(L"Test\x8119"), L"Test\x8119");
4496 EXPECT_EQ(::std::wstring(L"Test\x8119"), L"Test\x8120");
4497 }, "L\"Test\\x8120\"");
4517 TEST(EqAssertionTest, GlobalString) {
4519 EXPECT_EQ("Test", ::string("Test"));
4527 EXPECT_NONFATAL_FAILURE(EXPECT_EQ(::string("Test"), "test"),
4528 "test");
4548 TEST(EqAssertionTest, GlobalWideString) {
4550 ASSERT_EQ(L"Test\x8119", ::wstring(L"Test\x8119"));
4560 EXPECT_EQ(L"Test\x8120", ::wstring(L"Test\x8119"));
4561 }, "Test\\x8119");
4580 TEST(EqAssertionTest, CharPointer) {
4602 TEST(EqAssertionTest, WideCharPointer) {
4627 TEST(EqAssertionTest, OtherPointer) {
4637 // This class has a private member we want to test. We will test it
4638 // both in a TEST and in a TEST_F.
4648 FRIEND_TEST(FRIEND_TEST_Test, TEST);
4652 // Tests that the FRIEND_TEST declaration allows a TEST to access a
4654 TEST(FRIEND_TEST_Test, TEST) {
4658 // The fixture needed to test using FRIEND_TEST with TEST_F.
4659 class FRIEND_TEST_Test2 : public Test {
4670 // Tests the life cycle of Test objects.
4672 // The test fixture for testing the life cycle of Test objects.
4674 // This class counts the number of live test objects that uses this
4676 class TestLifeCycleTest : public Test {
4678 // Constructor. Increments the number of test objects that uses
4682 // Destructor. Decrements the number of test objects that uses this
4686 // Returns the number of live test objects that uses this fixture.
4695 // Tests the life cycle of test objects.
4697 // There should be only one test object in this test case that's
4702 // Tests the life cycle of test objects.
4705 // only one live test object, as the object for Test1 should've been
4714 TEST(AssertionResultTest, CopyConstructorWorksWhenNotOptimied) {
4730 TEST(AssertionResultTest, ConstructionWorks) {
4753 TEST(AssertionResultTest, NegationWorks) {
4763 TEST(AssertionResultTest, StreamingWorks) {
4787 TEST(MessageTest, CanStreamUserTypeInGlobalNameSpace) {
4812 TEST(MessageTest, CanStreamUserTypeInUnnamedNameSpace) {
4837 TEST(MessageTest, CanStreamUserTypeInUserNameSpace) {
4862 TEST(MessageTest, CanStreamUserTypeInUserNameSpaceWithStreamOperatorInGlobal) {
4871 TEST(MessageTest, NullPointers) {
4886 TEST(MessageTest, WideStrings) {
4914 class TestInfoTest : public Test {
4946 // Initially, there is no TestPartResult for this test.
4953 // Tests setting up and tearing down a test case.
4955 class SetUpTestCaseTest : public Test {
4957 // This will be called once before the first test in this test case
4960 printf("Setting up the test case . . .\n");
4967 // Increments the number of test cases that have been set up.
4974 // This will be called once after the last test in this test case is
4977 printf("Tearing down the test case . . .\n");
4979 // Decrements the number of test cases that have been set up.
4989 // This will be called before each test in this test case.
4996 // Number of test cases that have been set up.
4999 // Some resource to be shared by all tests in this test case.
5006 // A test that uses the shared resource.
5011 // Another test that uses the shared resource.
5016 // The InitGoogleTestTest test case tests testing::InitGoogleTest().
5018 // The Flags struct stores a copy of all Google Test flags.
5158 class InitGoogleTestTest : public Test {
5160 // Clears the flags before each test.
5473 "bar", // Unrecognized by Google Test.
5941 class CurrentTestInfoTest : public Test {
5943 // Tests that current_test_info() returns NULL before the first test in
5944 // the test case is run.
5953 // Tests that current_test_info() returns NULL after the last test in
5954 // the test case has run.
5964 // test by checking the expected test name against the actual one.
5969 << "There is a test running so we should have a valid TestInfo.";
5971 << "Expected the name of the currently running test case.";
5973 << "Expected the name of the currently running test.";
5977 // test by checking the expected test name against the actual one. We
5978 // use this test to see that the TestInfo object actually changed from
5984 << "There is a test running so we should have a valid TestInfo.";
5986 << "Expected the name of the currently running test case.";
5988 << "Expected the name of the currently running test.";
5993 // These two lines test that we can define tests in a namespace that
5998 // Makes sure that TEST knows to use ::testing::Test instead of
5999 // ::my_namespace::testing::Test.
6000 class Test {};
6012 TEST(NestedTestingNamespaceTest, Success) {
6017 TEST(NestedTestingNamespaceTest, Failure) {
6027 // No tests are based on this fixture; the test "passes" if it compiles
6029 class ProtectedFixtureMethodsTest : public Test {
6032 Test::SetUp();
6035 Test::TearDown();
6041 TEST(StreamingAssertionsTest, Unconditional) {
6054 TEST(StreamingAssertionsTest, Truth) {
6063 TEST(StreamingAssertionsTest, Truth2) {
6077 TEST(StreamingAssertionsTest, IntegerEquals) {
6086 TEST(StreamingAssertionsTest, IntegerLessThan) {
6095 TEST(StreamingAssertionsTest, StringsEqual) {
6104 TEST(StreamingAssertionsTest, StringsNotEqual) {
6113 TEST(StreamingAssertionsTest, StringsEqualIgnoringCase) {
6122 TEST(StreamingAssertionsTest, StringNotEqualIgnoringCase) {
6131 TEST(StreamingAssertionsTest, FloatingPointEquals) {
6142 TEST(StreamingAssertionsTest, Throw) {
6151 TEST(StreamingAssertionsTest, NoThrow) {
6160 TEST(StreamingAssertionsTest, AnyThrow) {
6171 // Tests that Google Test correctly decides whether to use colors in the output.
6173 TEST(ColoredOutputTest, UsesColorsWhenGTestColorFlagIsYes) {
6185 TEST(ColoredOutputTest, UsesColorsWhenGTestColorFlagIsAliasOfYes) {
6198 TEST(ColoredOutputTest, UsesNoColorWhenGTestColorFlagIsNo) {
6210 TEST(ColoredOutputTest, UsesNoColorWhenGTestColorFlagIsInvalid) {
6223 TEST(ColoredOutputTest, UsesColorsWhenStdoutIsTty) {
6231 TEST(ColoredOutputTest, UsesColorsWhenTermSupportsColors) {
6285 TEST(StaticAssertTypeEqTest, WorksInClass) {
6293 TEST(StaticAssertTypeEqTest, CompilesForEqualTypes) {
6298 TEST(GetCurrentOsStackTraceExceptTopTest, ReturnsTheStackTrace) {
6301 // We don't have a stack walker in Google Test yet.
6306 TEST(HasNonfatalFailureTest, ReturnsFalseWhenThereIsNoFailure) {
6312 TEST(HasNonfatalFailureTest, ReturnsFalseWhenThereIsOnlyFatalFailure) {
6319 TEST(HasNonfatalFailureTest, ReturnsTrueWhenThereIsNonfatalFailure) {
6326 TEST(HasNonfatalFailureTest, ReturnsTrueWhenThereAreFatalAndNonfatalFailures) {
6334 // A wrapper for calling HasNonfatalFailure outside of a test body.
6336 return testing::Test::HasNonfatalFailure();
6339 TEST(HasNonfatalFailureTest, WorksOutsideOfTestBody) {
6343 TEST(HasNonfatalFailureTest, WorksOutsideOfTestBody2) {
6350 TEST(HasFailureTest, ReturnsFalseWhenThereIsNoFailure) {
6354 TEST(HasFailureTest, ReturnsTrueWhenThereIsFatalFailure) {
6361 TEST(HasFailureTest, ReturnsTrueWhenThereIsNonfatalFailure) {
6368 TEST(HasFailureTest, ReturnsTrueWhenThereAreFatalAndNonfatalFailures) {
6376 // A wrapper for calling HasFailure outside of a test body.
6377 static bool HasFailureHelper() { return testing::Test::HasFailure(); }
6379 TEST(HasFailureTest, WorksOutsideOfTestBody) {
6383 TEST(HasFailureTest, WorksOutsideOfTestBody2) {
6414 TEST(TestEventListenersTest, ConstructionWorks) {
6424 TEST(TestEventListenersTest, DestructionWorks) {
6450 TEST(TestEventListenersTest, Append) {
6504 TEST(EventListenerTest, AppendKeepsOrder) {
6545 TEST(TestEventListenersTest, Release) {
6550 // test ends.
6566 TEST(EventListenerTest, SuppressEventForwarding) {
6580 // Tests that events generated by Google Test are not forwarded in
6581 // death test subprocesses.
6582 TEST(EventListenerDeathTest, EventsNotForwardedInDeathTestSubprecesses) {
6592 TEST(EventListenerTest, default_result_printer) {
6623 TEST(EventListenerTest, RemovingDefaultResultPrinterWorks) {
6628 // test ends.
6651 TEST(EventListenerTest, default_xml_generator) {
6682 TEST(EventListenerTest, RemovingDefaultXmlGeneratorWorks) {
6687 // test ends.
6708 // some of the macros work. We don't test them thoroughly as that
6712 GTEST_TEST(AlternativeNameTest, Works) { // GTEST_TEST is the same as TEST.