Home
last modified time | relevance | path

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

12

/third_party/googletest/googletest/samples/
Dsample9_unittest.cc61 void OnTestStart(const TestInfo& test_info) override { in OnTestStart() argument
64 test_info.test_case_name(), in OnTestStart()
65 test_info.name()); in OnTestStart()
81 void OnTestEnd(const TestInfo& test_info) override { in OnTestEnd() argument
84 test_info.test_case_name(), in OnTestEnd()
85 test_info.name()); in OnTestEnd()
141 const TestInfo& test_info = *test_suite.GetTestInfo(j); in main() local
144 if (test_info.result()->Failed() && in main()
145 strcmp(test_info.name(), "Fails") != 0) { in main()
/third_party/cef/tests/gtest/teamcity/src/
Dteamcity_gtest.cpp38 void TeamcityGoogleTestEventListener::OnTestStart(const TestInfo& test_info) { in OnTestStart() argument
39 messages.testStarted(test_info.name(), flowid); in OnTestStart()
43 void TeamcityGoogleTestEventListener::OnTestEnd(const TestInfo& test_info) { in OnTestEnd() argument
44 const TestResult* result = test_info.result(); in OnTestEnd()
71 test_info.name(), in OnTestEnd()
77 messages.testFinished(test_info.name(), static_cast<int>(result->elapsed_time()), flowid); in OnTestEnd()
/third_party/googletest/googletest/test/
Dgoogletest-failfast-unittest_.cc130 void OnTestStart(const ::testing::TestInfo& test_info) override { in OnTestStart() argument
131 printf("We are in OnTestStart of %s.%s.\n", test_info.test_suite_name(), in OnTestStart()
132 test_info.name()); in OnTestStart()
141 void OnTestEnd(const ::testing::TestInfo& test_info) override { in OnTestEnd() argument
142 printf("We are in OnTestEnd of %s.%s.\n", test_info.test_suite_name(), in OnTestEnd()
143 test_info.name()); in OnTestEnd()
Dgoogletest-param-test-test.cc782 const ::testing::TestInfo* const test_info = in TEST_P() local
785 EXPECT_STREQ("ZeroToFiveSequence/NamingTest", test_info->test_suite_name()); in TEST_P()
789 EXPECT_STREQ(index_stream.GetString().c_str(), test_info->name()); in TEST_P()
791 EXPECT_EQ(::testing::PrintToString(GetParam()), test_info->value_param()); in TEST_P()
803 const ::testing::TestInfo* const test_info = in TEST_P() local
806 EXPECT_STREQ("FortyTwo/MacroNamingTest", test_info->test_suite_name()); in TEST_P()
807 EXPECT_STREQ("FooSomeTestName/0", test_info->name()); in TEST_P()
817 const ::testing::TestInfo* const test_info = in TEST_F() local
820 EXPECT_STREQ("MacroNamingTestNonParametrized", test_info->test_suite_name()); in TEST_F()
821 EXPECT_STREQ("FooSomeTestName", test_info->name()); in TEST_F()
[all …]
Dgoogletest-shuffle-test_.cc84 void OnTestStart(const TestInfo& test_info) override { in OnTestStart() argument
85 printf("%s.%s\n", test_info.test_suite_name(), test_info.name()); in OnTestStart()
Dgtest-unittest-api_test.cc211 const TestInfo* const test_info = test_suite->GetTestInfo(0); in TEST() local
212 EXPECT_STREQ("Dummy2", test_info->name()); in TEST()
213 EXPECT_STREQ("DISABLED_Test", test_info->test_suite_name()); in TEST()
214 EXPECT_TRUE(IsNull(test_info->value_param())); in TEST()
215 EXPECT_TRUE(IsNull(test_info->type_param())); in TEST()
216 EXPECT_FALSE(test_info->should_run()); in TEST()
Dgtest_unittest.cc2017 const TestInfo* test_info = UnitTest::GetInstance()->current_test_info(); in ExpectNonFatalFailureRecordingPropertyWithReservedKeyForCurrentTest() local
2018 ASSERT_TRUE(test_info != nullptr); in ExpectNonFatalFailureRecordingPropertyWithReservedKeyForCurrentTest()
2019 ExpectNonFatalFailureRecordingPropertyWithReservedKey(*test_info->result(), in ExpectNonFatalFailureRecordingPropertyWithReservedKeyForCurrentTest()
5355 const TestInfo* const test_info = test_suite->GetTestInfo(i); in GetTestInfo() local
5356 if (strcmp(test_name, test_info->name()) == 0) in GetTestInfo()
5357 return test_info; in GetTestInfo()
5363 const TestInfo* test_info) { in GetTestResult() argument
5364 return test_info->result(); in GetTestResult()
5370 const TestInfo* const test_info = GetTestInfo("Names"); in TEST_F() local
5372 ASSERT_STREQ("TestInfoTest", test_info->test_suite_name()); in TEST_F()
[all …]
/third_party/mesa3d/src/gtest/include/gtest/
Dgtest.h797 static void ClearTestResult(TestInfo* test_info) { in ClearTestResult() argument
798 test_info->result_.Clear(); in ClearTestResult()
930 void AddTestInfo(TestInfo * test_info);
960 static bool TestPassed(const TestInfo* test_info) { in TestPassed() argument
961 return test_info->should_run() && test_info->result()->Passed(); in TestPassed()
965 static bool TestSkipped(const TestInfo* test_info) { in TestSkipped() argument
966 return test_info->should_run() && test_info->result()->Skipped(); in TestSkipped()
970 static bool TestFailed(const TestInfo* test_info) { in TestFailed() argument
971 return test_info->should_run() && test_info->result()->Failed(); in TestFailed()
976 static bool TestReportableDisabled(const TestInfo* test_info) { in TestReportableDisabled() argument
[all …]
/third_party/googletest/googletest/include/gtest/
Dgtest.h813 static void ClearTestResult(TestInfo* test_info) { in ClearTestResult() argument
814 test_info->result_.Clear(); in ClearTestResult()
948 void AddTestInfo(TestInfo * test_info);
981 static bool TestPassed(const TestInfo* test_info) { in TestPassed() argument
982 return test_info->should_run() && test_info->result()->Passed(); in TestPassed()
986 static bool TestSkipped(const TestInfo* test_info) { in TestSkipped() argument
987 return test_info->should_run() && test_info->result()->Skipped(); in TestSkipped()
991 static bool TestFailed(const TestInfo* test_info) { in TestFailed() argument
992 return test_info->should_run() && test_info->result()->Failed(); in TestFailed()
997 static bool TestReportableDisabled(const TestInfo* test_info) { in TestReportableDisabled() argument
[all …]
/third_party/googletest/googletest/src/
Dgtest.cc2761 TestInfo* const test_info = in MakeAndRegisterTestInfo() local
2764 GetUnitTestImpl()->AddTestInfo(set_up_tc, tear_down_tc, test_info); in MakeAndRegisterTestInfo()
2765 return test_info; in MakeAndRegisterTestInfo()
2806 bool operator()(const TestInfo * test_info) const { in operator ()()
2807 return test_info && test_info->name() == name_; in operator ()()
2987 void TestSuite::AddTestInfo(TestInfo* test_info) { in AddTestInfo() argument
2988 test_info_list_.push_back(test_info); in AddTestInfo()
3329 static void PrintFullTestCommentIfPresent(const TestInfo& test_info) { in PrintFullTestCommentIfPresent() argument
3330 const char* const type_param = test_info.type_param(); in PrintFullTestCommentIfPresent()
3331 const char* const value_param = test_info.value_param(); in PrintFullTestCommentIfPresent()
[all …]
Dgtest-internal-inl.h677 TestInfo* test_info) { in AddTestInfo() argument
693 GetTestSuite(test_info->test_suite_name(), test_info->type_param(), in AddTestInfo()
695 ->AddTestInfo(test_info); in AddTestInfo()
1180 void OnTestStart(const TestInfo& test_info) override { in OnTestStart() argument
1181 SendLn(std::string("event=TestStart&name=") + test_info.name()); in OnTestStart()
1184 void OnTestEnd(const TestInfo& test_info) override { in OnTestEnd() argument
1186 FormatBool((test_info.result())->Passed()) + in OnTestEnd()
1188 StreamableToString((test_info.result())->elapsed_time()) + "ms"); in OnTestEnd()
/third_party/mesa3d/src/gtest/src/
Dgtest.cc2586 TestInfo* const test_info = in MakeAndRegisterTestInfo() local
2589 GetUnitTestImpl()->AddTestInfo(set_up_tc, tear_down_tc, test_info); in MakeAndRegisterTestInfo()
2590 return test_info; in MakeAndRegisterTestInfo()
2631 bool operator()(const TestInfo * test_info) const { in operator ()()
2632 return test_info && test_info->name() == name_; in operator ()()
2789 void TestSuite::AddTestInfo(TestInfo* test_info) { in AddTestInfo() argument
2790 test_info_list_.push_back(test_info); in AddTestInfo()
3083 static void PrintFullTestCommentIfPresent(const TestInfo& test_info) { in PrintFullTestCommentIfPresent() argument
3084 const char* const type_param = test_info.type_param(); in PrintFullTestCommentIfPresent()
3085 const char* const value_param = test_info.value_param(); in PrintFullTestCommentIfPresent()
[all …]
Dgtest-internal-inl.h675 TestInfo* test_info) { in AddTestInfo() argument
689 GetTestSuite(test_info->test_suite_name(), test_info->type_param(), in AddTestInfo()
691 ->AddTestInfo(test_info); in AddTestInfo()
1170 void OnTestStart(const TestInfo& test_info) override { in OnTestStart() argument
1171 SendLn(std::string("event=TestStart&name=") + test_info.name()); in OnTestStart()
1174 void OnTestEnd(const TestInfo& test_info) override { in OnTestEnd() argument
1176 FormatBool((test_info.result())->Passed()) + in OnTestEnd()
1178 StreamableToString((test_info.result())->elapsed_time()) + "ms"); in OnTestEnd()
/third_party/mesa3d/src/gallium/tests/unit/
Du_prim_verts_test.c6 struct test_info { struct
12 struct test_info tests[] = { argument
34 struct test_info *info = &tests[i]; in main()
/third_party/flutter/engine/flutter/third_party/txt/tests/
Drender_test.cc40 const auto& test_info = in GetNextSnapshotName() local
44 stream << "snapshots/" << test_info->test_case_name() << "_" in GetNextSnapshotName()
45 << test_info->name(); in GetNextSnapshotName()
/third_party/jerryscript/tests/unit-core/
Dtest-objects-foreach.cpp145 static const jerry_object_native_info_t test_info = variable
227 jerry_set_object_native_pointer (object, &test_data, &test_info);
232 …TEST_ASSERT (jerry_objects_foreach_by_native_info (&test_info, find_test_object_by_data, &found_ob…
247 …TEST_ASSERT (!jerry_objects_foreach_by_native_info (&test_info, find_test_object_by_data, &found_o…
/third_party/cef/tools/distrib/gtest/
Dgtest-all.cc1065 TestInfo* test_info) { in AddTestInfo() argument
1081 GetTestSuite(test_info->test_suite_name(), test_info->type_param(), in AddTestInfo()
1083 ->AddTestInfo(test_info); in AddTestInfo()
1568 void OnTestStart(const TestInfo& test_info) override { in OnTestStart() argument
1569 SendLn(std::string("event=TestStart&name=") + test_info.name()); in OnTestStart()
1572 void OnTestEnd(const TestInfo& test_info) override { in OnTestEnd() argument
1574 FormatBool((test_info.result())->Passed()) + in OnTestEnd()
1576 StreamableToString((test_info.result())->elapsed_time()) + "ms"); in OnTestEnd()
4252 TestInfo* const test_info = in MakeAndRegisterTestInfo() local
4255 GetUnitTestImpl()->AddTestInfo(set_up_tc, tear_down_tc, test_info); in MakeAndRegisterTestInfo()
[all …]
/third_party/cef/tests/gtest/teamcity/include/
Dteamcity_gtest.h36 virtual void OnTestStart(const ::testing::TestInfo& test_info);
38 virtual void OnTestEnd(const ::testing::TestInfo& test_info);
/third_party/skia/tests/
DCodecTest.cpp97 static void test_info(skiatest::Reporter* r, Codec* codec, const SkImageInfo& info, in test_info() function
211 test_info(r, codec, info565, expectedResult, &digest565); in test_codec()
220 test_info(r, codec, info565, SkCodec::kInvalidConversion, nullptr); in test_codec()
238 test_info(r, codec, grayInfo, expectedResult, &grayDigest); in test_codec()
246 test_info(r, codec, info, expectedResult, digest); in test_codec()
251 test_info(r, codec, info.makeAlphaType(kUnpremul_SkAlphaType), in test_codec()
253 test_info(r, codec, info.makeAlphaType(kPremul_SkAlphaType), in test_codec()
257 test_info(r, codec, info.makeAlphaType(kOpaque_SkAlphaType), in test_codec()
266 test_info(r, codec, info.makeAlphaType(otherAt), expectedResult, nullptr); in test_codec()
467 test_info(r, codec.get(), info, SkCodec::kSuccess, &codecDigest); in check_codec_image_generator()
[all …]
/third_party/flutter/skia/tests/
DCodecTest.cpp93 static void test_info(skiatest::Reporter* r, Codec* codec, const SkImageInfo& info, in test_info() function
207 test_info(r, codec, info565, expectedResult, &digest565); in test_codec()
216 test_info(r, codec, info565, SkCodec::kInvalidConversion, nullptr); in test_codec()
234 test_info(r, codec, grayInfo, expectedResult, &grayDigest); in test_codec()
242 test_info(r, codec, info, expectedResult, digest); in test_codec()
247 test_info(r, codec, info.makeAlphaType(kUnpremul_SkAlphaType), in test_codec()
249 test_info(r, codec, info.makeAlphaType(kPremul_SkAlphaType), in test_codec()
253 test_info(r, codec, info.makeAlphaType(kOpaque_SkAlphaType), in test_codec()
262 test_info(r, codec, info.makeAlphaType(otherAt), expectedResult, nullptr); in test_codec()
467 test_info(r, codec.get(), info, SkCodec::kSuccess, &codecDigest); in check()
[all …]
/third_party/ltp/testcases/kernel/syscalls/ipc/semctl/
Dsemctl09.c72 static void test_info(void) in test_info() function
188 test_info(); in setup()
/third_party/googletest/googletest/include/gtest/internal/
Dgtest-param-util.h548 std::shared_ptr<TestInfo> test_info = *test_it; in RegisterTests() local
561 test_suite_name += test_info->test_suite_base_name; in RegisterTests()
586 if (!test_info->test_base_name.empty()) { in RegisterTests()
587 test_name_stream << test_info->test_base_name << "/"; in RegisterTests()
593 PrintToString(*param_it).c_str(), test_info->code_location, in RegisterTests()
597 test_info->test_meta_factory->CreateTestFactory(*param_it)); in RegisterTests()
/third_party/libevdev/test/
Dtest-context.c9 START_TEST(test_info) in START_TEST() argument
153 add_test(s, test_info); in TEST_SUITE()
/third_party/mesa3d/src/gtest/include/gtest/internal/
Dgtest-param-util.h532 std::shared_ptr<TestInfo> test_info = *test_it; in RegisterTests() local
545 test_suite_name += test_info->test_suite_base_name; in RegisterTests()
568 if (!test_info->test_base_name.empty()) { in RegisterTests()
569 test_name_stream << test_info->test_base_name << "/"; in RegisterTests()
579 test_info->test_meta_factory->CreateTestFactory(*param_it)); in RegisterTests()
/third_party/googletest/googlemock/src/
Dgmock-spec-builders.cc811 const TestInfo* const test_info = in RegisterUseByOnCallOrExpectCall() local
813 if (test_info != nullptr) { in RegisterUseByOnCallOrExpectCall()
814 state.first_used_test_suite = test_info->test_suite_name(); in RegisterUseByOnCallOrExpectCall()
815 state.first_used_test = test_info->name(); in RegisterUseByOnCallOrExpectCall()

12