#include "quiche/quic/tools/simple_ticket_crypter.h"
#include <memory>
#include <vector>
#include "quiche/quic/platform/api/quic_test.h"
#include "quiche/quic/test_tools/mock_clock.h"
namespace quic {
namespace test {
namespace {
constexpr QuicTime::Delta kOneDay = …;
}
class DecryptCallback : public quic::ProofSource::DecryptCallback { … };
absl::string_view StringPiece(const std::vector<uint8_t>& in) { … }
class SimpleTicketCrypterTest : public QuicTest { … };
TEST_F(SimpleTicketCrypterTest, EncryptDecrypt) { … }
TEST_F(SimpleTicketCrypterTest, CiphertextsDiffer) { … }
TEST_F(SimpleTicketCrypterTest, DecryptionFailureWithModifiedCiphertext) { … }
TEST_F(SimpleTicketCrypterTest, DecryptionFailureWithEmptyCiphertext) { … }
TEST_F(SimpleTicketCrypterTest, KeyRotation) { … }
}
}