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
108 class TestForDeathTest : public testing::Test {
205 EXPECT_TRUE(testing::ExitedWithCode(0)(0));
206 EXPECT_TRUE(testing::ExitedWithCode(1)(1));
207 EXPECT_TRUE(testing::ExitedWithCode(42)(42));
208 EXPECT_FALSE(testing::ExitedWithCode(0)(1));
209 EXPECT_FALSE(testing::ExitedWithCode(1)(0));
248 const testing::ExitedWithCode pred0(0);
249 const testing::ExitedWithCode pred1(1);
250 const testing::ExitedWithCode pred42(42);
263 const testing::KilledBySignal pred_segv(SIGSEGV);
264 const testing::KilledBySignal pred_kill(SIGKILL);
340 testing::GTEST_FLAG(death_test_style) = "fast";
347 testing::GTEST_FLAG(death_test_style) = "fast";
357 testing::GTEST_FLAG(death_test_style) = "fast";
360 EXPECT_EXIT(_exit(1), testing::ExitedWithCode(1), "");
369 testing::GTEST_FLAG(death_test_style) = "threadsafe";
374 testing::GTEST_FLAG(death_test_style) = "threadsafe";
380 testing::GTEST_FLAG(death_test_style) = "threadsafe";
383 EXPECT_EXIT(_exit(i), testing::ExitedWithCode(i), "") << ": i = " << i;
387 testing::GTEST_FLAG(death_test_style) = "threadsafe";
390 EXPECT_EXIT(_exit(1), testing::ExitedWithCode(1), "");
397 testing::GTEST_FLAG(death_test_style) = "threadsafe";
399 testing::GTEST_FLAG(death_test_style) = "fast";
416 if (!testing::GTEST_FLAG(death_test_use_fork)) {
417 testing::GTEST_FLAG(death_test_style) = "threadsafe";
444 const testing::internal::RE regex(regex_c_str);
615 testing::GTEST_FLAG(catch_exceptions) = false;
626 testing::GTEST_FLAG(catch_exceptions) = false;
659 EXPECT_EXIT(_exit(1), testing::ExitedWithCode(1), "");
660 ASSERT_EXIT(_exit(42), testing::ExitedWithCode(42), "");
668 testing::GTEST_FLAG(catch_exceptions) = false;
670 }, testing::ExitedWithCode(0xC0000005), "") << "foo";
674 testing::GTEST_FLAG(catch_exceptions) = false;
676 }, testing::ExitedWithCode(0), "") << "This failure is expected.";
684 EXPECT_EXIT(raise(SIGABRT), testing::ExitedWithCode(3), "");
686 EXPECT_EXIT(raise(SIGKILL), testing::KilledBySignal(SIGKILL), "") << "foo";
687 ASSERT_EXIT(raise(SIGUSR2), testing::KilledBySignal(SIGUSR2), "") << "bar";
690 ASSERT_EXIT(_exit(0), testing::KilledBySignal(SIGSEGV), "")
696 EXPECT_EXIT(raise(SIGSEGV), testing::ExitedWithCode(0), "")
706 testing::GTEST_FLAG(death_test_use_fork) = true;
711 testing::GTEST_FLAG(death_test_style) = "rococo";
722 const ::testing::internal::RE* regex,
768 // A DeathTest implementation useful in testing. It returns values set
837 const ::testing::internal::RE* /*regex*/,
850 // A test fixture for testing the logic of the GTEST_DEATH_TEST_ macro.
853 class MacroLogicDeathTest : public testing::Test {
855 static testing::internal::ReplaceDeathTestFactory* replacer_;
860 replacer_ = new testing::internal::ReplaceDeathTestFactory(factory_);
881 testing::internal::ReplaceDeathTestFactory* MacroLogicDeathTest::replacer_
1003 testing::internal::AutoHandle auto_handle(handle);
1019 testing::internal::AutoHandle auto_handle2;
1144 using testing::internal::CaptureStderr;
1145 using testing::internal::GetCapturedStderr;
1146 using testing::internal::String;