12 #include <gmock/gmock.h> 34 std::unique_ptr<folly::IOBuf>(
35 std::unique_ptr<folly::IOBuf>& plaintext,
39 std::unique_ptr<folly::IOBuf>&& plaintext,
42 return _encrypt(plaintext, associatedData, seqNum);
47 std::unique_ptr<folly::IOBuf>(
48 std::unique_ptr<folly::IOBuf>& ciphertext,
52 std::unique_ptr<folly::IOBuf>&& ciphertext,
55 return _decrypt(ciphertext, associatedData, seqNum);
61 std::unique_ptr<folly::IOBuf>& ciphertext,
65 std::unique_ptr<folly::IOBuf>&& ciphertext,
68 return _tryDecrypt(ciphertext, associatedData, seqNum);
std::unique_ptr< folly::IOBuf > decrypt(std::unique_ptr< folly::IOBuf > &&ciphertext, const folly::IOBuf *associatedData, uint64_t seqNum) const override
folly::Optional< std::unique_ptr< folly::IOBuf > > tryDecrypt(std::unique_ptr< folly::IOBuf > &&ciphertext, const folly::IOBuf *associatedData, uint64_t seqNum) const override
PolymorphicAction< internal::InvokeWithoutArgsAction< FunctionImpl > > InvokeWithoutArgs(FunctionImpl function_impl)
#define MOCK_CONST_METHOD3(m,...)
std::unique_ptr< folly::IOBuf > encrypt(std::unique_ptr< folly::IOBuf > &&plaintext, const folly::IOBuf *associatedData, uint64_t seqNum) const override
#define ON_CALL(obj, call)
#define MOCK_METHOD1(m,...)
#define MOCK_CONST_METHOD0(m,...)
const internal::AnythingMatcher _
static std::unique_ptr< IOBuf > copyBuffer(const void *buf, std::size_t size, std::size_t headroom=0, std::size_t minTailroom=0)
void setKey(TrafficKey key) override