#include "quiche/quic/core/crypto/chacha20_poly1305_tls_decrypter.h"
#include <memory>
#include <string>
#include "absl/strings/escaping.h"
#include "absl/strings/string_view.h"
#include "quiche/quic/core/quic_utils.h"
#include "quiche/quic/platform/api/quic_test.h"
#include "quiche/quic/test_tools/quic_test_utils.h"
#include "quiche/common/test_tools/quiche_test_utils.h"
namespace {
struct TestVector { … };
const TestVector test_vectors[] = …;
}
namespace quic {
namespace test {
QuicData* DecryptWithNonce(ChaCha20Poly1305TlsDecrypter* decrypter,
absl::string_view nonce,
absl::string_view associated_data,
absl::string_view ciphertext) { … }
class ChaCha20Poly1305TlsDecrypterTest : public QuicTest { … };
TEST_F(ChaCha20Poly1305TlsDecrypterTest, Decrypt) { … }
TEST_F(ChaCha20Poly1305TlsDecrypterTest, GenerateHeaderProtectionMask) { … }
}
}