proxygen
fizz::server::test::CertManagerTest Class Reference
Inheritance diagram for fizz::server::test::CertManagerTest:
testing::Test

Protected Member Functions

std::shared_ptr< MockSelfCertgetCert (std::string identity, std::vector< std::string > alts, std::vector< SignatureScheme > schemes)
 
- 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 ()
 

Protected Attributes

CertManager manager_
 

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)
 

Detailed Description

Definition at line 26 of file CertManagerTest.cpp.

Member Function Documentation

std::shared_ptr<MockSelfCert> fizz::server::test::CertManagerTest::getCert ( std::string  identity,
std::vector< std::string alts,
std::vector< SignatureScheme schemes 
)
inlineprotected

Definition at line 28 of file CertManagerTest.cpp.

References ON_CALL, and testing::Return().

31  {
32  auto cert = std::make_shared<MockSelfCert>();
33  ON_CALL(*cert, getIdentity()).WillByDefault(Return(identity));
34  ON_CALL(*cert, getAltIdentities()).WillByDefault(Return(alts));
35  ON_CALL(*cert, getSigSchemes()).WillByDefault(Return(schemes));
36  return cert;
37  }
#define ON_CALL(obj, call)
internal::ReturnAction< R > Return(R value)

Member Data Documentation

CertManager fizz::server::test::CertManagerTest::manager_
protected

Definition at line 39 of file CertManagerTest.cpp.


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