Lines Matching full:testing
38 using testing::internal::AlwaysFalse;
39 using testing::internal::AlwaysTrue;
66 namespace posix = ::testing::internal::posix;
68 using testing::Message;
69 using testing::internal::DeathTest;
70 using testing::internal::DeathTestFactory;
71 using testing::internal::FilePath;
72 using testing::internal::GetLastErrnoDescription;
73 using testing::internal::GetUnitTestImpl;
74 using testing::internal::ParseNaturalNumber;
75 using testing::internal::String;
77 namespace testing {
104 } // namespace testing
128 class TestForDeathTest : public testing::Test {
214 EXPECT_TRUE(testing::ExitedWithCode(0)(0));
215 EXPECT_TRUE(testing::ExitedWithCode(1)(1));
216 EXPECT_TRUE(testing::ExitedWithCode(42)(42));
217 EXPECT_FALSE(testing::ExitedWithCode(0)(1));
218 EXPECT_FALSE(testing::ExitedWithCode(1)(0));
257 const testing::ExitedWithCode pred0(0);
258 const testing::ExitedWithCode pred1(1);
259 const testing::ExitedWithCode pred42(42);
272 const testing::KilledBySignal pred_segv(SIGSEGV);
273 const testing::KilledBySignal pred_kill(SIGKILL);
349 testing::GTEST_FLAG(death_test_style) = "fast";
356 testing::GTEST_FLAG(death_test_style) = "fast";
366 testing::GTEST_FLAG(death_test_style) = "fast";
369 EXPECT_EXIT(_exit(1), testing::ExitedWithCode(1), "");
378 testing::GTEST_FLAG(death_test_style) = "threadsafe";
383 testing::GTEST_FLAG(death_test_style) = "threadsafe";
389 testing::GTEST_FLAG(death_test_style) = "threadsafe";
392 EXPECT_EXIT(_exit(i), testing::ExitedWithCode(i), "") << ": i = " << i;
396 testing::GTEST_FLAG(death_test_style) = "threadsafe";
399 EXPECT_EXIT(_exit(1), testing::ExitedWithCode(1), "");
406 testing::GTEST_FLAG(death_test_style) = "threadsafe";
408 testing::GTEST_FLAG(death_test_style) = "fast";
425 if (!testing::GTEST_FLAG(death_test_use_fork)) {
426 testing::GTEST_FLAG(death_test_style) = "threadsafe";
453 const testing::internal::RE regex(regex_c_str);
635 testing::GTEST_FLAG(catch_exceptions) = false;
668 EXPECT_EXIT(_exit(1), testing::ExitedWithCode(1), "");
669 ASSERT_EXIT(_exit(42), testing::ExitedWithCode(42), "");
676 EXPECT_EXIT(raise(SIGABRT), testing::ExitedWithCode(3), "");
680 EXPECT_EXIT(raise(SIGKILL), testing::KilledBySignal(SIGKILL), "") << "foo";
681 ASSERT_EXIT(raise(SIGUSR2), testing::KilledBySignal(SIGUSR2), "") << "bar";
684 ASSERT_EXIT(_exit(0), testing::KilledBySignal(SIGSEGV), "")
691 EXPECT_EXIT(raise(SIGSEGV), testing::ExitedWithCode(0), "")
701 testing::GTEST_FLAG(death_test_use_fork) = true;
706 testing::GTEST_FLAG(death_test_style) = "rococo";
713 testing::GTEST_FLAG(death_test_style) = "fast";
722 testing::GTEST_FLAG(death_test_style) = "fast";
735 testing::GTEST_FLAG(death_test_style) = "fast";
738 testing::ExitedWithCode(3),
747 testing::GTEST_FLAG(death_test_style) = "fast";
758 testing::GTEST_FLAG(death_test_style) = "fast";
768 const ::testing::internal::RE* regex,
814 // A DeathTest implementation useful in testing. It returns values set
883 const ::testing::internal::RE* /*regex*/,
896 // A test fixture for testing the logic of the GTEST_DEATH_TEST_ macro.
899 class MacroLogicDeathTest : public testing::Test {
901 static testing::internal::ReplaceDeathTestFactory* replacer_;
906 replacer_ = new testing::internal::ReplaceDeathTestFactory(factory_);
927 testing::internal::ReplaceDeathTestFactory* MacroLogicDeathTest::replacer_
1049 testing
1065 testing::internal::AutoHandle auto_handle2;
1192 using testing::internal::CaptureStderr;
1193 using testing::internal::GetCapturedStderr;
1194 using testing::internal::String;