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.
40 TEST(CommandLineFlagsTest, CanBeAccessedInCodeOnceGTestHIsIncluded) {
70 // Indicates that this translation unit is part of Google Test's
84 class StreamingListenerTest : public Test {
105 TestInfo test_info_obj_; // The name test_info_ was taken by testing::Test.
158 // that are needed to test it.
183 class UnitTestRecordPropertyTestHelper : public Test {
226 using testing::Test;
315 TEST(GetRandomSeedFromFlagTest, HandlesZero) {
321 TEST(GetRandomSeedFromFlagTest, PreservesValidSeed) {
329 TEST(GetRandomSeedFromFlagTest, NormalizesInvalidSeed) {
339 TEST(GetNextRandomSeedTest, WorksForValidInput) {
346 // We deliberately don't test GetNextRandomSeed() with invalid
359 TEST(GetTypeIdTest, ReturnsSameValueForSameType) {
361 EXPECT_EQ(GetTypeId<Test>(), GetTypeId<Test>());
364 class SubClassOfTest : public Test {};
365 class AnotherSubClassOfTest : public Test {};
367 TEST(GetTypeIdTest, ReturnsDifferentValuesForDifferentTypes) {
377 // is called from inside Google Test or outside of it.
378 TEST(GetTestTypeIdTest, ReturnsTheSameValueInsideOrOutsideOfGoogleTest) {
384 TEST(FormatTimeInMillisAsSecondsTest, FormatsZero) {
388 TEST(FormatTimeInMillisAsSecondsTest, FormatsPositiveNumber) {
396 TEST(FormatTimeInMillisAsSecondsTest, FormatsNegativeNumber) {
410 class FormatEpochTimeInMillisAsIso8601Test : public Test {
510 TEST(NullLiteralTest, IsTrueForNullLiterals) {
519 TEST(NullLiteralTest, IsFalseForNonNullLiterals) {
536 TEST(CodePointToUtf8Test, CanEncodeNul) {
541 TEST(CodePointToUtf8Test, CanEncodeAscii) {
550 TEST(CodePointToUtf8Test, CanEncode8To11Bits) {
564 TEST(CodePointToUtf8Test, CanEncode12To16Bits) {
581 TEST(CodePointToUtf8Test, CanEncode17To21Bits) {
593 TEST(CodePointToUtf8Test, CanEncodeInvalidCodePoint) {
602 TEST(WideStringToUtf8Test, CanEncodeNul) {
608 TEST(WideStringToUtf8Test, CanEncodeAscii) {
617 TEST(WideStringToUtf8Test, CanEncode8To11Bits) {
630 TEST(WideStringToUtf8Test, CanEncode12To16Bits) {
643 TEST(WideStringToUtf8Test, StopsOnNulCharacter) {
649 TEST(WideStringToUtf8Test, StopsWhenLengthLimitReached) {
657 TEST(WideStringToUtf8Test, CanEncode17To21Bits) {
668 TEST(WideStringToUtf8Test, CanEncodeInvalidCodePoint) {
675 TEST(WideStringToUtf8Test, CanEncodeValidUtf16SUrrogatePairs) {
682 TEST(WideStringToUtf8Test, CanEncodeInvalidUtf16SurrogatePair) {
697 TEST(WideStringToUtf8Test, ConcatenatesCodepointsCorrectly) {
709 TEST(WideStringToUtf8Test, ConcatenatesCodepointsCorrectly) {
719 TEST(RandomDeathTest, GeneratesCrashesOnInvalidRange) {
730 TEST(RandomTest, GeneratesNumbersWithinRange) {
743 TEST(RandomTest, RepeatsWhenReseeded) {
766 TEST(ContainerUtilityTest, CountIf) {
785 TEST(ContainerUtilityTest, ForEach) {
804 TEST(ContainerUtilityTest, GetElementOr) {
816 TEST(ContainerUtilityDeathTest, ShuffleRange) {
837 class VectorShuffleTest : public Test {
1001 TEST(AssertHelperTest, AssertHelperIsSmall) {
1008 TEST(StringTest, EndsWithCaseInsensitive) {
1025 TEST(StringTest, CaseInsensitiveWideCStringEquals) {
1039 TEST(StringTest, ShowWideCString) {
1047 TEST(StringTest, AnsiAndUtf16Null) {
1052 TEST(StringTest, AnsiAndUtf16ConvertBasic) {
1061 TEST(StringTest, AnsiAndUtf16ConvertPathChars) {
1074 TEST(TestPropertyTest, StringValue) {
1081 TEST(TestPropertyTest, ReplaceStringValue) {
1099 class ScopedFakeTestPartResultReporterTest : public Test {
1114 // Tests that ScopedFakeTestPartResultReporter intercepts test
1195 // We have another test below to verify that the macro catches fatal
1284 // We have another test below to verify that the macro catches
1324 TEST(TestPropertyTest, ConstructorWorks) {
1330 TEST(TestPropertyTest, SetValue) {
1340 // The test fixture for testing TestResult.
1341 class TestResultTest : public Test {
1369 // In order to test TestResult, we need to modify its internal
1446 TEST(TestResultPropertyTest, NoPropertiesFoundWhenNoneAreAdded) {
1452 TEST(TestResultPropertyTest, OnePropertyFoundWhenAdded) {
1463 TEST(TestResultPropertyTest, MultiplePropertiesFoundWhenAdded) {
1480 TEST(TestResultPropertyTest, OverridesValuesForDuplicateKeys) {
1502 TEST(TestResultPropertyTest, GetTestProperty) {
1530 class GTestFlagSaverTest : public Test {
1532 // Saves the Google Test flags such that we can restore them later, and
1534 // before the first test in this test case is run.
1555 // Restores the Google Test flags that the tests have modified. This will
1556 // be called after the last test in this test case is run.
1562 // Verifies that the Google Test flags have their default values, and then
1599 // For saving Google Test flags during this test case.
1605 // Google Test doesn't guarantee the order of tests. The following two
1608 // Modifies the Google Test flags in the test body.
1613 // Verifies that the Google Test flags in the body of the previous test were
1666 TEST(Int32FromGTestEnvTest, ReturnsDefaultWhenVariableIsNotSet) {
1673 TEST(Int32FromGTestEnvTest, ReturnsDefaultWhenValueOverflows) {
1685 TEST(Int32FromGTestEnvTest, ReturnsDefaultWhenValueIsInvalid) {
1698 TEST(Int32FromGTestEnvTest, ParsesAndReturnsValidValue) {
1711 TEST(ParseInt32FlagTest, ReturnsFalseForInvalidFlag) {
1722 TEST(ParseInt32FlagTest, ReturnsDefaultWhenValueOverflows) {
1736 TEST(ParseInt32FlagTest, ReturnsDefaultWhenValueIsInvalid) {
1750 TEST(ParseInt32FlagTest, ParsesAndReturnsValidValue) {
1764 TEST(Int32FromEnvOrDieTest, ParsesAndReturnsValidValue) {
1775 TEST(Int32FromEnvOrDieDeathTest, AbortsOnFailure) {
1784 TEST(Int32FromEnvOrDieDeathTest, AbortsOnInt32Overflow) {
1793 TEST(ShouldRunTestOnShardTest, IsPartitionWhenThereIsOneShard) {
1801 class ShouldShardTest : public testing::Test {
1836 // we are not in a death test subprocess.
1881 TEST(ShouldRunTestOnShardTest, IsPartitionWhenThereAreFiveShards) {
1886 // Check partitioning: each test should be on exactly 1 shard.
1895 << shard_index << " are both selected to run test " << test_id;
1914 // Test class, there are no separate tests for the following classes
1921 // TEST, TEST_F, RUN_ALL_TESTS
1923 TEST(UnitTestTest, CanGetOriginalWorkingDir) {
1928 TEST(UnitTestTest, ReturnsPlausibleTimestamp) {
1938 EXPECT_NONFATAL_FAILURE(Test::RecordProperty(key, "1"), "Reserved key");
1985 Test::RecordProperty("test_case_key_1", "1");
2064 Test::RecordProperty("name", "1"),
2091 // This will test property recording outside of any test or test case.
2206 TEST(Pred1Test, WithoutFormat) {
2220 TEST(Pred1Test, WithFormat) {
2237 TEST(Pred1Test, SingleEvaluationOnFailure) {
2255 TEST(PredTest, WithoutFormat) {
2272 TEST(PredTest, WithFormat) {
2294 TEST(PredTest, SingleEvaluationOnFailure) {
2357 TEST
2365 TEST(PredicateAssertionTest, AcceptsTemplateFunction) {
2401 TEST(PredicateFormatAssertionTest, AcceptsOverloadedFunction) {
2408 TEST(PredicateFormatAssertionTest, AcceptsTemplateFunction) {
2417 TEST(StringAssertionTest, ASSERT_STREQ) {
2430 TEST(StringAssertionTest, ASSERT_STREQ_Null) {
2437 TEST(StringAssertionTest, ASSERT_STREQ_Null2) {
2443 TEST(StringAssertionTest, ASSERT_STRNE) {
2456 TEST(StringAssertionTest, ASSERT_STRCASEEQ) {
2466 TEST(StringAssertionTest, ASSERT_STRCASENE) {
2479 TEST(StringAssertionTest, STREQ_Wide) {
2508 TEST(StringAssertionTest, STRNE_Wide) {
2540 TEST(IsSubstringTest, ReturnsCorrectResultForCString) {
2551 TEST(IsSubstringTest, ReturnsCorrectResultForWideCString) {
2562 TEST(IsSubstringTest, GeneratesCorrectMessageForCString) {
2573 TEST(IsSubstringTest, ReturnsCorrectResultsForStdString) {
2581 TEST(IsSubstringTest, ReturnsCorrectResultForStdWstring) {
2588 TEST(IsSubstringTest, GeneratesCorrectMessageForWstring) {
2604 TEST(IsNotSubstringTest, ReturnsCorrectResultForCString) {
2611 TEST(IsNotSubstringTest, ReturnsCorrectResultForWideCString) {
2618 TEST(IsNotSubstringTest, GeneratesCorrectMessageForWideCString) {
2630 TEST(IsNotSubstringTest, ReturnsCorrectResultsForStdString) {
2637 TEST(IsNotSubstringTest, GeneratesCorrectMessageForStdString) {
2651 TEST(IsNotSubstringTest, ReturnsCorrectResultForStdWstring) {
2662 class FloatingPointTest : public Test {
3084 // Verifies that a test or test case whose name starts with DISABLED_ is
3087 // A test whose name starts with DISABLED_.
3089 TEST(DisabledTest, DISABLED_TestShouldNotRun) {
3090 FAIL() << "Unexpected failure: Disabled test should not be run.";
3093 // A test whose name does not start with DISABLED_.
3095 TEST(DisabledTest, NotDISABLED_TestShouldRun) {
3099 // A test case whose name starts with DISABLED_.
3101 TEST(DISABLED_TestCase, TestShouldNotRun) {
3102 FAIL() << "Unexpected failure: Test in disabled test case should not be run.";
3105 // A test case and test whose names start with DISABLED_.
3107 TEST(DISABLED_TestCase, DISABLED_TestShouldNotRun) {
3108 FAIL() << "Unexpected failure: Test in disabled test case should not be run.";
3111 // Check that when all tests in a test case are disabled, SetupTestCase() and
3113 class DisabledTestsTest : public Test {
3116 FAIL() << "Unexpected failure: All tests disabled in test case. "
3121 FAIL() << "Unexpected failure: All tests disabled in test case. "
3127 FAIL() << "Unexpected failure: Disabled test should not be run.";
3131 FAIL() << "Unexpected failure: Disabled test should not be run.";
3139 class TypedTest : public Test {
3146 FAIL() << "Unexpected failure: Disabled typed test should not run.";
3150 class DISABLED_TypedTest : public Test {
3156 FAIL() << "Unexpected failure: Disabled typed test should not run.";
3166 class TypedTestP : public Test {
3173 << "Disabled type-parameterized test should not run.";
3181 class DISABLED_TypedTestP : public Test {
3188 << "Disabled type-parameterized test should not run.";
3199 class SingleEvaluationTest : public Test {
3201 // This helper function is needed by the FailedASSERT_STREQ test
3208 // This helper function is needed by the FailedASSERT_NE test below. It's
3352 class NoFatalFailureTest : public Test {
3445 TEST(AssertionTest, EqFailure) {
3495 TEST(AssertionTest, AppendUserMessage) {
3513 TEST(AssertionTest, ASSERT_TRUE) {
3520 TEST(AssertionTest, AssertTrueWithAssertionResult) {
3537 TEST(AssertionTest, ASSERT_FALSE) {
3546 TEST(AssertionTest, AssertFalseWithAssertionResult) {
3570 TEST(ExpectTest, ASSERT_EQ_Double) {
3580 TEST(AssertionTest, ASSERT_EQ) {
3590 TEST(AssertionTest, ASSERT_EQ_NULL) {
3595 // static_cast since the test verifies the ability to use bare NULL as the
3608 // that ASSERT_EQ(0, non_pointer) isn't interpreted by Google Test as
3610 TEST(ExpectTest, ASSERT_EQ_0) {
3622 TEST(AssertionTest, ASSERT_NE) {
3630 TEST(AssertionTest, ASSERT_LE) {
3638 TEST(AssertionTest, ASSERT_LT) {
3645 TEST(AssertionTest, ASSERT_GE) {
3653 TEST(AssertionTest, ASSERT_GT) {
3664 TEST(AssertionTest, ASSERT_THROW) {
3683 TEST(AssertionTest, ASSERT_NO_THROW) {
3691 TEST(AssertionTest, ASSERT_ANY_THROW) {
3701 // Makes sure we deal with the precedence of <<. This test should
3703 TEST(AssertionTest, AssertPrecedence) {
3709 // A subroutine used by the following test.
3714 // Tests calling a test subroutine that's not part of a fixture.
3715 TEST(AssertionTest, NonFixtureSubroutine) {
3746 // A subroutine used by the following test.
3751 // A subroutine used by the following test.
3759 TEST(AssertionTest, AssertWorksWithUncopyableObject) {
3770 TEST(AssertionTest, ExpectWorksWithUncopyableObject) {
3786 TEST(AssertionTest, NamedEnum) {
3794 // anonymous enums in assertions. Therefore the following test is not
3805 // We want to test the case where the size of the anonymous enum is
3812 // int size. We want to test whether this will confuse the
3825 TEST(AssertionTest, AnonymousEnum) {
3879 // HRESULT assertion tests test both zero and non-zero
3883 TEST
3892 TEST(HRESULTAssertionTest, ASSERT_HRESULT_SUCCEEDED) {
3901 TEST(HRESULTAssertionTest, EXPECT_HRESULT_FAILED) {
3912 TEST(HRESULTAssertionTest, ASSERT_HRESULT_FAILED) {
3929 TEST(HRESULTAssertionTest, Streaming) {
3964 TEST(AssertionSyntaxTest, BasicAssertionsBehavesLikeSingleStatement) {
3967 "It's a compilation test only.";
3986 TEST(ExpectThrowTest, DoesNotGenerateUnreachableCodeWarning) {
3998 TEST(AssertionSyntaxTest, ExceptionAssertionsBehavesLikeSingleStatement) {
4025 TEST(AssertionSyntaxTest, NoFatalFailureAssertionsBehavesLikeSingleStatement) {
4028 << "It's a compilation test only.";
4049 TEST(AssertionSyntaxTest, WorksWithSwitch) {
4062 // than the Boolean assertions. Hence we test them separately.
4080 // Test that the exception assertion macros compile and work with const
4082 TEST(AssertionSyntaxTest, WorksWithConst) {
4094 // Tests that Google Test tracks SUCCEED*.
4095 TEST(SuccessfulAssertionTest, SUCCEED) {
4101 // Tests that Google Test doesn't track successful EXPECT_*.
4102 TEST(SuccessfulAssertionTest, EXPECT) {
4107 // Tests that Google Test doesn't track successful EXPECT_STR*.
4108 TEST(SuccessfulAssertionTest, EXPECT_STR) {
4113 // Tests that Google Test doesn't track successful ASSERT_*.
4114 TEST(SuccessfulAssertionTest, ASSERT) {
4119 // Tests that Google Test doesn't track successful ASSERT_STR*.
4120 TEST(SuccessfulAssertionTest, ASSERT_STR) {
4131 TEST(AssertionWithMessageTest, EXPECT) {
4155 TEST(AssertionWithMessageTest, ASSERT) {
4165 TEST(AssertionWithMessageTest, ASSERT_STR) {
4173 TEST(AssertionWithMessageTest, ASSERT_FLOATING) {
4183 TEST(AssertionWithMessageTest, ASSERT_FALSE) {
4192 TEST(AssertionWithMessageTest, FAIL) {
4198 TEST(AssertionWithMessageTest, SUCCEED) {
4203 TEST(AssertionWithMessageTest, ASSERT_TRUE) {
4214 TEST(AssertionWithMessageTest, WideStringMessage) {
4226 TEST(ExpectTest, EXPECT_TRUE) {
4242 TEST(ExpectTest, ExpectTrueWithAssertionResult) {
4256 TEST(ExpectTest, EXPECT_FALSE) {
4272 TEST(ExpectTest, ExpectFalseWithAssertionResult) {
4291 TEST(ExpectTest, EXPECT_EQ) {
4304 TEST(ExpectTest, EXPECT_EQ_Double) {
4315 TEST(ExpectTest, EXPECT_EQ_NULL) {
4320 // static_cast since the test verifies the ability to use bare NULL as the
4333 // that EXPECT_EQ(0, non_pointer) isn't interpreted by Google Test as
4335 TEST(ExpectTest, EXPECT_EQ_0) {
4347 TEST(ExpectTest, EXPECT_NE) {
4369 TEST(ExpectTest, EXPECT_LE) {
4379 TEST(ExpectTest, EXPECT_LT) {
4388 TEST(ExpectTest, EXPECT_GE) {
4398 TEST(ExpectTest, EXPECT_GT) {
4409 TEST(ExpectTest, EXPECT_THROW) {
4421 TEST(ExpectTest, EXPECT_NO_THROW) {
4429 TEST(ExpectTest, EXPECT_ANY_THROW) {
4440 TEST(ExpectTest, ExpectPrecedence) {
4450 TEST(StreamableToStringTest, Scalar) {
4455 TEST(StreamableToStringTest, Pointer) {
4462 TEST(StreamableToStringTest, NullPointer) {
4468 TEST(StreamableToStringTest, CString) {
4473 TEST(StreamableToStringTest, NullCString) {
4481 TEST(StreamableTest, string) {
4490 TEST(StreamableTest, stringWithEmbeddedNUL) {
4501 TEST(StreamableTest, NULChar) {
4508 TEST(StreamableTest, int) {
4515 // In MSVC, streaming a NULL char * causes access violation. Google Test
4518 TEST(StreamableTest, NullCharPtr) {
4525 TEST(StreamableTest, BasicIoManip) {
4541 TEST(MacroTest, ADD_FAILURE) {
4549 TEST(MacroTest, ADD_FAILURE_AT) {
4564 TEST(MacroTest, FAIL) {
4572 TEST(MacroTest, SUCCEED) {
4585 TEST(EqAssertionTest, Bool) {
4594 TEST(EqAssertionTest, Int) {
4601 TEST(EqAssertionTest, Time_T) {
4610 TEST(EqAssertionTest, Char) {
4620 TEST(EqAssertionTest, WideChar) {
4639 TEST(EqAssertionTest, StdString) {
4642 ASSERT_EQ("Test", ::std::string("Test"));
4651 EXPECT_NONFATAL_FAILURE(EXPECT_EQ("Test", ::std::string("test")),
4652 "\"test\"");
4671 TEST(EqAssertionTest, StdWideString) {
4707 TEST(EqAssertionTest, GlobalString) {
4709 EXPECT_EQ("Test", ::string("Test"));
4717 EXPECT_NONFATAL_FAILURE(EXPECT_EQ(::string("Test"), "test"),
4718 "test");
4738 TEST(EqAssertionTest, GlobalWideString) {
4753 }, "Test\\x8119");
4772 TEST(EqAssertionTest, CharPointer) {
4794 TEST(EqAssertionTest, WideCharPointer) {
4819 TEST(EqAssertionTest, OtherPointer) {
4857 TEST(ComparisonAssertionTest, AcceptsUnprintableArgs) {
4891 // This class has a private member we want to test. We will test it
4892 // both in a TEST and in a TEST_F.
4902 FRIEND_TEST(FRIEND_TEST_Test, TEST);
4906 // Tests that the FRIEND_TEST declaration allows a TEST to access a
4908 TEST(FRIEND_TEST_Test, TEST) {
4912 // The fixture needed to test using FRIEND_TEST with TEST_F.
4913 class FRIEND_TEST_Test2 : public Test {
4924 // Tests the life cycle of Test objects.
4926 // The test fixture for testing the life cycle of Test objects.
4928 // This class counts the number of live test objects that uses this
4930 class TestLifeCycleTest : public Test {
4932 // Constructor. Increments the number of test objects that uses
4936 // Destructor. Decrements the number of test objects that uses this
4940 // Returns the number of live test objects that uses this fixture.
4949 // Tests the life cycle of test objects.
4951 // There should be only one test object in this test case that's
4956 // Tests the life cycle of test objects.
4959 // only one live test object, as the object for Test1 should've been
4968 TEST(AssertionResultTest, CopyConstructorWorksWhenNotOptimied) {
4984 TEST(AssertionResultTest, ConstructionWorks) {
5007 TEST(AssertionResultTest, NegationWorks) {
5017 TEST(AssertionResultTest, StreamingWorks) {
5023 TEST(AssertionResultTest, CanStreamOstreamManipulators) {
5047 TEST(MessageTest, CanStreamUserTypeInGlobalNameSpace) {
5072 TEST(MessageTest, CanStreamUserTypeInUnnamedNameSpace) {
5097 TEST(MessageTest, CanStreamUserTypeInUserNameSpace) {
5122 TEST(MessageTest, CanStreamUserTypeInUserNameSpaceWithStreamOperatorInGlobal) {
5131 TEST(MessageTest, NullPointers) {
5146 TEST(MessageTest, WideStrings) {
5174 class TestInfoTest : public Test {
5206 // Initially, there is no TestPartResult for this test.
5213 // Tests setting up and tearing down a test case.
5215 class SetUpTestCaseTest : public Test {
5217 // This will be called once before the first test in this test case
5220 printf("Setting up the test case . . .\n");
5227 // Increments the number of test cases that have been set up.
5234 // This will be called once after the last test in this test case is
5237 printf("Tearing down the test case . . .\n");
5239 // Decrements the number of test cases that have been set up.
5249 // This will be called before each test in this test case.
5256 // Number of test cases that have been set up.
5259 // Some resource to be shared by all tests in this test case.
5266 // A test that uses the shared resource.
5271 // Another test that uses the shared resource.
5276 // The InitGoogleTestTest test case tests testing::InitGoogleTest().
5278 // The Flags struct stores a copy of all Google Test flags.
5428 class InitGoogleTestTest : public Test {
5430 // Clears the flags before each test.
5747 "bar", // Unrecognized by Google Test.
6231 class CurrentTestInfoTest : public Test {
6233 // Tests that current_test_info() returns NULL before the first test in
6234 // the test case is run.
6243 // Tests that current_test_info() returns NULL after the last test in
6244 // the test case has run.
6254 // test by checking the expected test name against the actual one.
6259 << "There is a test running so we should have a valid TestInfo.";
6261 << "Expected the name of the currently running test case.";
6263 << "Expected the name of the currently running test.";
6267 // test by checking the expected test name against the actual one. We
6268 // use this test to see that the TestInfo object actually changed from
6274 << "There is a test running so we should have a valid TestInfo.";
6276 << "Expected the name of the currently running test case.";
6278 << "Expected the name of the currently running test.";
6283 // These two lines test that we can define tests in a namespace that
6288 // Makes sure that TEST knows to use ::testing::Test instead of
6289 // ::my_namespace::testing::Test.
6290 class Test {};
6302 TEST(NestedTestingNamespaceTest, Success) {
6307 TEST(NestedTestingNamespaceTest, Failure) {
6317 // No tests are based on this fixture; the test "passes" if it compiles
6319 class ProtectedFixtureMethodsTest : public Test {
6322 Test::SetUp();
6325 Test::TearDown();
6331 TEST(StreamingAssertionsTest, Unconditional) {
6344 TEST(StreamingAssertionsTest, Truth) {
6353 TEST(StreamingAssertionsTest, Truth2) {
6367 TEST(StreamingAssertionsTest, IntegerEquals) {
6376 TEST(StreamingAssertionsTest, IntegerLessThan) {
6385 TEST(StreamingAssertionsTest, StringsEqual) {
6394 TEST(StreamingAssertionsTest, StringsNotEqual) {
6403 TEST(StreamingAssertionsTest, StringsEqualIgnoringCase) {
6412 TEST(StreamingAssertionsTest, StringNotEqualIgnoringCase) {
6421 TEST(StreamingAssertionsTest, FloatingPointEquals) {
6432 TEST(StreamingAssertionsTest, Throw) {
6441 TEST(StreamingAssertionsTest, NoThrow) {
6450 TEST(StreamingAssertionsTest, AnyThrow) {
6461 // Tests that Google Test correctly decides whether to use colors in the output.
6463 TEST(ColoredOutputTest, UsesColorsWhenGTestColorFlagIsYes) {
6475 TEST(ColoredOutputTest, UsesColorsWhenGTestColorFlagIsAliasOfYes) {
6488 TEST(ColoredOutputTest, UsesNoColorWhenGTestColorFlagIsNo) {
6500 TEST(ColoredOutputTest, UsesNoColorWhenGTestColorFlagIsInvalid) {
6513 TEST(ColoredOutputTest, UsesColorsWhenStdoutIsTty) {
6521 TEST(ColoredOutputTest, UsesColorsWhenTermSupportsColors) {
6588 TEST(StaticAssertTypeEqTest, WorksInClass) {
6596 TEST(StaticAssertTypeEqTest, CompilesForEqualTypes) {
6601 TEST(GetCurrentOsStackTraceExceptTopTest, ReturnsTheStackTrace) {
6604 // We don't have a stack walker in Google Test yet.
6609 TEST(HasNonfatalFailureTest, ReturnsFalseWhenThereIsNoFailure) {
6615 TEST(HasNonfatalFailureTest, ReturnsFalseWhenThereIsOnlyFatalFailure) {
6622 TEST(HasNonfatalFailureTest, ReturnsTrueWhenThereIsNonfatalFailure) {
6629 TEST(HasNonfatalFailureTest, ReturnsTrueWhenThereAreFatalAndNonfatalFailures) {
6637 // A wrapper for calling HasNonfatalFailure outside of a test body.
6639 return testing::Test::HasNonfatalFailure();
6642 TEST(HasNonfatalFailureTest, WorksOutsideOfTestBody) {
6646 TEST(HasNonfatalFailureTest, WorksOutsideOfTestBody2) {
6653 TEST(HasFailureTest, ReturnsFalseWhenThereIsNoFailure) {
6657 TEST(HasFailureTest, ReturnsTrueWhenThereIsFatalFailure) {
6664 TEST(HasFailureTest, ReturnsTrueWhenThereIsNonfatalFailure) {
6671 TEST(HasFailureTest, ReturnsTrueWhenThereAreFatalAndNonfatalFailures) {
6679 // A wrapper for calling HasFailure outside of a test body.
6680 static bool HasFailureHelper() { return testing::Test::HasFailure(); }
6682 TEST(HasFailureTest, WorksOutsideOfTestBody) {
6686 TEST(HasFailureTest, WorksOutsideOfTestBody2) {
6717 TEST(TestEventListenersTest, ConstructionWorks) {
6727 TEST(TestEventListenersTest, DestructionWorks) {
6753 TEST(TestEventListenersTest, Append) {
6807 TEST(EventListenerTest, AppendKeepsOrder) {
6848 TEST(TestEventListenersTest, Release) {
6853 // test ends.
6869 TEST(EventListenerTest, SuppressEventForwarding) {
6883 // Tests that events generated by Google Test are not forwarded in
6884 // death test subprocesses.
6885 TEST(EventListenerDeathTest, EventsNotForwardedInDeathTestSubprecesses) {
6895 TEST(EventListenerTest, default_result_printer) {
6926 TEST(EventListenerTest, RemovingDefaultResultPrinterWorks) {
6931 // test ends.
6954 TEST(EventListenerTest, default_xml_generator) {
6985 TEST(EventListenerTest, RemovingDefaultXmlGeneratorWorks) {
6990 // test ends.
7011 // some of the macros work. We don't test them thoroughly as that
7015 GTEST_TEST(AlternativeNameTest, Works) { // GTEST_TEST is the same as TEST.
7066 TEST(IsAProtocolMessageTest, ValueIsCompileTimeConstant) {
7074 TEST(IsAProtocolMessageTest, ValueIsTrueWhenTypeIsAProtocolMessage) {
7081 TEST(IsAProtocolMessageTest, ValueIsFalseWhenTypeIsNotAProtocolMessage) {
7088 TEST
7094 TEST(RemoveReferenceTest, DoesNotAffectNonReferenceType) {
7100 TEST(RemoveReferenceTest, RemovesReference) {
7112 TEST(RemoveReferenceTest, MacroVersion) {
7119 TEST(RemoveConstTest, DoesNotAffectNonConstType) {
7125 TEST(RemoveConstTest, RemovesConst) {
7138 TEST(RemoveConstTest, MacroVersion) {
7151 TEST(RemoveReferenceToConstTest, Works) {
7160 TEST(AddReferenceTest, DoesNotAffectReferenceType) {
7166 TEST(AddReferenceTest, AddsReference) {
7178 TEST(AddReferenceTest, MacroVersion) {
7190 TEST(GTestReferenceToConstTest, Works) {
7198 TEST(ImplicitlyConvertibleTest, ValueIsCompileTimeConstant) {
7206 TEST(ImplicitlyConvertibleTest, ValueIsTrueWhenConvertible) {
7219 TEST(ImplicitlyConvertibleTest, ValueIsFalseWhenNotConvertible) {
7231 TEST(IsContainerTestTest, WorksForNonContainer) {
7237 TEST(IsContainerTestTest, WorksForContainer) {
7246 TEST(ArrayEqTest, WorksForDegeneratedArrays) {
7251 TEST(ArrayEqTest, WorksForOneDimensionalArrays) {
7263 TEST(ArrayEqTest, WorksForTwoDimensionalArrays) {
7277 TEST(ArrayAwareFindTest, WorksForOneDimensionalArray) {
7283 TEST(ArrayAwareFindTest, WorksForTwoDimensionalArray) {
7294 TEST(CopyArrayTest, WorksForDegeneratedArrays) {
7300 TEST(CopyArrayTest, WorksForOneDimensionalArrays) {
7313 TEST(CopyArrayTest, WorksForTwoDimensionalArrays) {
7328 TEST(NativeArrayTest, ConstructorFromArrayWorks) {
7335 TEST(NativeArrayTest, CreatesAndDeletesCopyOfArrayWhenAskedTo) {
7350 TEST(NativeArrayTest, TypeMembersAreCorrect) {
7358 TEST(NativeArrayTest, MethodsWork) {
7384 TEST(NativeArrayTest, WorksForTwoDimensionalArray) {
7393 TEST(SkipPrefixTest, SkipsWhenPrefixMatches) {
7405 TEST(SkipPrefixTest, DoesNotSkipWhenPrefixDoesNotMatch) {