Home
last modified time | relevance | path

Searched refs:unit_test (Results 1 – 25 of 25) sorted by relevance

/third_party/googletest/googletest/test/
Dgtest-unittest-api_test.cc58 UnitTest& unit_test = *UnitTest::GetInstance(); in GetSortedTestSuites() local
60 unit_test.total_test_suite_count())]; in GetSortedTestSuites()
62 for (int i = 0; i < unit_test.total_test_suite_count(); ++i) in GetSortedTestSuites()
63 test_suites[i] = unit_test.GetTestSuite(i); in GetSortedTestSuites()
65 std::sort(test_suites, test_suites + unit_test.total_test_suite_count(), in GetSortedTestSuites()
73 UnitTest& unit_test = *UnitTest::GetInstance(); in FindTestSuite() local
74 for (int i = 0; i < unit_test.total_test_suite_count(); ++i) { in FindTestSuite()
75 const TestSuite* test_suite = unit_test.GetTestSuite(i); in FindTestSuite()
109 const auto& unit_test = UnitTest::GetInstance(); in TEST() local
111 ASSERT_EQ(2 + kTypedTestSuites, unit_test->total_test_suite_count()); in TEST()
[all …]
Dgoogletest-param-test-test.cc960 const auto& unit_test = ::testing::UnitTest::GetInstance(); in TEST() local
962 for (int suite_num = 0; suite_num < unit_test->total_test_suite_count(); in TEST()
964 const ::testing::TestSuite* test_suite = unit_test->GetTestSuite(suite_num); in TEST()
/third_party/googletest/googletest/samples/
Dsample9_unittest.cc54 void OnTestProgramEnd(const UnitTest& unit_test) override { in OnTestProgramEnd() argument
55 fprintf(stdout, "TEST %s\n", unit_test.Passed() ? "PASSED" : "FAILED"); in OnTestProgramEnd()
108 UnitTest& unit_test = *UnitTest::GetInstance(); in main() local
113 TestEventListeners& listeners = unit_test.listeners(); in main()
132 for (int i = 0; i < unit_test.total_test_suite_count(); ++i) { in main()
133 const testing::TestSuite& test_suite = *unit_test.GetTestSuite(i); in main()
/third_party/googletest/googletest/src/
Dgtest.cc1007 UnitTestImpl* unit_test) in DefaultGlobalTestPartResultReporter() argument
1008 : unit_test_(unit_test) {} in DefaultGlobalTestPartResultReporter()
1017 UnitTestImpl* unit_test) in DefaultPerThreadTestPartResultReporter() argument
1018 : unit_test_(unit_test) {} in DefaultPerThreadTestPartResultReporter()
3349 void OnTestIterationStart(const UnitTest& unit_test, int iteration) override;
3350 void OnEnvironmentsSetUpStart(const UnitTest& unit_test) override;
3369 void OnEnvironmentsTearDownStart(const UnitTest& unit_test) override;
3371 void OnTestIterationEnd(const UnitTest& unit_test, int iteration) override;
3375 static void PrintFailedTests(const UnitTest& unit_test);
3376 static void PrintFailedTestSuites(const UnitTest& unit_test);
[all …]
Dgtest-internal-inl.h470 explicit DefaultGlobalTestPartResultReporter(UnitTestImpl* unit_test);
489 explicit DefaultPerThreadTestPartResultReporter(UnitTestImpl* unit_test);
1140 void OnTestProgramEnd(const UnitTest& unit_test) override { in OnTestProgramEnd() argument
1143 SendLn("event=TestProgramEnd&passed=" + FormatBool(unit_test.Passed())); in OnTestProgramEnd()
1155 void OnTestIterationEnd(const UnitTest& unit_test, in OnTestIterationEnd() argument
1157 SendLn("event=TestIterationEnd&passed=" + FormatBool(unit_test.Passed()) + in OnTestIterationEnd()
1158 "&elapsed_time=" + StreamableToString(unit_test.elapsed_time()) + in OnTestIterationEnd()
/third_party/node/deps/googletest/src/
Dgtest.cc1015 UnitTestImpl* unit_test) in DefaultGlobalTestPartResultReporter() argument
1016 : unit_test_(unit_test) {} in DefaultGlobalTestPartResultReporter()
1025 UnitTestImpl* unit_test) in DefaultPerThreadTestPartResultReporter() argument
1026 : unit_test_(unit_test) {} in DefaultPerThreadTestPartResultReporter()
3377 void OnTestIterationStart(const UnitTest& unit_test, int iteration) override;
3378 void OnEnvironmentsSetUpStart(const UnitTest& unit_test) override;
3397 void OnEnvironmentsTearDownStart(const UnitTest& unit_test) override;
3399 void OnTestIterationEnd(const UnitTest& unit_test, int iteration) override;
3403 static void PrintFailedTests(const UnitTest& unit_test);
3404 static void PrintFailedTestSuites(const UnitTest& unit_test);
[all …]
Dgtest-internal-inl.h471 explicit DefaultGlobalTestPartResultReporter(UnitTestImpl* unit_test);
490 explicit DefaultPerThreadTestPartResultReporter(UnitTestImpl* unit_test);
1141 void OnTestProgramEnd(const UnitTest& unit_test) override { in OnTestProgramEnd() argument
1144 SendLn("event=TestProgramEnd&passed=" + FormatBool(unit_test.Passed())); in OnTestProgramEnd()
1156 void OnTestIterationEnd(const UnitTest& unit_test, in OnTestIterationEnd() argument
1158 SendLn("event=TestIterationEnd&passed=" + FormatBool(unit_test.Passed()) + in OnTestIterationEnd()
1159 "&elapsed_time=" + StreamableToString(unit_test.elapsed_time()) + in OnTestIterationEnd()
/third_party/mesa3d/src/gtest/src/
Dgtest.cc705 UnitTestImpl* unit_test) : unit_test_(unit_test) {} in DefaultGlobalTestPartResultReporter() argument
714 UnitTestImpl* unit_test) : unit_test_(unit_test) {} in DefaultPerThreadTestPartResultReporter() argument
3111 void OnTestIterationStart(const UnitTest& unit_test, int iteration) override;
3112 void OnEnvironmentsSetUpStart(const UnitTest& unit_test) override;
3130 void OnEnvironmentsTearDownStart(const UnitTest& unit_test) override;
3132 void OnTestIterationEnd(const UnitTest& unit_test, int iteration) override;
3136 static void PrintFailedTests(const UnitTest& unit_test);
3137 static void PrintSkippedTests(const UnitTest& unit_test);
3142 const UnitTest& unit_test, int iteration) { in OnTestIterationStart() argument
3166 unit_test.random_seed()); in OnTestIterationStart()
[all …]
Dgtest-internal-inl.h479 explicit DefaultGlobalTestPartResultReporter(UnitTestImpl* unit_test);
495 explicit DefaultPerThreadTestPartResultReporter(UnitTestImpl* unit_test);
1134 void OnTestProgramEnd(const UnitTest& unit_test) override { in OnTestProgramEnd() argument
1137 SendLn("event=TestProgramEnd&passed=" + FormatBool(unit_test.Passed())); in OnTestProgramEnd()
1149 void OnTestIterationEnd(const UnitTest& unit_test, in OnTestIterationEnd() argument
1152 FormatBool(unit_test.Passed()) + "&elapsed_time=" + in OnTestIterationEnd()
1153 StreamableToString(unit_test.elapsed_time()) + "ms"); in OnTestIterationEnd()
/third_party/cef/tools/distrib/gtest/
Dgtest-all.cc869 explicit DefaultGlobalTestPartResultReporter(UnitTestImpl* unit_test);
885 explicit DefaultPerThreadTestPartResultReporter(UnitTestImpl* unit_test);
1532 void OnTestProgramEnd(const UnitTest& unit_test) override { in OnTestProgramEnd() argument
1535 SendLn("event=TestProgramEnd&passed=" + FormatBool(unit_test.Passed())); in OnTestProgramEnd()
1547 void OnTestIterationEnd(const UnitTest& unit_test, in OnTestIterationEnd() argument
1550 FormatBool(unit_test.Passed()) + "&elapsed_time=" + in OnTestIterationEnd()
1551 StreamableToString(unit_test.elapsed_time()) + "ms"); in OnTestIterationEnd()
2402 UnitTestImpl* unit_test) : unit_test_(unit_test) {} in DefaultGlobalTestPartResultReporter() argument
2411 UnitTestImpl* unit_test) : unit_test_(unit_test) {} in DefaultPerThreadTestPartResultReporter() argument
4848 void OnTestIterationStart(const UnitTest& unit_test, int iteration) override;
[all …]
Dgtest.h4218 UnitTest* unit_test, int skip_count);
10983 virtual void OnTestProgramStart(const UnitTest& unit_test) = 0;
10988 virtual void OnTestIterationStart(const UnitTest& unit_test,
10992 virtual void OnEnvironmentsSetUpStart(const UnitTest& unit_test) = 0;
10995 virtual void OnEnvironmentsSetUpEnd(const UnitTest& unit_test) = 0;
11025 virtual void OnEnvironmentsTearDownStart(const UnitTest& unit_test) = 0;
11028 virtual void OnEnvironmentsTearDownEnd(const UnitTest& unit_test) = 0;
11031 virtual void OnTestIterationEnd(const UnitTest& unit_test,
11035 virtual void OnTestProgramEnd(const UnitTest& unit_test) = 0;
/third_party/skia/third_party/externals/sfntly/doc/
Dunit_tests.md17 unit_test --gtest_filter=NameEditing.*
28 valgrind --leak-check=full -v ./unit_test --gtest_filter=*.*-FontData.*
Dbuild_cpp.md148 A program named `unit_test` will be generated after a full compilation.
/third_party/skia/third_party/externals/sfntly/cpp/
DCMakeLists.txt86 add_executable(unit_test target
90 target_link_libraries(unit_test sfntly icuuc tinyxml)
92 target_link_libraries(unit_test pthread)
/third_party/googletest/googletest/include/gtest/
Dgtest.h938 virtual void OnTestProgramStart(const UnitTest& unit_test) = 0;
943 virtual void OnTestIterationStart(const UnitTest& unit_test,
947 virtual void OnEnvironmentsSetUpStart(const UnitTest& unit_test) = 0;
950 virtual void OnEnvironmentsSetUpEnd(const UnitTest& unit_test) = 0;
983 virtual void OnEnvironmentsTearDownStart(const UnitTest& unit_test) = 0;
986 virtual void OnEnvironmentsTearDownEnd(const UnitTest& unit_test) = 0;
989 virtual void OnTestIterationEnd(const UnitTest& unit_test, int iteration) = 0;
992 virtual void OnTestProgramEnd(const UnitTest& unit_test) = 0;
/third_party/node/deps/googletest/include/gtest/
Dgtest.h931 virtual void OnTestProgramStart(const UnitTest& unit_test) = 0;
936 virtual void OnTestIterationStart(const UnitTest& unit_test,
940 virtual void OnEnvironmentsSetUpStart(const UnitTest& unit_test) = 0;
943 virtual void OnEnvironmentsSetUpEnd(const UnitTest& unit_test) = 0;
976 virtual void OnEnvironmentsTearDownStart(const UnitTest& unit_test) = 0;
979 virtual void OnEnvironmentsTearDownEnd(const UnitTest& unit_test) = 0;
982 virtual void OnTestIterationEnd(const UnitTest& unit_test, int iteration) = 0;
985 virtual void OnTestProgramEnd(const UnitTest& unit_test) = 0;
/third_party/mesa3d/src/gtest/include/gtest/
Dgtest.h1081 virtual void OnTestProgramStart(const UnitTest& unit_test) = 0;
1086 virtual void OnTestIterationStart(const UnitTest& unit_test,
1090 virtual void OnEnvironmentsSetUpStart(const UnitTest& unit_test) = 0;
1093 virtual void OnEnvironmentsSetUpEnd(const UnitTest& unit_test) = 0;
1123 virtual void OnEnvironmentsTearDownStart(const UnitTest& unit_test) = 0;
1126 virtual void OnEnvironmentsTearDownEnd(const UnitTest& unit_test) = 0;
1129 virtual void OnTestIterationEnd(const UnitTest& unit_test,
1133 virtual void OnTestProgramEnd(const UnitTest& unit_test) = 0;
/third_party/mesa3d/src/freedreno/decode/
Dcffdump.c132 { "unit-test", no_argument, &options.unit_test, 1 },
268 if (!options.unit_test) in handle_file()
Dcffdec.h70 int unit_test; member
/third_party/mindspore/test/
DBUILD.gn18 deps = [ "unittest:unit_test" ]
/third_party/mindspore/test/unittest/
DBUILD.gn44 group("unit_test") {
/third_party/mesa3d/src/freedreno/afuc/
Ddisasm.c896 bool unit_test = false; in main() local
915 unit_test = true; in main()
963 if (!unit_test) in main()
/third_party/googletest/docs/reference/
Dtesting.md940 `virtual void TestEventListener::OnTestProgramStart(const UnitTest& unit_test)`
946 `virtual void TestEventListener::OnTestIterationStart(const UnitTest& unit_test,
956 unit_test)`
963 unit_test)`
1003 unit_test)`
1010 unit_test)`
1016 `virtual void TestEventListener::OnTestIterationEnd(const UnitTest& unit_test,
1023 `virtual void TestEventListener::OnTestProgramEnd(const UnitTest& unit_test)`
/third_party/mesa3d/src/gallium/drivers/r300/
Dmeson.build158 'compiler/tests/unit_test.c',
/third_party/mesa3d/src/gtest/include/gtest/internal/
Dgtest-internal.h808 UnitTest* unit_test, int skip_count);