Home | History | Annotate | Download | only in test

Lines Matching full:testing

63 using testing::Message;
65 using testing::internal::DeathTest;
66 using testing::internal::DeathTestFactory;
67 using testing::internal::FilePath;
68 using testing::internal::GetLastSystemErrorMessage;
69 using testing::internal::ParseNaturalNumber;
70 using testing::internal::String;
72 namespace testing {
99 } // namespace testing
103 class TestForDeathTest : public testing::Test {
204 EXPECT_TRUE(testing::ExitedWithCode(0)(0));
205 EXPECT_TRUE(testing::ExitedWithCode(1)(1));
206 EXPECT_TRUE(testing::ExitedWithCode(42)(42));
207 EXPECT_FALSE(testing::ExitedWithCode(0)(1));
208 EXPECT_FALSE(testing::ExitedWithCode(1)(0));
247 const testing::ExitedWithCode pred0(0);
248 const testing::ExitedWithCode pred1(1);
249 const testing::ExitedWithCode pred42(42);
262 const testing::KilledBySignal pred_segv(SIGSEGV);
263 const testing::KilledBySignal pred_kill(SIGKILL);
339 testing::GTEST_FLAG(death_test_style) = "fast";
346 testing::GTEST_FLAG(death_test_style) = "fast";
362 testing::GTEST_FLAG(death_test_style) = "fast";
365 EXPECT_EXIT(_exit(1), testing::ExitedWithCode(1), "");
374 testing::GTEST_FLAG(death_test_style) = "threadsafe";
379 testing::GTEST_FLAG(death_test_style) = "threadsafe";
385 testing::GTEST_FLAG(death_test_style) = "threadsafe";
388 EXPECT_EXIT(_exit(i), testing::ExitedWithCode(i), "") << ": i = " << i;
392 testing::GTEST_FLAG(death_test_style) = "threadsafe";
395 EXPECT_EXIT(_exit(1), testing::ExitedWithCode(1), "");
402 testing::GTEST_FLAG(death_test_style) = "threadsafe";
404 testing::GTEST_FLAG(death_test_style) = "fast";
421 if (!testing::GTEST_FLAG(death_test_use_fork)) {
422 testing::GTEST_FLAG(death_test_style) = "threadsafe";
449 const testing::internal::RE regex(regex_c_str);
620 testing::GTEST_FLAG(catch_exceptions) = false;
631 testing::GTEST_FLAG(catch_exceptions) = false;
664 EXPECT_EXIT(_exit(1), testing::ExitedWithCode(1), "");
665 ASSERT_EXIT(_exit(42), testing::ExitedWithCode(42), "");
669 testing::GTEST_FLAG(catch_exceptions) = false;
671 }, testing::ExitedWithCode(0xC0000005), "") << "foo";
675 testing::GTEST_FLAG(catch_exceptions) = false;
677 }, testing::ExitedWithCode(0), "") << "This failure is expected.";
683 EXPECT_EXIT(raise(SIGABRT), testing::ExitedWithCode(3), "");
685 EXPECT_EXIT(raise(SIGKILL), testing::KilledBySignal(SIGKILL), "") << "foo";
686 ASSERT_EXIT(raise(SIGUSR2), testing::KilledBySignal(SIGUSR2), "") << "bar";
689 ASSERT_EXIT(_exit(0), testing::KilledBySignal(SIGSEGV), "")
695 EXPECT_EXIT(raise(SIGSEGV), testing::ExitedWithCode(0), "")
705 testing::GTEST_FLAG(death_test_use_fork) = true;
710 testing::GTEST_FLAG(death_test_style) = "rococo";
721 const ::testing::internal::RE* regex,
767 // A DeathTest implementation useful in testing. It returns values set
836 const ::testing::internal::RE* regex,
848 // A test fixture for testing the logic of the GTEST_DEATH_TEST_ macro.
851 class MacroLogicDeathTest : public testing::Test {
853 static testing::internal::ReplaceDeathTestFactory* replacer_;
858 replacer_ = new testing::internal::ReplaceDeathTestFactory(
859 testing::UnitTest::GetInstance(), factory_);
880 testing::internal::ReplaceDeathTestFactory* MacroLogicDeathTest::replacer_
971 return testing::UnitTest::GetInstance()->impl()->current_test_result()->
1015 testing::internal::AutoHandle auto_handle(handle);
1031 testing::internal::AutoHandle auto_handle2;