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

Public Member Functions

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

Protected Attributes

StringPiece transcript_ {"hash"}
 
MockKeyDerivationkd_
 
std::unique_ptr< KeySchedulerks_
 

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)
 
- Protected Member Functions inherited from testing::Test
 Test ()
 
virtual void TearDown ()
 
 Test ()
 
virtual void TearDown ()
 
 Test ()
 
virtual void TearDown ()
 

Detailed Description

Definition at line 21 of file KeySchedulerTest.cpp.

Member Function Documentation

void fizz::test::KeySchedulerTest::SetUp ( )
inlineoverridevirtual

Reimplemented from testing::Test.

Definition at line 23 of file KeySchedulerTest.cpp.

References testing::_, folly::IOBuf::create(), testing::InvokeWithoutArgs(), folly::gen::move, ON_CALL, and testing::Return().

23  {
24  auto kd = std::make_unique<MockKeyDerivation>();
25  kd_ = kd.get();
26  ON_CALL(*kd_, hashLength()).WillByDefault(Return(4));
27  ON_CALL(*kd_, _expandLabel(_, _, _, _))
28  .WillByDefault(InvokeWithoutArgs([]() { return IOBuf::create(0); }));
29  ks_ = std::make_unique<KeyScheduler>(std::move(kd));
30  }
static std::unique_ptr< IOBuf > create(std::size_t capacity)
Definition: IOBuf.cpp:229
constexpr detail::Map< Move > move
Definition: Base-inl.h:2567
PolymorphicAction< internal::InvokeWithoutArgsAction< FunctionImpl > > InvokeWithoutArgs(FunctionImpl function_impl)
std::unique_ptr< KeyScheduler > ks_
#define ON_CALL(obj, call)
const internal::AnythingMatcher _
internal::ReturnAction< R > Return(R value)

Member Data Documentation

MockKeyDerivation* fizz::test::KeySchedulerTest::kd_
protected

Definition at line 34 of file KeySchedulerTest.cpp.

std::unique_ptr<KeyScheduler> fizz::test::KeySchedulerTest::ks_
protected

Definition at line 35 of file KeySchedulerTest.cpp.

StringPiece fizz::test::KeySchedulerTest::transcript_ {"hash"}
protected

Definition at line 33 of file KeySchedulerTest.cpp.


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