Home | History | Annotate | Download | only in test

Lines Matching refs:DeathTest

69 using testing::internal::DeathTest;
703 const char* file, int line, DeathTest** test);
706 void SetParameters(bool create, DeathTest::TestRole role,
715 DeathTest::AbortReason AbortArgument(int n) const {
726 DeathTest::TestRole role_;
741 std::vector<DeathTest::AbortReason> abort_args_;
748 // A DeathTest implementation useful in testing. It returns values set
749 // at its creation from its various inherited DeathTest methods, and
752 class MockDeathTest : public DeathTest {
787 role_(DeathTest::OVERSEE_TEST),
799 DeathTest::TestRole role,
820 DeathTest** test) {
866 // Test that nothing happens when the factory doesn't return a DeathTest:
869 factory_->SetParameters(false, DeathTest::OVERSEE_TEST, 0, true);
884 factory_->SetParameters(true, DeathTest::OVERSEE_TEST, 0, true);
899 factory_->SetParameters(true, DeathTest::OVERSEE_TEST, 1, true);
915 factory_->SetParameters(true, DeathTest::EXECUTE_TEST, 0, true);
922 EXPECT_EQ(DeathTest::TEST_ENCOUNTERED_RETURN_STATEMENT,
931 factory_->SetParameters(true, DeathTest::EXECUTE_TEST, 0, true);
943 EXPECT_EQ(DeathTest::TEST_DID_NOT_DIE,
945 EXPECT_EQ(DeathTest::TEST_ENCOUNTERED_RETURN_STATEMENT,
957 TEST(StreamingAssertionsDeathTest, DeathTest) {
1226 // Tests that a test case whose name ends with "DeathTest" works fine