Home | History | Annotate | Download | only in test

Lines Matching refs:TEST

32 // Tests for Google Test itself.  This verifies that the basic constructs of
33 // Google Test work.
40 TEST(CommandLineFlagsTest, CanBeAccessedInCodeOnceGTestHIsIncluded) {
60 // Indicates that this translation unit is part of Google Test's
89 // that are needed to test it.
143 using testing::Test;
199 TEST(GetRandomSeedFromFlagTest, HandlesZero) {
205 TEST(GetRandomSeedFromFlagTest, PreservesValidSeed) {
213 TEST(GetRandomSeedFromFlagTest, NormalizesInvalidSeed) {
223 TEST(GetNextRandomSeedTest, WorksForValidInput) {
230 // We deliberately don't test GetNextRandomSeed() with invalid
243 TEST(GetTypeIdTest, ReturnsSameValueForSameType) {
245 EXPECT_EQ(GetTypeId<Test>(), GetTypeId<Test>());
248 class SubClassOfTest : public Test {};
249 class AnotherSubClassOfTest : public Test {};
251 TEST(GetTypeIdTest, ReturnsDifferentValuesForDifferentTypes) {
261 // is called from inside Google Test or outside of it.
262 TEST(GetTestTypeIdTest, ReturnsTheSameValueInsideOrOutsideOfGoogleTest) {
268 TEST(FormatTimeInMillisAsSecondsTest, FormatsZero) {
272 TEST(FormatTimeInMillisAsSecondsTest, FormatsPositiveNumber) {
280 TEST(FormatTimeInMillisAsSecondsTest, FormatsNegativeNumber) {
298 TEST(NullLiteralTest, IsTrueForNullLiterals) {
315 TEST(NullLiteralTest, IsFalseForNonNullLiterals) {
332 TEST(CodePointToUtf8Test, CanEncodeNul) {
338 TEST(CodePointToUtf8Test, CanEncodeAscii) {
348 TEST(CodePointToUtf8Test, CanEncode8To11Bits) {
359 TEST(CodePointToUtf8Test, CanEncode12To16Bits) {
375 TEST(CodePointToUtf8Test, CanEncode17To21Bits) {
388 TEST(CodePointToUtf8Test, CanEncodeInvalidCodePoint) {
399 TEST(WideStringToUtf8Test, CanEncodeNul) {
405 TEST(WideStringToUtf8Test, CanEncodeAscii) {
414 TEST(WideStringToUtf8Test, CanEncode8To11Bits) {
426 TEST(WideStringToUtf8Test, CanEncode12To16Bits) {
437 TEST(WideStringToUtf8Test, StopsOnNulCharacter) {
443 TEST
452 TEST(WideStringToUtf8Test, CanEncode17To21Bits) {
463 TEST(WideStringToUtf8Test, CanEncodeInvalidCodePoint) {
470 TEST(WideStringToUtf8Test, CanEncodeValidUtf16SUrrogatePairs) {
477 TEST(WideStringToUtf8Test, CanEncodeInvalidUtf16SurrogatePair) {
489 TEST(WideStringToUtf8Test, ConcatenatesCodepointsCorrectly) {
500 TEST(WideStringToUtf8Test, ConcatenatesCodepointsCorrectly) {
509 TEST(RandomDeathTest, GeneratesCrashesOnInvalidRange) {
520 TEST(RandomTest, GeneratesNumbersWithinRange) {
533 TEST(RandomTest, RepeatsWhenReseeded) {
553 TEST(VectorTest, Clear) {
566 TEST(VectorTest, PushBack) {
579 TEST(VectorTest, PushFront) {
603 TEST(VectorTest, PopFront) {
628 TEST(VectorTest, InsertAtBeginning) {
653 TEST(VectorTest, InsertNotAtBeginning) {
681 TEST(VectorTest, GetElementOr) {
693 TEST(VectorTest, Swap) {
718 TEST(VectorTest, Clone) {
741 TEST(VectorDeathTest, Erase) {
803 TEST(VectorDeathTest, GetElement) {
822 TEST(VectorDeathTest, GetMutableElement) {
845 TEST(VectorDeathTest, Swap) {
865 TEST(VectorDeathTest, ShuffleRange) {
886 class VectorShuffleTest : public Test {
1051 TEST(AssertHelperTest, AssertHelperIsSmall) {
1060 TEST(StringTest, Constructors) {
1112 TEST(StringTest, ConvertsFromStdString) {
1134 TEST(StringTest, ConvertsToStdString) {
1155 TEST(StringTest, ConvertsFromGlobalString) {
1177 TEST(StringTest, ConvertsToGlobalString) {
1196 TEST(StringTest, ShowCStringQuoted) {
1206 TEST(StringTest, Empty) {
1215 TEST(StringTest, Compare) {
1253 TEST(StringTest, Equals) {
1275 TEST(StringTest, NotEquals) {
1297 TEST(StringTest, Length) {
1305 TEST(StringTest, EndsWith) {
1315 TEST(StringTest, EndsWithCaseInsensitive) {
1332 TEST(StringTest, CaseInsensitiveWideCStringEquals) {
1344 TEST(StringTest, CanBeAssignedNULL) {
1353 TEST(StringTest, CanBeAssignedEmpty) {
1362 TEST(StringTest, CanBeAssignedNonEmpty) {
1379 TEST(StringTest, CanBeAssignedSelf) {
1387 TEST(StringTest, Streams) {
1394 TEST(StringTest, FormatWorks) {
1423 TEST(StringTest, ShowWideCString) {
1431 TEST(StringTest, ShowWideCStringQuoted) {
1441 TEST(StringTest, AnsiAndUtf16Null) {
1446 TEST(StringTest, AnsiAndUtf16ConvertBasic) {
1455 TEST(StringTest, AnsiAndUtf16ConvertPathChars) {
1468 TEST(TestPropertyTest, StringValue) {
1475 TEST(TestPropertyTest, ReplaceStringValue) {
1493 class ScopedFakeTestPartResultReporterTest : public Test {
1508 // Tests that ScopedFakeTestPartResultReporter intercepts test
1589 // We have another test below to verify that the macro catches fatal
1666 // We have another test below to verify that the macro catches
1706 TEST(TestPropertyTest, ConstructorWorks) {
1712 TEST(TestPropertyTest, SetValue) {
1722 TEST(TestPartResultTest, ConstructorWorks) {
1740 TEST(TestPartResultTest, ResultAccessorsWork) {
1771 // The test fixture for testing TestResult.
1772 class TestResultTest : public Test {
1800 // In order to test TestResult, we need to modify its internal
1881 TEST(TestResultPropertyTest, NoPropertiesFoundWhenNoneAreAdded) {
1887 TEST(TestResultPropertyTest, OnePropertyFoundWhenAdded) {
1898 TEST(TestResultPropertyTest, MultiplePropertiesFoundWhenAdded) {
1915 TEST(TestResultPropertyTest, OverridesValuesForDuplicateKeys) {
1937 TEST(TestResultPropertyDeathTest, GetTestProperty) {
1981 TEST(TestResultPropertyTest, AddFailureWhenUsingReservedKeyCalledName) {
1987 TEST(TestResultPropertyTest, AddFailureWhenUsingReservedKeyCalledStatus) {
1993 TEST(TestResultPropertyTest, AddFailureWhenUsingReservedKeyCalledTime) {
1999 TEST(TestResultPropertyTest, AddFailureWhenUsingReservedKeyCalledClassname) {
2005 class GTestFlagSaverTest : public Test {
2007 // Saves the Google Test flags such that we can restore them later, and
2009 // before the first test in this test case is run.
2028 // Restores the Google Test flags that the tests have modified. This will
2029 // be called after the last test in this test case is run.
2035 // Verifies that the Google Test flags have their default values, and then
2067 // For saving Google Test flags during this test case.
2073 // Google Test doesn't guarantee the order of tests. The following two
2076 // Modifies the Google Test flags in the test body.
2081 // Verifies that the Google Test flags in the body of the previous test were
2129 TEST(Int32FromGTestEnvTest, ReturnsDefaultWhenVariableIsNotSet) {
2136 TEST(Int32FromGTestEnvTest, ReturnsDefaultWhenValueOverflows) {
2148 TEST(Int32FromGTestEnvTest, ReturnsDefaultWhenValueIsInvalid) {
2161 TEST(Int32FromGTestEnvTest, ParsesAndReturnsValidValue) {
2174 TEST(ParseInt32FlagTest, ReturnsFalseForInvalidFlag) {
2185 TEST(ParseInt32FlagTest, ReturnsDefaultWhenValueOverflows) {
2199 TEST(ParseInt32FlagTest, ReturnsDefaultWhenValueIsInvalid) {
2213 TEST(ParseInt32FlagTest, ParsesAndReturnsValidValue) {
2227 TEST(Int32FromEnvOrDieTest, ParsesAndReturnsValidValue) {
2238 TEST(Int32FromEnvOrDieDeathTest, AbortsOnFailure) {
2247 TEST(Int32FromEnvOrDieDeathTest, AbortsOnInt32Overflow) {
2256 TEST(ShouldRunTestOnShardTest, IsPartitionWhenThereIsOneShard) {
2264 class ShouldShardTest : public testing::Test {
2299 // we are not in a death test subprocess.
2344 TEST(ShouldRunTestOnShardTest, IsPartitionWhenThereAreFiveShards) {
2349 // Check partitioning: each test should be on exactly 1 shard.
2358 << shard_index << " are both selected to run test " << test_id;
2377 // Test class, there are no separate tests for the following classes
2384 // TEST, TEST_F, RUN_ALL_TESTS
2386 TEST(UnitTestTest, CanGetOriginalWorkingDir) {
2483 TEST(Pred1Test, WithoutFormat) {
2497 TEST(Pred1Test, WithFormat) {
2514 TEST(Pred1Test, SingleEvaluationOnFailure) {
2532 TEST(PredTest, WithoutFormat) {
2549 TEST(PredTest, WithFormat) {
2571 TEST(PredTest, SingleEvaluationOnFailure) {
2638 TEST(PredicateAssertionTest, AcceptsOverloadedFunction) {
2646 TEST(PredicateAssertionTest, AcceptsTemplateFunction) {
2682 TEST(PredicateFormatAssertionTest, AcceptsOverloadedFunction) {
2689 TEST(PredicateFormatAssertionTest, AcceptsTemplateFunction) {
2698 TEST(StringAssertionTest, ASSERT_STREQ) {
2711 TEST(StringAssertionTest, ASSERT_STREQ_Null) {
2718 TEST(StringAssertionTest, ASSERT_STREQ_Null2) {
2724 TEST(StringAssertionTest, ASSERT_STRNE) {
2737 TEST(StringAssertionTest, ASSERT_STRCASEEQ) {
2747 TEST(StringAssertionTest, ASSERT_STRCASENE) {
2760 TEST(StringAssertionTest, STREQ_Wide) {
2784 TEST(StringAssertionTest, STRNE_Wide) {
2813 TEST(IsSubstringTest, ReturnsCorrectResultForCString) {
2824 TEST(IsSubstringTest, ReturnsCorrectResultForWideCString) {
2835 TEST(IsSubstringTest, GeneratesCorrectMessageForCString) {
2848 TEST(IsSubstringTest, ReturnsCorrectResultsForStdString) {
2858 TEST(IsSubstringTest, ReturnsCorrectResultForStdWstring) {
2865 TEST(IsSubstringTest, GeneratesCorrectMessageForWstring) {
2881 TEST(IsNotSubstringTest, ReturnsCorrectResultForCString) {
2888 TEST(IsNotSubstringTest, ReturnsCorrectResultForWideCString) {
2895 TEST(IsNotSubstringTest, GeneratesCorrectMessageForWideCString) {
2909 TEST(IsNotSubstringTest, ReturnsCorrectResultsForStdString) {
2916 TEST(IsNotSubstringTest, GeneratesCorrectMessageForStdString) {
2932 TEST(IsNotSubstringTest, ReturnsCorrectResultForStdWstring) {
2943 class FloatingPointTest : public Test {
3354 // Verifies that a test or test case whose name starts with DISABLED_ is
3357 // A test whose name starts with DISABLED_.
3359 TEST(DisabledTest, DISABLED_TestShouldNotRun) {
3360 FAIL() << "Unexpected failure: Disabled test should not be run.";
3363 // A test whose name does not start with DISABLED_.
3365 TEST(DisabledTest, NotDISABLED_TestShouldRun) {
3369 // A test case whose name starts with DISABLED_.
3371 TEST(DISABLED_TestCase, TestShouldNotRun) {
3372 FAIL() << "Unexpected failure: Test in disabled test case should not be run.";
3375 // A test case and test whose names start with DISABLED_.
3377 TEST(DISABLED_TestCase, DISABLED_TestShouldNotRun) {
3378 FAIL() << "Unexpected failure: Test in disabled test case should not be run.";
3381 // Check that when all tests in a test case are disabled, SetupTestCase() and
3383 class DisabledTestsTest : public Test {
3386 FAIL() << "Unexpected failure: All tests disabled in test case. "
3391 FAIL() << "Unexpected failure: All tests disabled in test case. "
3397 FAIL() << "Unexpected failure: Disabled test should not be run.";
3401 FAIL() << "Unexpected failure: Disabled test should not be run.";
3409 class TypedTest : public Test {
3416 FAIL() << "Unexpected failure: Disabled typed test should not run.";
3420 class DISABLED_TypedTest : public Test {
3426 FAIL() << "Unexpected failure: Disabled typed test should not run.";
3436 class TypedTestP : public Test {
3443 << "Disabled type-parameterized test should not run.";
3451 Test {
3458 << "Disabled type-parameterized test should not run.";
3469 class SingleEvaluationTest : public Test {
3471 // This helper function is needed by the FailedASSERT_STREQ test
3478 // This helper function is needed by the FailedASSERT_NE test below. It's
3622 class NoFatalFailureTest : public Test {
3715 TEST(AssertionTest, EqFailure) {
3765 TEST(AssertionTest, AppendUserMessage) {
3783 TEST(AssertionTest, ASSERT_TRUE) {
3790 TEST(AssertionTest, ASSERT_FALSE) {
3806 TEST(ExpectTest, ASSERT_EQ_Double) {
3816 TEST(AssertionTest, ASSERT_EQ) {
3829 TEST(AssertionTest, ASSERT_EQ_NULL) {
3834 // static_cast since the test verifies the ability to use bare NULL as the
3847 // that ASSERT_EQ(0, non_pointer) isn't interpreted by Google Test as
3849 TEST(ExpectTest, ASSERT_EQ_0) {
3861 TEST(AssertionTest, ASSERT_NE) {
3869 TEST(AssertionTest, ASSERT_LE) {
3877 TEST(AssertionTest, ASSERT_LT) {
3884 TEST(AssertionTest, ASSERT_GE) {
3892 TEST(AssertionTest, ASSERT_GT) {
3903 TEST(AssertionTest, ASSERT_THROW) {
3919 TEST(AssertionTest, ASSERT_NO_THROW) {
3927 TEST(AssertionTest, ASSERT_ANY_THROW) {
3937 // Makes sure we deal with the precedence of <<. This test should
3939 TEST(AssertionTest, AssertPrecedence) {
3944 // A subroutine used by the following test.
3949 // Tests calling a test subroutine that's not part of a fixture.
3950 TEST(AssertionTest, NonFixtureSubroutine) {
3981 // A subroutine used by the following test.
3986 // A subroutine used by the following test.
3994 TEST(AssertionTest, AssertWorksWithUncopyableObject) {
4005 TEST(AssertionTest, ExpectWorksWithUncopyableObject) {
4018 // anonymous enums in assertions. Therefore the following test is not
4026 // We want to test the case where the size of the anonymous enum is
4033 // int size. We want to test whether this will confuse the
4041 TEST(AssertionTest, AnonymousEnum) {
4081 // HRESULT assertion tests test both zero and non-zero
4085 TEST(HRESULTAssertionTest, EXPECT_HRESULT_SUCCEEDED) {
4094 TEST(HRESULTAssertionTest, ASSERT_HRESULT_SUCCEEDED) {
4103 TEST(HRESULTAssertionTest, EXPECT_HRESULT_FAILED) {
4114 TEST(HRESULTAssertionTest, ASSERT_HRESULT_FAILED) {
4129 TEST(HRESULTAssertionTest, Streaming) {
4163 TEST(AssertionSyntaxTest, BasicAssertionsBehavesLikeSingleStatement) {
4166 "It's a compilation test only.";
4185 TEST(ExpectThrowTest, DoesNotGenerateUnreachableCodeWarning) {
4197 TEST(AssertionSyntaxTest, ExceptionAssertionsBehavesLikeSingleStatement) {
4224 TEST(AssertionSyntaxTest, NoFatalFailureAssertionsBehavesLikeSingleStatement) {
4227 << "It's a compilation test only.";
4248 TEST(AssertionSyntaxTest, WorksWithSwitch) {
4261 // than the Boolean assertions. Hence we test them separately.
4279 // Test that the exception assertion macros compile and work with const
4281 TEST(AssertionSyntaxTest, WorksWithConst) {
4293 // Tests that Google Test tracks SUCCEED*.
4294 TEST(SuccessfulAssertionTest, SUCCEED) {
4300 // Tests that Google Test doesn't track successful EXPECT_*.
4301 TEST(SuccessfulAssertionTest, EXPECT) {
4306 // Tests that Google Test doesn't track successful EXPECT_STR*.
4307 TEST(SuccessfulAssertionTest, EXPECT_STR) {
4312 // Tests that Google Test doesn't track successful ASSERT_*.
4313 TEST(SuccessfulAssertionTest, ASSERT) {
4318 // Tests that Google Test doesn't track successful ASSERT_STR*.
4319 TEST(SuccessfulAssertionTest, ASSERT_STR) {
4329 TEST(ExpectTest, EXPECT_TRUE) {
4340 TEST(ExpectTest, EXPECT_FALSE) {
4356 TEST(ExpectTest, EXPECT_EQ) {
4369 TEST(ExpectTest, EXPECT_EQ_Double) {
4380 TEST(ExpectTest, EXPECT_EQ_NULL) {
4385 // static_cast since the test verifies the ability to use bare NULL as the
4398 // that EXPECT_EQ(0, non_pointer) isn't interpreted by Google Test as
4400 TEST(ExpectTest, EXPECT_EQ_0) {
4412 TEST(ExpectTest, EXPECT_NE) {
4434 TEST(ExpectTest, EXPECT_LE) {
4444 TEST(ExpectTest, EXPECT_LT) {
4453 TEST(ExpectTest, EXPECT_GE) {
4463 TEST(ExpectTest, EXPECT_GT) {
4474 TEST(ExpectTest, EXPECT_THROW) {
4486 TEST(ExpectTest, EXPECT_NO_THROW) {
4494 TEST(ExpectTest, EXPECT_ANY_THROW) {
4505 TEST(ExpectTest, ExpectPrecedence) {
4515 TEST(StreamableToStringTest, Scalar) {
4520 TEST(StreamableToStringTest, Pointer) {
4527 TEST(StreamableToStringTest, NullPointer) {
4533 TEST(StreamableToStringTest, CString) {
4538 TEST(StreamableToStringTest, NullCString) {
4547 TEST(StreamableTest, string) {
4556 TEST(StreamableTest, stringWithEmbeddedNUL) {
4569 TEST(StreamableTest, NULChar) {
4576 TEST(StreamableTest, int) {
4583 Test
4586 TEST(StreamableTest, NullCharPtr) {
4593 TEST(StreamableTest, BasicIoManip) {
4609 TEST(MacroTest, ADD_FAILURE) {
4617 TEST(MacroTest, FAIL) {
4625 TEST(MacroTest, SUCCEED) {
4639 TEST(EqAssertionTest, Bool) {
4646 TEST(EqAssertionTest, Int) {
4653 TEST(EqAssertionTest, Time_T) {
4662 TEST(EqAssertionTest, Char) {
4672 TEST(EqAssertionTest, WideChar) {
4692 TEST(EqAssertionTest, StdString) {
4695 ASSERT_EQ("Test", ::std::string("Test"));
4704 EXPECT_NONFATAL_FAILURE(EXPECT_EQ("Test", ::std::string("test")),
4705 "::std::string(\"test\")");
4726 TEST(EqAssertionTest, StdWideString) {
4729 EXPECT_EQ(::std::wstring(L"Test\x8119"), L"Test\x8119");
4739 EXPECT_EQ(::std::wstring(L"Test\x8119"), L"Test\x8120");
4740 }, "L\"Test\\x8120\"");
4760 TEST(EqAssertionTest, GlobalString) {
4762 EXPECT_EQ("Test", ::string("Test"));
4770 EXPECT_NONFATAL_FAILURE(EXPECT_EQ(::string("Test"), "test"),
4771 "test");
4791 TEST(EqAssertionTest, GlobalWideString) {
4793 ASSERT_EQ(L"Test\x8119", ::wstring(L"Test\x8119"));
4803 EXPECT_EQ(L"Test\x8120", ::wstring(L"Test\x8119"));
4804 }, "Test\\x8119");
4823 TEST(EqAssertionTest, CharPointer) {
4845 TEST(EqAssertionTest, WideCharPointer) {
4870 TEST(EqAssertionTest, OtherPointer) {
4880 // This class has a private member we want to test. We will test it
4881 // both in a TEST and in a TEST_F.
4891 FRIEND_TEST(FRIEND_TEST_Test, TEST);
4895 // Tests that the FRIEND_TEST declaration allows a TEST to access a
4897 TEST(FRIEND_TEST_Test, TEST) {
4901 // The fixture needed to test using FRIEND_TEST with TEST_F.
4902 class FRIEND_TEST_Test2 : public Test {
4913 // Tests the life cycle of Test objects.
4915 // The test fixture for testing the life cycle of Test objects.
4917 // This class counts the number of live test objects that uses this
4919 class TestLifeCycleTest : public Test {
4921 // Constructor. Increments the number of test objects that uses
4925 // Destructor. Decrements the number of test objects that uses this
4929 // Returns the number of live test objects that uses this fixture.
4938 // Tests the life cycle of test objects.
4940 // There should be only one test object in this test case that's
4945 // Tests the life cycle of test objects.
4948 // only one live test object, as the object for Test1 should've been
4973 TEST(MessageTest, CanStreamUserTypeInGlobalNameSpace) {
4998 TEST(MessageTest, CanStreamUserTypeInUnnamedNameSpace) {
5023 TEST(MessageTest, CanStreamUserTypeInUserNameSpace) {
5048 TEST(MessageTest, CanStreamUserTypeInUserNameSpaceWithStreamOperatorInGlobal) {
5057 TEST(MessageTest, NullPointers) {
5072 TEST(MessageTest, WideStrings) {
5100 class TestInfoTest : public Test {
5132 // Initially, there is no TestPartResult for this test.
5139 // Tests setting up and tearing down a test case.
5141 class SetUpTestCaseTest : public Test {
5143 // This will be called once before the first test in this test case
5146 printf("Setting up the test case . . .\n");
5153 // Increments the number of test cases that have been set up.
5160 // This will be called once after the last test in this test case is
5163 printf("Tearing down the test case . . .\n");
5165 // Decrements the number of test cases that have been set up.
5175 // This will be called before each test in this test case.
5182 // Number of test cases that have been set up.
5185 // Some resource to be shared by all tests in this test case.
5192 // A test that uses the shared resource.
5197 // Another test that uses the shared resource.
5202 // The InitGoogleTestTest test case tests testing::InitGoogleTest().
5204 // The Flags struct stores a copy of all Google Test flags.
5334 class InitGoogleTestTest : public Test {
5336 // Clears the flags before each test.
5618 "bar", // Unrecognized by Google Test.
6066 class CurrentTestInfoTest : public Test {
6068 // Tests that current_test_info() returns NULL before the first test in
6069 // the test case is run.
6078 // Tests that current_test_info() returns NULL after the last test in
6079 // the test case has run.
6089 // test by checking the expected test name against the actual one.
6094 << "There is a test running so we should have a valid TestInfo.";
6096 << "Expected the name of the currently running test case.";
6098 << "Expected the name of the currently running test.";
6102 // test by checking the expected test name against the actual one. We
6103 // use this test to see that the TestInfo object actually changed from
6109 << "There is a test running so we should have a valid TestInfo.";
6111 << "Expected the name of the currently running test case.";
6113 << "Expected the name of the currently running test.";
6118 // These two lines test that we can define tests in a namespace that
6123 // Makes sure that TEST knows to use ::testing::Test instead of
6124 // ::my_namespace::testing::Test.
6125 class Test {};
6137 TEST(NestedTestingNamespaceTest, Success) {
6142 TEST(NestedTestingNamespaceTest, Failure) {
6152 // No tests are based on this fixture; the test "passes" if it compiles
6154 class ProtectedFixtureMethodsTest : public Test {
6157 Test::SetUp();
6160 Test::TearDown();
6166 TEST(StreamingAssertionsTest, Unconditional) {
6179 TEST(StreamingAssertionsTest, Truth) {
6188 TEST(StreamingAssertionsTest, Truth2) {
6202 TEST(StreamingAssertionsTest, IntegerEquals) {
6211 TEST(StreamingAssertionsTest, IntegerLessThan) {
6220 TEST(StreamingAssertionsTest, StringsEqual) {
6229 TEST(StreamingAssertionsTest, StringsNotEqual) {
6238 TEST(StreamingAssertionsTest, StringsEqualIgnoringCase) {
6247 TEST(StreamingAssertionsTest, StringNotEqualIgnoringCase) {
6256 TEST(StreamingAssertionsTest, FloatingPointEquals) {
6267 TEST(StreamingAssertionsTest, Throw) {
6276 TEST(StreamingAssertionsTest, NoThrow) {
6285 TEST(StreamingAssertionsTest, AnyThrow) {
6296 // Tests that Google Test correctly decides whether to use colors in the output.
6298 TEST(ColoredOutputTest, UsesColorsWhenGTestColorFlagIsYes) {
6310 TEST(ColoredOutputTest, UsesColorsWhenGTestColorFlagIsAliasOfYes) {
6323 TEST(ColoredOutputTest, UsesNoColorWhenGTestColorFlagIsNo) {
6335 TEST(ColoredOutputTest, UsesNoColorWhenGTestColorFlagIsInvalid) {
6348 TEST
6356 TEST(ColoredOutputTest, UsesColorsWhenTermSupportsColors) {
6410 TEST(StaticAssertTypeEqTest, WorksInClass) {
6418 TEST(StaticAssertTypeEqTest, CompilesForEqualTypes) {
6423 TEST(ThreadLocalTest, DefaultConstructor) {
6431 TEST(ThreadLocalTest, Init) {
6440 TEST(GetCurrentOsStackTraceExceptTopTest, ReturnsTheStackTrace) {
6443 // We don't have a stack walker in Google Test yet.
6448 TEST(HasNonfatalFailureTest, ReturnsFalseWhenThereIsNoFailure) {
6454 TEST(HasNonfatalFailureTest, ReturnsFalseWhenThereIsOnlyFatalFailure) {
6461 TEST(HasNonfatalFailureTest, ReturnsTrueWhenThereIsNonfatalFailure) {
6468 TEST(HasNonfatalFailureTest, ReturnsTrueWhenThereAreFatalAndNonfatalFailures) {
6476 // A wrapper for calling HasNonfatalFailure outside of a test body.
6478 return testing::Test::HasNonfatalFailure();
6481 TEST(HasNonfatalFailureTest, WorksOutsideOfTestBody) {
6485 TEST(HasNonfatalFailureTest, WorksOutsideOfTestBody2) {
6492 TEST(HasFailureTest, ReturnsFalseWhenThereIsNoFailure) {
6496 TEST(HasFailureTest, ReturnsTrueWhenThereIsFatalFailure) {
6503 TEST(HasFailureTest, ReturnsTrueWhenThereIsNonfatalFailure) {
6510 TEST(HasFailureTest, ReturnsTrueWhenThereAreFatalAndNonfatalFailures) {
6518 // A wrapper for calling HasFailure outside of a test body.
6519 static bool HasFailureHelper() { return testing::Test::HasFailure(); }
6521 TEST(HasFailureTest, WorksOutsideOfTestBody) {
6525 TEST(HasFailureTest, WorksOutsideOfTestBody2) {
6556 TEST(TestEventListenersTest, ConstructionWorks) {
6566 TEST(TestEventListenersTest, DestructionWorks) {
6592 TEST(TestEventListenersTest, Append) {
6646 TEST(EventListenerTest, AppendKeepsOrder) {
6687 TEST(TestEventListenersTest, Release) {
6692 // test ends.
6708 TEST(EventListenerTest, SuppressEventForwarding) {
6722 // Tests that events generated by Google Test are not forwarded in
6723 // death test subprocesses.
6724 TEST(EventListenerDeathTest, EventsNotForwardedInDeathTestSubprecesses) {
6734 TEST(EventListenerTest, default_result_printer) {
6765 TEST(EventListenerTest, RemovingDefaultResultPrinterWorks) {
6770 // test ends.
6793 TEST(EventListenerTest, default_xml_generator) {
6824 TEST(EventListenerTest, RemovingDefaultXmlGeneratorWorks) {
6829 // test ends.