proxygen
CommonTest< T > Class Template Reference
Inheritance diagram for CommonTest< T >:
testing::Test testing::Test testing::Test

Static Public Member Functions

static void SetUpTestCase ()
 
static void TearDownTestCase ()
 
static void SetUpTestCase ()
 
static void TearDownTestCase ()
 
static void SetUpTestCase ()
 
static void TearDownTestCase ()
 
- 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 Types

typedef std::vector< TVector
 
typedef std::set< int > IntSet
 
typedef std::vector< TVector
 
typedef std::set< int > IntSet
 
typedef std::vector< TVector
 
typedef std::set< int > IntSet
 

Protected Member Functions

 CommonTest ()
 
virtual ~CommonTest ()
 
virtual void SetUp ()
 
virtual void TearDown ()
 
 CommonTest ()
 
virtual ~CommonTest ()
 
virtual void SetUp ()
 
virtual void TearDown ()
 
 CommonTest ()
 
virtual ~CommonTest ()
 
virtual void SetUp ()
 
virtual void TearDown ()
 
- Protected Member Functions inherited from testing::Test
 Test ()
 
 Test ()
 
 Test ()
 

Protected Attributes

T value_
 

Static Protected Attributes

static Tshared_ = NULL
 

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 ()
 

Detailed Description

template<typename T>
class CommonTest< T >

Definition at line 45 of file gtest-typed-test_test.cc.

Member Typedef Documentation

template<typename T >
typedef std::set<int> CommonTest< T >::IntSet
protected

Definition at line 64 of file gtest-typed-test_test.cc.

template<typename T >
typedef std::set<int> CommonTest< T >::IntSet
protected

Definition at line 64 of file gtest-typed-test_test.cc.

template<typename T >
typedef std::set<int> CommonTest< T >::IntSet
protected

Definition at line 64 of file gtest-typed-test_test.cc.

template<typename T >
typedef std::vector<T> CommonTest< T >::Vector
protected

Definition at line 63 of file gtest-typed-test_test.cc.

template<typename T >
typedef std::vector<T> CommonTest< T >::Vector
protected

Definition at line 63 of file gtest-typed-test_test.cc.

template<typename T >
typedef std::vector<T> CommonTest< T >::Vector
protected

Definition at line 63 of file gtest-typed-test_test.cc.

Constructor & Destructor Documentation

template<typename T >
CommonTest< T >::CommonTest ( )
inlineprotected

Definition at line 66 of file gtest-typed-test_test.cc.

66 : value_(1) {}
template<typename T >
virtual CommonTest< T >::~CommonTest ( )
inlineprotectedvirtual

Definition at line 68 of file gtest-typed-test_test.cc.

References EXPECT_EQ, and CommonTest< T >::value_.

68 { EXPECT_EQ(3, value_); }
#define EXPECT_EQ(val1, val2)
Definition: gtest.h:1922
template<typename T >
CommonTest< T >::CommonTest ( )
inlineprotected

Definition at line 66 of file gtest-typed-test_test.cc.

66 : value_(1) {}
template<typename T >
virtual CommonTest< T >::~CommonTest ( )
inlineprotectedvirtual

Definition at line 68 of file gtest-typed-test_test.cc.

References EXPECT_EQ, and CommonTest< T >::value_.

68 { EXPECT_EQ(3, value_); }
#define EXPECT_EQ(val1, val2)
Definition: gtest.h:1922
template<typename T >
CommonTest< T >::CommonTest ( )
inlineprotected

Definition at line 66 of file gtest-typed-test_test.cc.

66 : value_(1) {}
template<typename T >
virtual CommonTest< T >::~CommonTest ( )
inlineprotectedvirtual

Definition at line 68 of file gtest-typed-test_test.cc.

References EXPECT_EQ, and CommonTest< T >::value_.

68 { EXPECT_EQ(3, value_); }
#define EXPECT_EQ(val1, val2)
Definition: gtest.h:1922

Member Function Documentation

template<typename T >
virtual void CommonTest< T >::SetUp ( )
inlineprotectedvirtual

Reimplemented from testing::Test.

Definition at line 70 of file gtest-typed-test_test.cc.

References EXPECT_EQ, and CommonTest< T >::value_.

Referenced by CommonTest< T >::TearDown().

70  {
71  EXPECT_EQ(1, value_);
72  value_++;
73  }
#define EXPECT_EQ(val1, val2)
Definition: gtest.h:1922
template<typename T >
virtual void CommonTest< T >::SetUp ( )
inlineprotectedvirtual

Reimplemented from testing::Test.

Definition at line 70 of file gtest-typed-test_test.cc.

References EXPECT_EQ, and CommonTest< T >::value_.

70  {
71  EXPECT_EQ(1, value_);
72  value_++;
73  }
#define EXPECT_EQ(val1, val2)
Definition: gtest.h:1922
template<typename T >
virtual void CommonTest< T >::SetUp ( )
inlineprotectedvirtual

Reimplemented from testing::Test.

Definition at line 70 of file gtest-typed-test_test.cc.

References EXPECT_EQ, and CommonTest< T >::value_.

70  {
71  EXPECT_EQ(1, value_);
72  value_++;
73  }
#define EXPECT_EQ(val1, val2)
Definition: gtest.h:1922
template<typename T >
static void CommonTest< T >::SetUpTestCase ( )
inlinestatic

Definition at line 49 of file gtest-typed-test_test.cc.

References CommonTest< T >::shared_, and T.

49  {
50  shared_ = new T(5);
51  }
#define T(v)
Definition: http_parser.c:233
template<typename T >
static void CommonTest< T >::SetUpTestCase ( )
inlinestatic

Definition at line 49 of file gtest-typed-test_test.cc.

References CommonTest< T >::shared_, and T.

49  {
50  shared_ = new T(5);
51  }
#define T(v)
Definition: http_parser.c:233
template<typename T >
static void CommonTest< T >::SetUpTestCase ( )
inlinestatic

Definition at line 49 of file gtest-typed-test_test.cc.

References CommonTest< T >::shared_, and T.

49  {
50  shared_ = new T(5);
51  }
#define T(v)
Definition: http_parser.c:233
template<typename T >
virtual void CommonTest< T >::TearDown ( )
inlineprotectedvirtual

Reimplemented from testing::Test.

Definition at line 75 of file gtest-typed-test_test.cc.

References EXPECT_EQ, and CommonTest< T >::value_.

75  {
76  EXPECT_EQ(2, value_);
77  value_++;
78  }
#define EXPECT_EQ(val1, val2)
Definition: gtest.h:1922
template<typename T >
static void CommonTest< T >::TearDownTestCase ( )
inlinestatic

Definition at line 53 of file gtest-typed-test_test.cc.

References CommonTest< T >::shared_.

53  {
54  delete shared_;
55  shared_ = NULL;
56  }
template<typename T >
static void CommonTest< T >::TearDownTestCase ( )
inlinestatic

Definition at line 53 of file gtest-typed-test_test.cc.

References CommonTest< T >::shared_.

53  {
54  delete shared_;
55  shared_ = NULL;
56  }
template<typename T >
static void CommonTest< T >::TearDownTestCase ( )
inlinestatic

Definition at line 53 of file gtest-typed-test_test.cc.

References CommonTest< T >::shared_.

53  {
54  delete shared_;
55  shared_ = NULL;
56  }

Member Data Documentation

template<typename T >
T * CommonTest< T >::shared_ = NULL
staticprotected
template<typename T >
T CommonTest< T >::value_
protected

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