proxygen
testing::TestInfoTest Class Reference
Inheritance diagram for testing::TestInfoTest:
testing::Test testing::Test testing::Test

Static Protected Member Functions

static const TestInfoGetTestInfo (const char *test_name)
 
static const TestResultGetTestResult (const TestInfo *test_info)
 
static const TestInfoGetTestInfo (const char *test_name)
 
static const TestResultGetTestResult (const TestInfo *test_info)
 
static const TestInfoGetTestInfo (const char *test_name)
 
static const TestResultGetTestResult (const TestInfo *test_info)
 

Additional Inherited Members

- Public Types inherited from testing::Test
typedef internal::SetUpTestCaseFunc SetUpTestCaseFunc
 
typedef internal::TearDownTestCaseFunc TearDownTestCaseFunc
 
typedef internal::SetUpTestCaseFunc SetUpTestCaseFunc
 
typedef internal::TearDownTestCaseFunc TearDownTestCaseFunc
 
typedef internal::SetUpTestCaseFunc SetUpTestCaseFunc
 
typedef internal::TearDownTestCaseFunc TearDownTestCaseFunc
 
- Public Member Functions inherited from testing::Test
virtual ~Test ()
 
virtual ~Test ()
 
virtual ~Test ()
 
- Static Public Member Functions inherited from testing::Test
static void SetUpTestCase ()
 
static void TearDownTestCase ()
 
static bool HasFatalFailure ()
 
static bool HasNonfatalFailure ()
 
static bool HasFailure ()
 
static void RecordProperty (const std::string &key, const std::string &value)
 
static void RecordProperty (const std::string &key, int value)
 
static void SetUpTestCase ()
 
static void TearDownTestCase ()
 
static bool HasFatalFailure ()
 
static bool HasNonfatalFailure ()
 
static bool HasFailure ()
 
static void RecordProperty (const std::string &key, const std::string &value)
 
static void RecordProperty (const std::string &key, int value)
 
static void SetUpTestCase ()
 
static void TearDownTestCase ()
 
static bool HasFatalFailure ()
 
static bool HasNonfatalFailure ()
 
static bool HasFailure ()
 
static void RecordProperty (const std::string &key, const std::string &value)
 
static void RecordProperty (const std::string &key, int value)
 
- Protected Member Functions inherited from testing::Test
 Test ()
 
virtual void SetUp ()
 
virtual void TearDown ()
 
 Test ()
 
virtual void SetUp ()
 
virtual void TearDown ()
 
 Test ()
 
virtual void SetUp ()
 
virtual void TearDown ()
 

Detailed Description

Definition at line 5298 of file gtest_unittest.cc.

Member Function Documentation

static const TestInfo* testing::TestInfoTest::GetTestInfo ( const char *  test_name)
inlinestaticprotected

Definition at line 5300 of file gtest_unittest.cc.

References testing::TestCase::GetTestInfo(), testing::internal::GetUnitTestImpl(), i, testing::TestInfo::name(), and testing::TestCase::total_test_count().

5300  {
5301  const TestCase* const test_case = GetUnitTestImpl()->
5302  GetTestCase("TestInfoTest", "", NULL, NULL);
5303 
5304  for (int i = 0; i < test_case->total_test_count(); ++i) {
5305  const TestInfo* const test_info = test_case->GetTestInfo(i);
5306  if (strcmp(test_name, test_info->name()) == 0)
5307  return test_info;
5308  }
5309  return NULL;
5310  }
class UnitTestImpl * GetUnitTestImpl()
const TestInfo * GetTestInfo(int i) const
Definition: gtest.cc:2739
int total_test_count() const
Definition: gtest.cc:2707
const char * name() const
Definition: gtest.h:654
static const TestInfo* testing::TestInfoTest::GetTestInfo ( const char *  test_name)
inlinestaticprotected

Definition at line 5300 of file gtest_unittest.cc.

References testing::TestCase::GetTestInfo(), testing::internal::GetUnitTestImpl(), i, testing::TestInfo::name(), and testing::TestCase::total_test_count().

5300  {
5301  const TestCase* const test_case = GetUnitTestImpl()->
5302  GetTestCase("TestInfoTest", "", NULL, NULL);
5303 
5304  for (int i = 0; i < test_case->total_test_count(); ++i) {
5305  const TestInfo* const test_info = test_case->GetTestInfo(i);
5306  if (strcmp(test_name, test_info->name()) == 0)
5307  return test_info;
5308  }
5309  return NULL;
5310  }
class UnitTestImpl * GetUnitTestImpl()
const TestInfo * GetTestInfo(int i) const
Definition: gtest.cc:2739
int total_test_count() const
Definition: gtest.cc:2707
const char * name() const
Definition: gtest.h:654
static const TestInfo* testing::TestInfoTest::GetTestInfo ( const char *  test_name)
inlinestaticprotected

Definition at line 5300 of file gtest_unittest.cc.

References testing::TestCase::GetTestInfo(), testing::internal::GetUnitTestImpl(), i, testing::TestInfo::name(), and testing::TestCase::total_test_count().

5300  {
5301  const TestCase* const test_case = GetUnitTestImpl()->
5302  GetTestCase("TestInfoTest", "", NULL, NULL);
5303 
5304  for (int i = 0; i < test_case->total_test_count(); ++i) {
5305  const TestInfo* const test_info = test_case->GetTestInfo(i);
5306  if (strcmp(test_name, test_info->name()) == 0)
5307  return test_info;
5308  }
5309  return NULL;
5310  }
class UnitTestImpl * GetUnitTestImpl()
const TestInfo * GetTestInfo(int i) const
Definition: gtest.cc:2739
int total_test_count() const
Definition: gtest.cc:2707
const char * name() const
Definition: gtest.h:654
static const TestResult* testing::TestInfoTest::GetTestResult ( const TestInfo test_info)
inlinestaticprotected

Definition at line 5312 of file gtest_unittest.cc.

References ASSERT_EQ, ASSERT_STREQ, testing::TestInfo::name(), testing::TestInfo::result(), testing::TestInfo::test_case_name(), and testing::internal::TEST_F().

5313  {
5314  return test_info->result();
5315  }
const TestResult * result() const
Definition: gtest.h:705
static const TestResult* testing::TestInfoTest::GetTestResult ( const TestInfo test_info)
inlinestaticprotected

Definition at line 5312 of file gtest_unittest.cc.

References testing::TestInfo::result().

5313  {
5314  return test_info->result();
5315  }
const TestResult * result() const
Definition: gtest.h:705
static const TestResult* testing::TestInfoTest::GetTestResult ( const TestInfo test_info)
inlinestaticprotected

Definition at line 5312 of file gtest_unittest.cc.

References ASSERT_EQ, ASSERT_STREQ, testing::TestInfo::name(), testing::TestInfo::result(), testing::TestInfo::test_case_name(), and testing::internal::TEST_F().

5313  {
5314  return test_info->result();
5315  }
const TestResult * result() const
Definition: gtest.h:705

The documentation for this class was generated from the following file: