Home | History | Annotate | Download | only in tests

Lines Matching defs:testing

39 namespace testing {
42 // Reuse of testing::internal::ColoredPrintf in gtest.
53 } // namespace testing
55 using testing::internal::GTestColor;
56 using testing::internal::COLOR_DEFAULT;
57 using testing::internal::COLOR_RED;
58 using testing::internal::COLOR_GREEN;
59 using testing::internal::COLOR_YELLOW;
60 using testing::internal::ColoredPrintf;
101 "running tests, or send SIGINT to the parent process to stop testing and\n"
199 class TestResultPrinter : public testing::EmptyTestEventListener {
202 virtual void OnTestStart(const testing::TestInfo& test_info) {
205 virtual void OnTestPartResult(const testing::TestPartResult& result);
208 const testing::TestInfo* pinfo_;
212 void TestResultPrinter::OnTestPartResult(const testing::TestPartResult& result) {
214 if (result.type() == testing::TestPartResult::kSuccess)
315 if (testing::GTEST_FLAG(print_time)) {
335 if (testing::GTEST_FLAG(print_time)) {
383 if (testing::GTEST_FLAG(print_time)) {
528 testing::InitGoogleTest(&new_argc, new_argv);
749 testing::UnitTest::GetInstance()->listeners().Release(
750 testing::UnitTest::GetInstance()->listeners().default_result_printer());
751 testing::UnitTest::GetInstance()->listeners().Append(new TestResultPrinter);
885 // as described in PrintHelpInfo(), the other part is handled by testing::InitGoogleTest() in
956 options.gtest_color = testing::GTEST_FLAG(color);
957 options.gtest_print_time = testing::GTEST_FLAG(print_time);
958 options.gtest_repeat = testing::GTEST_FLAG(repeat);
959 options.gtest_output = testing::GTEST_FLAG(output);
1062 testing::GTEST_FLAG(color) = options.gtest_color.c_str();
1063 testing::GTEST_FLAG(print_time) = options.gtest_print_time;
1077 testing::InitGoogleTest(&argc, arg_list.data());
1114 ASSERT_EXIT(deathtest_helper_success(), ::testing::ExitedWithCode(0), "");
1122 ASSERT_EXIT(deathtest_helper_fail(), ::testing::ExitedWithCode(0), "");