#include "quiche/quic/core/crypto/crypto_framer.h"
#include <map>
#include <memory>
#include <vector>
#include "absl/base/macros.h"
#include "absl/strings/string_view.h"
#include "quiche/quic/core/crypto/crypto_handshake.h"
#include "quiche/quic/core/crypto/crypto_protocol.h"
#include "quiche/quic/core/quic_packets.h"
#include "quiche/quic/platform/api/quic_logging.h"
#include "quiche/quic/platform/api/quic_test.h"
#include "quiche/quic/test_tools/crypto_test_utils.h"
#include "quiche/quic/test_tools/quic_test_utils.h"
#include "quiche/common/test_tools/quiche_test_utils.h"
namespace quic {
namespace test {
namespace {
char* AsChars(unsigned char* data) { … }
class TestCryptoVisitor : public CryptoFramerVisitorInterface { … };
TEST(CryptoFramerTest, ConstructHandshakeMessage) { … }
TEST(CryptoFramerTest, ConstructHandshakeMessageWithTwoKeys) { … }
TEST(CryptoFramerTest, ConstructHandshakeMessageZeroLength) { … }
TEST(CryptoFramerTest, ConstructHandshakeMessageTooManyEntries) { … }
TEST(CryptoFramerTest, ConstructHandshakeMessageMinimumSize) { … }
TEST(CryptoFramerTest, ConstructHandshakeMessageMinimumSizePadLast) { … }
TEST(CryptoFramerTest, ProcessInput) { … }
TEST(CryptoFramerTest, ProcessInputWithThreeKeys) { … }
TEST(CryptoFramerTest, ProcessInputIncrementally) { … }
TEST(CryptoFramerTest, ProcessInputTagsOutOfOrder) { … }
TEST(CryptoFramerTest, ProcessEndOffsetsOutOfOrder) { … }
TEST(CryptoFramerTest, ProcessInputTooManyEntries) { … }
TEST(CryptoFramerTest, ProcessInputZeroLength) { … }
}
}
}