Home
last modified time | relevance | path

Searched refs:test_case (Results 1 – 18 of 18) sorted by relevance

/ndk/sources/third_party/googletest/googletest/test/
Dgtest-unittest-api_test.cc76 const TestCase* test_case = unit_test.GetTestCase(i); in FindTestCase() local
77 if (0 == strcmp(test_case->name(), name)) in FindTestCase()
78 return test_case; in FindTestCase()
86 static TestInfo const** const GetSortedTests(const TestCase* test_case) { in GetSortedTests() argument
88 new const TestInfo*[test_case->total_test_count()]; in GetSortedTests()
90 for (int i = 0; i < test_case->total_test_count(); ++i) in GetSortedTests()
91 tests[i] = test_case->GetTestInfo(i); in GetSortedTests()
93 std::sort(tests, tests + test_case->total_test_count(), in GetSortedTests()
148 const TestCase* test_case = UnitTestHelper::FindTestCase("ApiTest"); in TEST() local
149 ASSERT_TRUE(test_case != NULL); in TEST()
[all …]
Dgtest_shuffle_test.py123 test_case = test.split('.')[0]
124 if not test_case in test_cases:
125 test_cases.append(test_case)
248 [test_case, _] = test.split('.')
249 if test_cases and test_cases[-1] != test_case:
250 test_cases.append(test_case)
251 self.assertEqual(1, test_cases.count(test_case),
253 (test_case, tests))
Dgtest_filter_unittest.py190 test_case = ''
195 test_case = match.group(1)
200 tests_run.append(test_case + '.' + test)
Dgtest_unittest.cc1962 const TestCase* test_case = UnitTest::GetInstance()->current_test_case(); in ExpectNonFatalFailureRecordingPropertyWithReservedKeyForCurrentTestCase() local
1963 ASSERT_TRUE(test_case != NULL); in ExpectNonFatalFailureRecordingPropertyWithReservedKeyForCurrentTestCase()
1965 test_case->ad_hoc_test_result(), key); in ExpectNonFatalFailureRecordingPropertyWithReservedKeyForCurrentTestCase()
1995 const TestCase* test_case = UnitTest::GetInstance()->current_test_case(); in SetUpTestCase() local
1996 ASSERT_TRUE(test_case != NULL); in SetUpTestCase()
1998 ASSERT_EQ(1, test_case->ad_hoc_test_result().test_property_count()); in SetUpTestCase()
2000 test_case->ad_hoc_test_result().GetTestProperty(0).key()); in SetUpTestCase()
2002 test_case->ad_hoc_test_result().GetTestProperty(0).value()); in SetUpTestCase()
5186 const TestCase* const test_case = GetUnitTestImpl()-> in GetTestInfo() local
5189 for (int i = 0; i < test_case->total_test_count(); ++i) { in GetTestInfo()
[all …]
/ndk/tests/device/issue42891-boost-1_52/jni/boost/boost/test/
Dunit_test_suite_impl.hpp103 class BOOST_TEST_DECL test_case : public test_unit { class
108 test_case( const_string tc_name, callback0<> const& test_func );
115 ~test_case() {} in ~test_case()
176 virtual void visit( test_case const& ) {} in visit()
188 BOOST_TEST_DECL void traverse_test_tree( test_case const&, test_tree_visitor& );
198 traverse_test_tree( static_cast<test_case const&>( tu ), V ); in traverse_test_tree()
217 virtual void visit( test_case const& );
252 inline test_case*
255 return new test_case( ut_detail::normalize_test_case_name( tc_name ), test_func ); in make_test_case()
261 inline test_case*
[all …]
Dframework.hpp55 BOOST_TEST_DECL void register_test_unit( test_case* tc );
67 BOOST_TEST_DECL test_case const& current_test_case();
Dunit_test_monitor.hpp53 error_level execute_and_translate( test_case const& );
/ndk/sources/third_party/googletest/googletest/samples/
Dsample9_unittest.cc143 const TestCase& test_case = *unit_test.GetTestCase(i); in main() local
144 for (int j = 0; j < test_case.total_test_count(); ++j) { in main()
145 const TestInfo& test_info = *test_case.GetTestInfo(j); in main()
/ndk/sources/third_party/googletest/googletest/src/
Dgtest.cc327 static bool TestCasePassed(const TestCase* test_case) { in TestCasePassed() argument
328 return test_case->should_run() && test_case->Passed(); in TestCasePassed()
332 static bool TestCaseFailed(const TestCase* test_case) { in TestCaseFailed() argument
333 return test_case->should_run() && test_case->Failed(); in TestCaseFailed()
338 static bool ShouldRunTestCase(const TestCase* test_case) { in ShouldRunTestCase() argument
339 return test_case->should_run(); in ShouldRunTestCase()
1932 const TestCase* const test_case = impl->current_test_case(); in HasSameFixtureClass() local
1935 const TestInfo* const first_test_info = test_case->test_info_list()[0]; in HasSameFixtureClass()
2669 static void PrintTestName(const char * test_case, const char * test) { in PrintTestName() argument
2670 printf("%s.%s", test_case, test); in PrintTestName()
[all …]
Dgtest-internal-inl.h1162 void OnTestCaseStart(const TestCase& test_case) { in OnTestCaseStart() argument
1163 SendLn(std::string("event=TestCaseStart&name=") + test_case.name()); in OnTestCaseStart()
1166 void OnTestCaseEnd(const TestCase& test_case) { in OnTestCaseEnd() argument
1167 SendLn("event=TestCaseEnd&passed=" + FormatBool(test_case.Passed()) in OnTestCaseEnd()
1168 + "&elapsed_time=" + StreamableToString(test_case.elapsed_time()) in OnTestCaseEnd()
/ndk/tests/device/issue42891-boost-1_52/jni/boost/boost/test/impl/
Dunit_test_suite.ipp103 // ************** test_case ************** //
106 test_case::test_case( const_string name, callback0<> const& test_func )
190 traverse_test_tree( test_case const& tc, test_tree_visitor& V )
232 traverse_test_tree( framework::get<test_case>( id ), V );
244 test_case_counter::visit( test_case const& tc )
272 auto_test_unit_registrar::auto_test_unit_registrar( test_case* tc, counter_t exp_fail )
Dframework.ipp134 delete (test_case const*)tu_ptr;
141 void visit( test_case const& tc )
288 register_test_unit( test_case* tc )
375 test_case const&
378 return get<test_case>( s_frk_impl().m_curr_test_case );
Dunit_test_monitor.ipp60 unit_test_monitor_t::execute_and_translate( test_case const& tc )
Dresults_reporter.ipp62 void visit( test_case const& tc )
Dresults_collector.ipp170 void visit( test_case const& tc )
Dunit_test_main.ipp139 virtual void visit( test_case const& tc )
/ndk/tests/device/issue42891-boost-1_52/jni/boost/boost/test/detail/
Dfwd_decl.hpp26 class test_case;
/ndk/sources/third_party/googletest/googletest/include/gtest/
Dgtest.h832 static void ClearTestCaseResult(TestCase* test_case) { in ClearTestCaseResult() argument
833 test_case->ClearResult(); in ClearTestCaseResult()
954 virtual void OnTestCaseStart(const TestCase& test_case) = 0;
966 virtual void OnTestCaseEnd(const TestCase& test_case) = 0;