Lines Matching defs:testing
38 using testing::internal::AlwaysFalse;
39 using testing::internal::AlwaysTrue;
70 namespace posix = ::testing::internal::posix;
72 using testing::Message;
73 using testing::internal::DeathTest;
74 using testing::internal::DeathTestFactory;
75 using testing::internal::FilePath;
76 using testing::internal::GetLastErrnoDescription;
77 using testing::internal::GetUnitTestImpl;
78 using testing::internal::InDeathTestChild;
79 using testing::internal::ParseNaturalNumber;
80 using testing::internal::String;
82 namespace testing {
109 } // namespace testing
133 class TestForDeathTest : public testing::Test {
219 EXPECT_TRUE(testing::ExitedWithCode(0)(0));
220 EXPECT_TRUE(testing::ExitedWithCode(1)(1));
221 EXPECT_TRUE(testing::ExitedWithCode(42)(42));
222 EXPECT_FALSE(testing::ExitedWithCode(0)(1));
223 EXPECT_FALSE(testing::ExitedWithCode(1)(0));
262 const testing::ExitedWithCode pred0(0);
263 const testing::ExitedWithCode pred1(1);
264 const testing::ExitedWithCode pred42(42);
277 const testing::KilledBySignal pred_segv(SIGSEGV);
278 const testing::KilledBySignal pred_kill(SIGKILL);
354 testing::GTEST_FLAG(death_test_style) = "fast";
361 testing::GTEST_FLAG(death_test_style) = "fast";
371 testing::GTEST_FLAG(death_test_style) = "fast";
374 EXPECT_EXIT(_exit(1), testing::ExitedWithCode(1), "");
414 testing::GTEST_FLAG(death_test_style) = "fast";
423 testing::GTEST_FLAG(death_test_style) = "threadsafe";
435 testing::GTEST_FLAG(death_test_style) = "threadsafe";
440 testing::GTEST_FLAG(death_test_style) = "threadsafe";
446 testing::GTEST_FLAG(death_test_style) = "threadsafe";
449 EXPECT_EXIT(_exit(i), testing::ExitedWithCode(i), "") << ": i = " << i;
453 testing::GTEST_FLAG(death_test_style) = "threadsafe";
456 EXPECT_EXIT(_exit(1), testing::ExitedWithCode(1), "");
463 testing::GTEST_FLAG(death_test_style) = "threadsafe";
465 testing::GTEST_FLAG(death_test_style) = "fast";
482 if (!testing::GTEST_FLAG(death_test_use_fork)) {
483 testing::GTEST_FLAG(death_test_style) = "threadsafe";
510 const testing::internal::RE regex(regex_c_str);
688 testing::GTEST_FLAG(catch_exceptions) = false;
721 EXPECT_EXIT(_exit(1), testing::ExitedWithCode(1), "");
722 ASSERT_EXIT(_exit(42), testing::ExitedWithCode(42), "");
729 EXPECT_EXIT(raise(SIGABRT), testing::ExitedWithCode(3), "") << "b_ar";
733 EXPECT_EXIT(raise(SIGKILL), testing::KilledBySignal(SIGKILL), "") << "foo";
734 ASSERT_EXIT(raise(SIGUSR2), testing::KilledBySignal(SIGUSR2), "") << "bar";
737 ASSERT_EXIT(_exit(0), testing::KilledBySignal(SIGSEGV), "")
744 EXPECT_EXIT(raise(SIGSEGV), testing::ExitedWithCode(0), "")
754 testing::GTEST_FLAG(death_test_use_fork) = true;
759 testing::GTEST_FLAG(death_test_style) = "rococo";
766 testing::GTEST_FLAG(death_test_style) = "fast";
775 testing::GTEST_FLAG(death_test_style) = "fast";
788 testing::GTEST_FLAG(death_test_style) = "fast";
791 testing::ExitedWithCode(3),
800 testing::GTEST_FLAG(death_test_style) = "fast";
811 testing::GTEST_FLAG(death_test_style) = "fast";
821 const ::testing::internal::RE* regex,
867 // A DeathTest implementation useful in testing. It returns values set
937 const ::testing::internal::RE* /*regex*/,
950 // A test fixture for testing the logic of the GTEST_DEATH_TEST_ macro.
953 class MacroLogicDeathTest : public testing::Test {
955 static testing::internal::ReplaceDeathTestFactory* replacer_;
960 replacer_ = new testing::internal::ReplaceDeathTestFactory(factory_);
981 testing::internal::ReplaceDeathTestFactory* MacroLogicDeathTest::replacer_
1103 testing::internal::AutoHandle auto_handle(handle);
1119 testing::internal::AutoHandle auto_handle2;
1246 using testing::internal::CaptureStderr;
1247 using testing::internal::GetCapturedStderr;
1248 using testing::internal::String;
1347 testing::GTEST_FLAG(death_test_style) = "fast";
1357 testing::GTEST_FLAG(death_test_style) = "threadsafe";