proxygen
fizz::test::CertDecompressionManagerTest Class Reference
Inheritance diagram for fizz::test::CertDecompressionManagerTest:
testing::Test

Public Member Functions

void SetUp () override
 
void TearDown () override
 
- Public Member Functions inherited from testing::Test
virtual ~Test ()
 
virtual ~Test ()
 
virtual ~Test ()
 

Protected Member Functions

CertificateCompressionAlgorithm toAlgo (uint16_t n)
 
std::shared_ptr< MockCertificateDecompressormakeMockDecompressor (uint16_t n)
 
- Protected Member Functions inherited from testing::Test
 Test ()
 
 Test ()
 
 Test ()
 

Protected Attributes

std::unique_ptr< CertDecompressionManagermanager_
 

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

Detailed Description

Definition at line 20 of file CertDecompressionManagerTest.cpp.

Member Function Documentation

std::shared_ptr<MockCertificateDecompressor> fizz::test::CertDecompressionManagerTest::makeMockDecompressor ( uint16_t  n)
inlineprotected

Definition at line 33 of file CertDecompressionManagerTest.cpp.

References EXPECT_CALL, and testing::Return().

34  {
35  auto comp = std::make_shared<MockCertificateDecompressor>();
36  EXPECT_CALL(*comp, getAlgorithm()).WillOnce(Return(toAlgo(n)));
37  return comp;
38  }
CertificateCompressionAlgorithm toAlgo(uint16_t n)
#define EXPECT_CALL(obj, call)
internal::ReturnAction< R > Return(R value)
void fizz::test::CertDecompressionManagerTest::SetUp ( )
inlineoverridevirtual

Reimplemented from testing::Test.

Definition at line 22 of file CertDecompressionManagerTest.cpp.

22  {
23  manager_ = std::make_unique<CertDecompressionManager>();
24  }
std::unique_ptr< CertDecompressionManager > manager_
void fizz::test::CertDecompressionManagerTest::TearDown ( )
inlineoverridevirtual

Reimplemented from testing::Test.

Definition at line 26 of file CertDecompressionManagerTest.cpp.

26 {}
CertificateCompressionAlgorithm fizz::test::CertDecompressionManagerTest::toAlgo ( uint16_t  n)
inlineprotected

Definition at line 29 of file CertDecompressionManagerTest.cpp.

29  {
30  return static_cast<CertificateCompressionAlgorithm>(n);
31  }
CertificateCompressionAlgorithm
Definition: Types.h:167

Member Data Documentation

std::unique_ptr<CertDecompressionManager> fizz::test::CertDecompressionManagerTest::manager_
protected

Definition at line 40 of file CertDecompressionManagerTest.cpp.


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