Lines Matching refs:TestInfo
451 friend class TestInfo;
517 // A TestInfo object stores the following information about a test:
525 // The constructor of TestInfo registers itself with the UnitTest
528 class TestInfo {
530 // Destructs a TestInfo object. This function is not virtual, so
531 // don't inherit from TestInfo.
532 ~TestInfo();
575 friend TestInfo* internal::MakeAndRegisterTestInfo(
594 // Constructs a TestInfo object. The newly constructed instance assumes
596 TestInfo(const char* test_case_name, const char* name,
604 GTEST_DISALLOW_COPY_AND_ASSIGN_(TestInfo);
664 const TestInfo* GetTestInfo(int i) const;
671 internal::Vector<TestInfo*>& test_info_list() { return *test_info_list_; }
674 const internal::Vector<TestInfo *> & test_info_list() const {
680 TestInfo* GetMutableTestInfo(int i);
685 // Adds a TestInfo to this test case. Will delete the TestInfo upon
687 void AddTestInfo(TestInfo * test_info);
701 static bool TestPassed(const TestInfo * test_info);
704 static bool TestFailed(const TestInfo * test_info);
707 static bool TestDisabled(const TestInfo * test_info);
710 static bool ShouldRunTest(const TestInfo *test_info);
724 const internal::scoped_ptr<internal::Vector<TestInfo*> > test_info_list_;
798 virtual void OnTestStart(const TestInfo& test_info) = 0;
804 virtual void OnTestEnd(const TestInfo& test_info) = 0;
836 virtual void OnTestStart(const TestInfo& /*test_info*/) {}
838 virtual void OnTestEnd(const TestInfo& /*test_info*/) {}
958 // Returns the TestInfo object for the test that's currently running,
960 const TestInfo* current_test_info() const;