Lines Matching defs:testing

38 using testing::internal::AlwaysFalse;
39 using testing::internal::AlwaysTrue;
69 namespace posix = ::testing::internal::posix;
71 using testing::Message;
72 using testing::internal::DeathTest;
73 using testing::internal::DeathTestFactory;
74 using testing::internal::FilePath;
75 using testing::internal::GetLastErrnoDescription;
76 using testing::internal::GetUnitTestImpl;
77 using testing::internal::InDeathTestChild;
78 using testing::internal::ParseNaturalNumber;
80 namespace testing {
107 } // namespace testing
131 class TestForDeathTest : public testing::Test {
217 EXPECT_TRUE(testing::ExitedWithCode(0)(0));
218 EXPECT_TRUE(testing::ExitedWithCode(1)(1));
219 EXPECT_TRUE(testing::ExitedWithCode(42)(42));
220 EXPECT_FALSE(testing::ExitedWithCode(0)(1));
221 EXPECT_FALSE(testing::ExitedWithCode(1)(0));
260 const testing::ExitedWithCode pred0(0);
261 const testing::ExitedWithCode pred1(1);
262 const testing::ExitedWithCode pred42(42);
275 const testing::KilledBySignal pred_segv(SIGSEGV);
276 const testing::KilledBySignal pred_kill(SIGKILL);
347 testing::GTEST_FLAG(death_test_style) = "fast";
354 testing::GTEST_FLAG(death_test_style) = "fast";
364 testing::GTEST_FLAG(death_test_style) = "fast";
367 EXPECT_EXIT(_exit(1), testing::ExitedWithCode(1), "");
407 testing::GTEST_FLAG(death_test_style) = "fast";
416 testing::GTEST_FLAG(death_test_style) = "threadsafe";
428 testing::GTEST_FLAG(death_test_style) = "threadsafe";
433 testing::GTEST_FLAG(death_test_style) = "threadsafe";
439 testing::GTEST_FLAG(death_test_style) = "threadsafe";
442 EXPECT_EXIT(_exit(i), testing::ExitedWithCode(i), "") << ": i = " << i;
446 testing::GTEST_FLAG(death_test_style) = "threadsafe";
449 EXPECT_EXIT(_exit(1), testing::ExitedWithCode(1), "");
456 testing::GTEST_FLAG(death_test_style) = "threadsafe";
458 testing::GTEST_FLAG(death_test_style) = "fast";
475 if (!testing::GTEST_FLAG(death_test_use_fork)) {
476 testing::GTEST_FLAG(death_test_style) = "threadsafe";
503 const testing::internal::RE regex(regex_c_str);
685 testing::GTEST_FLAG(catch_exceptions) = false;
784 EXPECT_EXIT(_exit(1), testing::ExitedWithCode(1), "");
785 ASSERT_EXIT(_exit(42), testing::ExitedWithCode(42), "");
792 EXPECT_EXIT(raise(SIGABRT), testing::ExitedWithCode(3), "") << "b_ar";
796 EXPECT_EXIT(raise(SIGKILL), testing::KilledBySignal(SIGKILL), "") << "foo";
797 ASSERT_EXIT(raise(SIGUSR2), testing::KilledBySignal(SIGUSR2), "") << "bar";
800 ASSERT_EXIT(_exit(0), testing::KilledBySignal(SIGSEGV), "")
807 EXPECT_EXIT(raise(SIGSEGV), testing::ExitedWithCode(0), "")
817 testing::GTEST_FLAG(death_test_use_fork) = true;
822 testing::GTEST_FLAG(death_test_style) = "rococo";
829 testing::GTEST_FLAG(death_test_style) = "fast";
838 testing::GTEST_FLAG(death_test_style) = "fast";
851 testing::GTEST_FLAG(death_test_style) = "fast";
854 testing::ExitedWithCode(3),
863 testing::GTEST_FLAG(death_test_style) = "fast";
874 testing::GTEST_FLAG(death_test_style) = "fast";
884 const ::testing::internal::RE* regex,
930 // A DeathTest implementation useful in testing. It returns values set
1000 const ::testing::internal::RE* /*regex*/,
1013 // A test fixture for testing the logic of the GTEST_DEATH_TEST_ macro.
1016 class MacroLogicDeathTest : public testing::Test {
1018 static testing::internal::ReplaceDeathTestFactory* replacer_;
1023 replacer_ = new testing::internal::ReplaceDeathTestFactory(factory_);
1044 testing::internal::ReplaceDeathTestFactory* MacroLogicDeathTest::replacer_
1166 testing::internal::AutoHandle auto_handle(handle);
1182 testing::internal::AutoHandle auto_handle2;
1307 testing::GTEST_FLAG(death_test_style) = "fast";
1317 testing::GTEST_FLAG(death_test_style) = "threadsafe";
1328 using testing::internal::CaptureStderr;
1329 using testing::internal::GetCapturedStderr;