#include "quiche/http2/adapter/header_validator.h"
#include <optional>
#include <string>
#include <utility>
#include <vector>
#include "absl/strings/str_cat.h"
#include "quiche/common/platform/api/quiche_test.h"
namespace http2 {
namespace adapter {
namespace test {
Optional;
Header;
constexpr Header kSampleRequestPseudoheaders[] = …;
TEST(HeaderValidatorTest, HeaderNameEmpty) { … }
TEST(HeaderValidatorTest, HeaderValueEmpty) { … }
TEST(HeaderValidatorTest, ExceedsMaxSize) { … }
TEST(HeaderValidatorTest, NameHasInvalidChar) { … }
TEST(HeaderValidatorTest, ValueHasInvalidChar) { … }
TEST(HeaderValidatorTest, StatusHasInvalidChar) { … }
TEST(HeaderValidatorTest, AuthorityHasInvalidChar) { … }
TEST(HeaderValidatorTest, RequestHostAndAuthority) { … }
TEST(HeaderValidatorTest, RequestHostAndAuthorityLax) { … }
TEST(HeaderValidatorTest, MethodHasInvalidChar) { … }
TEST(HeaderValidatorTest, RequestPseudoHeaders) { … }
TEST(HeaderValidatorTest, ConnectHeaders) { … }
TEST(HeaderValidatorTest, WebsocketPseudoHeaders) { … }
TEST(HeaderValidatorTest, AsteriskPathPseudoHeader) { … }
TEST(HeaderValidatorTest, InvalidPathPseudoHeader) { … }
TEST(HeaderValidatorTest, ResponsePseudoHeaders) { … }
TEST(HeaderValidatorTest, ResponseWithHost) { … }
TEST(HeaderValidatorTest, Response204) { … }
TEST(HeaderValidatorTest, ResponseWithMultipleIdenticalContentLength) { … }
TEST(HeaderValidatorTest, ResponseWithMultipleDifferingContentLength) { … }
TEST(HeaderValidatorTest, Response204WithContentLengthZero) { … }
TEST(HeaderValidatorTest, Response204WithContentLength) { … }
TEST(HeaderValidatorTest, Response100) { … }
TEST(HeaderValidatorTest, Response100WithContentLengthZero) { … }
TEST(HeaderValidatorTest, Response100WithContentLength) { … }
TEST(HeaderValidatorTest, ResponseTrailerPseudoHeaders) { … }
TEST(HeaderValidatorTest, ValidContentLength) { … }
TEST(HeaderValidatorTest, InvalidContentLength) { … }
TEST(HeaderValidatorTest, TeHeader) { … }
TEST(HeaderValidatorTest, ConnectionSpecificHeaders) { … }
TEST(HeaderValidatorTest, MixedCaseHeaderName) { … }
TEST(HeaderValidatorTest, MixedCasePseudoHeader) { … }
TEST(HeaderValidatorTest, MixedCaseHost) { … }
TEST(HeaderValidatorTest, MixedCaseContentLength) { … }
}
}
}