Lines Matching refs:test

34 #include "gtest/gtest-death-test.h"
83 // A helper class whose objects replace the death test factory for a
142 // A method of the test fixture that may die.
192 // Tests that ASSERT_DEATH can be used outside a TEST, TEST_F, or test fixture.
228 // ExitStatusPredicateTest test suite.
243 // test suite.
285 // Tests that the death test macros expand to code which may or may not
290 // This would fail if executed; this is a compilation test only
326 // Tests that death test macros expand to code which interacts well with switch
330 // case labels. We suppress that warning for this test.
345 // death test.
351 // Tests that a method of the test fixture can be used in a "fast"
352 // style death test.
486 // Tests that a method of another class can be used in a death test.
492 // Tests that a global function can be used in a death test.
521 // Tests that a non-void function can be used in a death test.
526 // Tests that functions that take parameter(s) can be used in a death test.
532 // Tests that ASSERT_DEATH can be used outside a TEST, TEST_F, or test fixture.
544 // Tests that a compound statement can be used in a death test.
554 // Tests that code that doesn't die causes a death test to fail.
560 // Tests that a death test fails when the error message isn't expected.
563 EXPECT_DEATH(DieIf(true), "DieIfLessThan") << "End of death test message.";
575 // Tests that EXPECT_DEATH doesn't abort the test on failure.
583 // Tests that ASSERT_DEATH does abort the test on failure.
615 "illegal return in test statement.");
680 printf("This test should be considered failing if it shows "
845 " Result: illegal return in test statement.\n"
885 const char* file, int line, DeathTest** test);
996 // Sets test to NULL (if create_ is false) or to the address of a new
1003 DeathTest** test) {
1006 *test = new MockDeathTest(this, role_, status_, passed_);
1008 *test = NULL;
1013 // A test fixture for testing the logic of the GTEST_DEATH_TEST_ macro.
1015 // of the test case.
1033 // Runs a death test that breaks the rules by returning. Such a death
1034 // test cannot be run directly from a test routine that uses a
1062 // Test that the parent process doesn't run the death test code,
1093 // Tests that the (simulated) child process executes the death test
1120 // This time there are two calls to Abort: one since the test didn't
1122 // sentinel normally isn't destroyed if a test doesn't die, since
1133 // Tests that a successful death test does not register a successful
1134 // test part.
1286 // TODO(vladl@google.com): Remove this test after this condition is verified
1287 // in a static assertion in gtest-death-test.cc in the function
1344 // The streamed message should not be printed as there is no test failure.
1378 // Tests that the death test macros expand to code which may or may not
1385 // This would fail if executed; this is a compilation test only
1404 // Tests that conditional death test macros expand to code which interacts
1408 // case labels. We suppress that warning for this test.
1423 // Tests that a test case whose name ends with "DeathTest" works fine