Lines Matching defs:testing
55 namespace testing {
58 // Reuse of testing::internal::ColoredPrintf in gtest.
69 } // namespace testing
71 using testing::internal::GTestColor;
72 using testing::internal::COLOR_DEFAULT;
73 using testing::internal::COLOR_RED;
74 using testing::internal::COLOR_GREEN;
75 using testing::internal::COLOR_YELLOW;
76 using testing::internal::ColoredPrintf;
117 "running tests, or send SIGINT to the parent process to stop testing and\n"
215 class TestResultPrinter : public testing::EmptyTestEventListener {
218 virtual void OnTestStart(const testing::TestInfo& test_info) {
221 virtual void OnTestPartResult(const testing::TestPartResult& result);
224 const testing::TestInfo* pinfo_;
228 void TestResultPrinter::OnTestPartResult(const testing::TestPartResult& result) {
230 if (result.type() == testing::TestPartResult::kSuccess)
329 if (testing::GTEST_FLAG(print_time)) {
349 if (testing::GTEST_FLAG(print_time)) {
397 if (testing::GTEST_FLAG(print_time)) {
610 testing::InitGoogleTest(&new_argc, new_argv);
831 testing::UnitTest::GetInstance()->listeners().Release(
832 testing::UnitTest::GetInstance()->listeners().default_result_printer());
833 testing::UnitTest::GetInstance()->listeners().Append(new TestResultPrinter);
952 // as described in PrintHelpInfo(), the other part is handled by testing::InitGoogleTest() in
1023 options.gtest_color = testing::GTEST_FLAG(color);
1024 options.gtest_print_time = testing::GTEST_FLAG(print_time);
1025 options.gtest_repeat = testing::GTEST_FLAG(repeat);
1026 options.gtest_output = testing::GTEST_FLAG(output);
1141 testing::GTEST_FLAG(color) = options.gtest_color.c_str();
1142 testing::GTEST_FLAG(print_time) = options.gtest_print_time;
1156 testing::InitGoogleTest(&argc, arg_list.data());
1185 class bionic_selftest_DeathTest : public ::testing::Test {
1188 ::testing::FLAGS_gtest_death_test_style = "threadsafe";
1198 ASSERT_EXIT(deathtest_helper_success(), ::testing::ExitedWithCode(0), "");
1206 ASSERT_EXIT(deathtest_helper_fail(), ::testing::ExitedWithCode(0), "");