Searched refs:test_info (Results 1 – 9 of 9) sorted by relevance
/ndk/sources/third_party/googletest/googletest/samples/ |
D | sample9_unittest.cc | 64 virtual void OnTestStart(const TestInfo& test_info) { in OnTestStart() argument 67 test_info.test_case_name(), in OnTestStart() 68 test_info.name()); in OnTestStart() 84 virtual void OnTestEnd(const TestInfo& test_info) { in OnTestEnd() argument 87 test_info.test_case_name(), in OnTestEnd() 88 test_info.name()); in OnTestEnd() 145 const TestInfo& test_info = *test_case.GetTestInfo(j); in main() local 148 if (test_info.result()->Failed() && in main() 149 strcmp(test_info.name(), "Fails") != 0) { in main()
|
/ndk/sources/third_party/googletest/googletest/test/ |
D | gtest_shuffle_test_.cc | 86 virtual void OnTestStart(const TestInfo& test_info) { in OnTestStart() argument 87 printf("%s.%s\n", test_info.test_case_name(), test_info.name()); in OnTestStart()
|
D | gtest-unittest-api_test.cc | 221 const TestInfo* const test_info = test_case->GetTestInfo(0); in TEST() local 222 EXPECT_STREQ("Dummy2", test_info->name()); in TEST() 223 EXPECT_STREQ("DISABLED_Test", test_info->test_case_name()); in TEST() 224 EXPECT_TRUE(IsNull(test_info->value_param())); in TEST() 225 EXPECT_TRUE(IsNull(test_info->type_param())); in TEST() 226 EXPECT_FALSE(test_info->should_run()); in TEST()
|
D | gtest-param-test_test.cc | 798 const ::testing::TestInfo* const test_info = in TEST_P() local 801 EXPECT_STREQ("ZeroToFiveSequence/NamingTest", test_info->test_case_name()); in TEST_P() 805 EXPECT_STREQ(index_stream.GetString().c_str(), test_info->name()); in TEST_P() 807 EXPECT_EQ(::testing::PrintToString(GetParam()), test_info->value_param()); in TEST_P() 827 const ::testing::TestInfo* const test_info = in TEST_P() local 830 EXPECT_EQ(::testing::PrintToString(GetParam()), test_info->value_param()); in TEST_P()
|
D | gtest_unittest.cc | 1954 const TestInfo* test_info = UnitTest::GetInstance()->current_test_info(); in ExpectNonFatalFailureRecordingPropertyWithReservedKeyForCurrentTest() local 1955 ASSERT_TRUE(test_info != NULL); in ExpectNonFatalFailureRecordingPropertyWithReservedKeyForCurrentTest() 1956 ExpectNonFatalFailureRecordingPropertyWithReservedKey(*test_info->result(), in ExpectNonFatalFailureRecordingPropertyWithReservedKeyForCurrentTest() 5190 const TestInfo* const test_info = test_case->GetTestInfo(i); in GetTestInfo() local 5191 if (strcmp(test_name, test_info->name()) == 0) in GetTestInfo() 5192 return test_info; in GetTestInfo() 5198 const TestInfo* test_info) { in GetTestResult() argument 5199 return test_info->result(); in GetTestResult() 5205 const TestInfo* const test_info = GetTestInfo("Names"); in TEST_F() local 5207 ASSERT_STREQ("TestInfoTest", test_info->test_case_name()); in TEST_F() [all …]
|
/ndk/sources/third_party/googletest/googletest/src/ |
D | gtest.cc | 2210 TestInfo* const test_info = in MakeAndRegisterTestInfo() local 2213 GetUnitTestImpl()->AddTestInfo(set_up_tc, tear_down_tc, test_info); in MakeAndRegisterTestInfo() 2214 return test_info; in MakeAndRegisterTestInfo() 2257 bool operator()(const TestInfo * test_info) const { in operator ()() 2258 return test_info && test_info->name() == name_; in operator ()() 2397 void TestCase::AddTestInfo(TestInfo * test_info) { in AddTestInfo() argument 2398 test_info_list_.push_back(test_info); in AddTestInfo() 2646 void PrintFullTestCommentIfPresent(const TestInfo& test_info) { in PrintFullTestCommentIfPresent() argument 2647 const char* const type_param = test_info.type_param(); in PrintFullTestCommentIfPresent() 2648 const char* const value_param = test_info.value_param(); in PrintFullTestCommentIfPresent() [all …]
|
D | gtest-internal-inl.h | 650 TestInfo* test_info) { in AddTestInfo() argument 664 GetTestCase(test_info->test_case_name(), in AddTestInfo() 665 test_info->type_param(), in AddTestInfo() 667 tear_down_tc)->AddTestInfo(test_info); in AddTestInfo() 1172 void OnTestStart(const TestInfo& test_info) { in OnTestStart() argument 1173 SendLn(std::string("event=TestStart&name=") + test_info.name()); in OnTestStart() 1176 void OnTestEnd(const TestInfo& test_info) { in OnTestEnd() argument 1178 FormatBool((test_info.result())->Passed()) + in OnTestEnd() 1180 StreamableToString((test_info.result())->elapsed_time()) + "ms"); in OnTestEnd()
|
/ndk/sources/third_party/googletest/googletest/include/gtest/ |
D | gtest.h | 707 static void ClearTestResult(TestInfo* test_info) { in ClearTestResult() argument 708 test_info->result_.Clear(); in ClearTestResult() 826 void AddTestInfo(TestInfo * test_info); 848 static bool TestPassed(const TestInfo* test_info) { in TestPassed() argument 849 return test_info->should_run() && test_info->result()->Passed(); in TestPassed() 853 static bool TestFailed(const TestInfo* test_info) { in TestFailed() argument 854 return test_info->should_run() && test_info->result()->Failed(); in TestFailed() 858 static bool TestDisabled(const TestInfo* test_info) { in TestDisabled() argument 859 return test_info->is_disabled_; in TestDisabled() 863 static bool ShouldRunTest(const TestInfo* test_info) { in ShouldRunTest() argument [all …]
|
/ndk/sources/third_party/googletest/googletest/include/gtest/internal/ |
D | gtest-param-util.h | 490 linked_ptr<TestInfo> test_info = *test_it; in RegisterTests() local 500 test_case_name += test_info->test_case_base_name; in RegisterTests() 507 test_name_stream << test_info->test_base_name << "/" << i; in RegisterTests() 516 test_info->test_meta_factory->CreateTestFactory(*param_it)); in RegisterTests()
|