Lines Matching defs:TestCase

335 static int SumOverTestCaseList(const std::vector<TestCase*>& case_list,
336 int (TestCase::*method)() const) {
345 static bool TestCasePassed(const TestCase* test_case) {
350 static bool TestCaseFailed(const TestCase* test_case) {
356 static bool ShouldRunTestCase(const TestCase* test_case) {
752 return SumOverTestCaseList(test_cases_, &TestCase::successful_test_count);
757 return SumOverTestCaseList(test_cases_, &TestCase::failed_test_count);
763 &TestCase::reportable_disabled_test_count);
768 return SumOverTestCaseList(test_cases_, &TestCase::disabled_test_count);
773 return SumOverTestCaseList(test_cases_, &TestCase::reportable_test_count);
778 return SumOverTestCaseList(test_cases_, &TestCase::total_test_count);
783 return SumOverTestCaseList(test_cases_, &TestCase::test_to_run_count);
2271 const TestCase* const test_case = impl->current_test_case();
2588 // This is used for implementation of the TestCase class only. We put
2674 // class TestCase
2677 int TestCase::successful_test_count() const {
2682 int TestCase::failed_test_count() const {
2687 int TestCase::reportable_disabled_test_count() const {
2692 int TestCase::disabled_test_count() const {
2697 int TestCase::reportable_test_count() const {
2702 int TestCase::test_to_run_count() const {
2707 int TestCase::total_test_count() const {
2711 // Creates a TestCase with the given name.
2720 TestCase::TestCase(const char* a_name, const char* a_type_param,
2731 // Destructor of TestCase.
2732 TestCase::~TestCase() {
2739 const TestInfo* TestCase::GetTestInfo(int i) const {
2746 TestInfo* TestCase::GetMutableTestInfo(int i) {
2752 // destruction of the TestCase object.
2753 void TestCase::AddTestInfo(TestInfo * test_info) {
2758 // Runs every test in this TestCase.
2759 void TestCase::Run() {
2770 this, &TestCase::RunSetUpTestCase, "SetUpTestCase()");
2780 this, &TestCase::RunTearDownTestCase, "TearDownTestCase()");
2787 void TestCase::ClearResult() {
2793 void TestCase::ShuffleTests(internal::Random* random) {
2798 void TestCase::UnshuffleTests() {
3041 virtual void OnTestCaseStart(const TestCase& test_case);
3045 virtual void OnTestCaseEnd(const TestCase& test_case);
3098 void PrettyUnitTestResultPrinter::OnTestCaseStart(const TestCase& test_case) {
3149 void PrettyUnitTestResultPrinter::OnTestCaseEnd(const TestCase& test_case) {
3176 const TestCase& test_case = *unit_test.GetTestCase(i);
3252 virtual void OnTestCaseStart(const TestCase& test_case);
3256 virtual void OnTestCaseEnd(const TestCase& test_case);
3315 GTEST_REPEATER_METHOD_(OnTestCaseStart, TestCase)
3322 GTEST_REVERSE_REPEATER_METHOD_(OnTestCaseEnd, TestCase)
3401 // Prints an XML representation of a TestCase object
3403 const TestCase& test_case);
3539 // <testsuite name="testcase-name"> <-- corresponds to a TestCase object
3674 // Prints an XML representation of a TestCase object
3676 const TestCase& test_case) {
4063 const TestCase* UnitTest::GetTestCase(int i) const {
4075 TestCase* UnitTest::GetMutableTestCase(int i) {
4171 // inside a test, to current TestCase's ad_hoc_test_result_ when invoked
4269 // Returns the TestCase object for the test that's currently running,
4271 const TestCase* UnitTest::current_test_case() const
4358 // Deletes every TestCase.
4359 ForEach(test_cases_, internal::Delete<TestCase>);
4467 // A predicate that checks the name of a TestCase against a known
4482 bool operator()(const TestCase* test_case) const {
4490 // Finds and returns a TestCase with the given name. If one doesn't
4502 TestCase* UnitTestImpl::GetTestCase(const char* test_case_name,
4506 // Can we find a TestCase with the given name?
4507 const std::vector<TestCase*>::const_iterator test_case =
4515 TestCase* const new_test_case =
4516 new TestCase(test_case_name, type_param, set_up_tc, tear_down_tc);
4784 // each TestCase and TestInfo object.
4802 TestCase* const test_case = test_cases_[i];
4870 const TestCase* const test_case = test_cases_[i];