9 #include <gmock/gmock.h> 10 #include <gtest/gtest.h> 19 TEST(DualCipherTest, Encryption) {
20 auto cipher = std::make_unique<MockTicketCipher>();
21 auto fallbackCipher = std::make_unique<MockTicketCipher>();
25 fallbackCipher->setDefaults();
34 TEST(DualCipherTest, DecryptSuccess) {
35 auto cipher = std::make_unique<MockTicketCipher>();
36 auto fallbackCipher = std::make_unique<MockTicketCipher>();
52 TEST(DualCipherTest, DecryptSuccessWithFallback) {
53 auto cipher = std::make_unique<MockTicketCipher>();
54 auto fallbackCipher = std::make_unique<MockTicketCipher>();
71 std::get<0>(dualCipher.decrypt(
std::move(buf)).get()),
static std::unique_ptr< IOBuf > wrapBuffer(const void *buf, std::size_t capacity)
TEST(GetStatelessHrrTest, NoGroup)
#define EXPECT_EQ(val1, val2)
constexpr detail::Map< Move > move
PolymorphicAction< internal::InvokeWithoutArgsAction< FunctionImpl > > InvokeWithoutArgs(FunctionImpl function_impl)
#define EXPECT_CALL(obj, call)
const internal::AnythingMatcher _