Home | History | Annotate | Download | only in test

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);
352 testing::GTEST_FLAG(death_test_style) = "fast";
359 testing::GTEST_FLAG(death_test_style) = "fast";
369 testing::GTEST_FLAG(death_test_style) = "fast";
372 EXPECT_EXIT(_exit(1), testing::ExitedWithCode(1), "");
412 testing::GTEST_FLAG(death_test_style) = "fast";
421 testing::GTEST_FLAG(death_test_style) = "threadsafe";
433 testing::GTEST_FLAG(death_test_style) = "threadsafe";
438 testing::GTEST_FLAG(death_test_style) = "threadsafe";
444 testing::GTEST_FLAG(death_test_style) = "threadsafe";
447 EXPECT_EXIT(_exit(i), testing::ExitedWithCode(i), "") << ": i = " << i;
451 testing::GTEST_FLAG(death_test_style) = "threadsafe";
454 EXPECT_EXIT(_exit(1), testing::ExitedWithCode(1), "");
461 testing::GTEST_FLAG(death_test_style) = "threadsafe";
463 testing::GTEST_FLAG(death_test_style) = "fast";
480 if (!testing::GTEST_FLAG(death_test_use_fork)) {
481 testing::GTEST_FLAG(death_test_style) = "threadsafe";
508 const testing::internal::RE regex(regex_c_str);
686 testing::GTEST_FLAG(catch_exceptions) = false;
719 EXPECT_EXIT(_exit(1), testing::ExitedWithCode(1), "");
720 ASSERT_EXIT(_exit(42), testing::ExitedWithCode(42), "");
727 EXPECT_EXIT(raise(SIGABRT), testing::ExitedWithCode(3), "") << "b_ar";
731 EXPECT_EXIT(raise(SIGKILL), testing::KilledBySignal(SIGKILL), "") << "foo";
732 ASSERT_EXIT(raise(SIGUSR2), testing::KilledBySignal(SIGUSR2), "") << "bar";
735 ASSERT_EXIT(_exit(0), testing::KilledBySignal(SIGSEGV), "")
742 EXPECT_EXIT(raise(SIGSEGV), testing::ExitedWithCode(0), "")
752 testing::GTEST_FLAG(death_test_use_fork) = true;
757 testing::GTEST_FLAG(death_test_style) = "rococo";
764 testing::GTEST_FLAG(death_test_style) = "fast";
773 testing::GTEST_FLAG(death_test_style) = "fast";
786 testing::GTEST_FLAG(death_test_style) = "fast";
789 testing::ExitedWithCode(3),
798 testing::GTEST_FLAG(death_test_style) = "fast";
809 testing::GTEST_FLAG(death_test_style) = "fast";
819 const ::testing::internal::RE* regex,
865 // A DeathTest implementation useful in testing. It returns values set
935 const ::testing::internal::RE* /*regex*/,
948 // A test fixture for testing the logic of the GTEST_DEATH_TEST_ macro.
951 class MacroLogicDeathTest : public testing::Test {
953 static testing::internal::ReplaceDeathTestFactory* replacer_;
958 replacer_ = new testing::internal::ReplaceDeathTestFactory(factory_);
979 testing::internal::ReplaceDeathTestFactory* MacroLogicDeathTest::replacer_
1101 testing::internal::AutoHandle auto_handle(handle);
1117 testing::internal::AutoHandle auto_handle2;
1243 using testing::internal::CaptureStderr;
1244 using testing::internal::GetCapturedStderr;
1292 testing::GTEST_FLAG(death_test_style) = "fast";
1302 testing::GTEST_FLAG(death_test_style) = "threadsafe";