#include "quiche/common/capsule.h"
#include <cstddef>
#include <deque>
#include <string>
#include <vector>
#include "absl/strings/escaping.h"
#include "absl/strings/str_cat.h"
#include "absl/strings/string_view.h"
#include "quiche/common/platform/api/quiche_test.h"
#include "quiche/common/quiche_buffer_allocator.h"
#include "quiche/common/quiche_ip_address.h"
#include "quiche/common/simple_buffer_allocator.h"
#include "quiche/common/test_tools/quiche_test_utils.h"
#include "quiche/web_transport/web_transport.h"
_;
InSequence;
Return;
StreamType;
namespace quiche {
namespace test {
class CapsuleParserPeer { … };
namespace {
class MockCapsuleParserVisitor : public CapsuleParser::Visitor { … };
class CapsuleTest : public QuicheTest { … };
TEST_F(CapsuleTest, DatagramCapsule) { … }
TEST_F(CapsuleTest, DatagramCapsuleViaHeader) { … }
TEST_F(CapsuleTest, LegacyDatagramCapsule) { … }
TEST_F(CapsuleTest, LegacyDatagramWithoutContextCapsule) { … }
TEST_F(CapsuleTest, CloseWebTransportStreamCapsule) { … }
TEST_F(CapsuleTest, DrainWebTransportStreamCapsule) { … }
TEST_F(CapsuleTest, AddressAssignCapsule) { … }
TEST_F(CapsuleTest, AddressRequestCapsule) { … }
TEST_F(CapsuleTest, RouteAdvertisementCapsule) { … }
TEST_F(CapsuleTest, WebTransportStreamData) { … }
TEST_F(CapsuleTest, WebTransportStreamDataHeader) { … }
TEST_F(CapsuleTest, WebTransportStreamDataWithFin) { … }
TEST_F(CapsuleTest, WebTransportResetStream) { … }
TEST_F(CapsuleTest, WebTransportStopSending) { … }
TEST_F(CapsuleTest, WebTransportMaxStreamData) { … }
TEST_F(CapsuleTest, WebTransportMaxStreamsBi) { … }
TEST_F(CapsuleTest, WebTransportMaxStreamsUni) { … }
TEST_F(CapsuleTest, UnknownCapsule) { … }
TEST_F(CapsuleTest, TwoCapsules) { … }
TEST_F(CapsuleTest, TwoCapsulesPartialReads) { … }
TEST_F(CapsuleTest, TwoCapsulesOneByteAtATime) { … }
TEST_F(CapsuleTest, PartialCapsuleThenError) { … }
TEST_F(CapsuleTest, RejectOverlyLongCapsule) { … }
}
}
}