chromium/net/ntlm/ntlm_buffer_reader_unittest.cc

// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/40284755): Remove this and spanify to fix the errors.
#pragma allow_unsafe_buffers
#endif

#include "net/ntlm/ntlm_buffer_reader.h"

#include "base/strings/utf_string_conversions.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace net::ntlm {

TEST(NtlmBufferReaderTest, Initialization) {}

TEST(NtlmBufferReaderTest, EmptyBuffer) {}

TEST(NtlmBufferReaderTest, NullBuffer) {}

TEST(NtlmBufferReaderTest, Read16) {}

TEST(NtlmBufferReaderTest, Read32) {}

TEST(NtlmBufferReaderTest, Read64) {}

TEST(NtlmBufferReaderTest, ReadBytes) {}

TEST(NtlmBufferReaderTest, ReadSecurityBuffer) {}

TEST(NtlmBufferReaderTest, ReadSecurityBufferPastEob) {}

TEST(NtlmBufferReaderTest, ReadPayloadAsBufferReader) {}

TEST(NtlmBufferReaderTest, ReadPayloadBadOffset) {}

TEST(NtlmBufferReaderTest, ReadPayloadBadLength) {}

TEST(NtlmBufferReaderTest, SkipSecurityBuffer) {}

TEST(NtlmBufferReaderTest, SkipSecurityBufferPastEob) {}

TEST(NtlmBufferReaderTest, SkipSecurityBufferWithValidationEmpty) {}

TEST(NtlmBufferReaderTest, SkipSecurityBufferWithValidationValid) {}

TEST(NtlmBufferReaderTest,
     SkipSecurityBufferWithValidationPayloadLengthPastEob) {}

TEST(NtlmBufferReaderTest,
     SkipSecurityBufferWithValidationPayloadOffsetPastEob) {}

TEST(NtlmBufferReaderTest,
     SkipSecurityBufferWithValidationZeroLengthPayloadOffsetPastEob) {}

TEST(NtlmBufferReaderTest, SkipBytes) {}

TEST(NtlmBufferReaderTest, SkipBytesPastEob) {}

TEST(NtlmBufferReaderTest, MatchSignatureTooShort) {}

TEST(NtlmBufferReaderTest, MatchSignatureNoMatch) {}

TEST(NtlmBufferReaderTest, MatchSignatureOk) {}

TEST(NtlmBufferReaderTest, ReadInvalidMessageType) {}

TEST(NtlmBufferReaderTest, ReadMessageTypeNegotiate) {}

TEST(NtlmBufferReaderTest, ReadMessageTypeChallenge) {}

TEST(NtlmBufferReaderTest, ReadTargetInfoEolOnly) {}

TEST(NtlmBufferReaderTest, ReadTargetInfoEmpty) {}

TEST(NtlmBufferReaderTest, ReadTargetInfoTimestampAndEolOnly) {}

TEST(NtlmBufferReaderTest, ReadTargetInfoFlagsAndEolOnly) {}

TEST(NtlmBufferReaderTest, ReadTargetInfoTooSmall) {}

TEST(NtlmBufferReaderTest, ReadTargetInfoInvalidTimestampSize) {}

TEST(NtlmBufferReaderTest, ReadTargetInfoInvalidTimestampPastEob) {}

TEST(NtlmBufferReaderTest, ReadTargetInfoOtherField) {}

TEST(NtlmBufferReaderTest, ReadTargetInfoNoTerminator) {}

TEST(NtlmBufferReaderTest, ReadTargetInfoTerminatorAtLocationOtherThanEnd) {}

TEST(NtlmBufferReaderTest, ReadTargetInfoTerminatorNonZeroLength) {}

TEST(NtlmBufferReaderTest, ReadTargetInfoTerminatorNonZeroLength2) {}

TEST(NtlmBufferReaderTest, ReadTargetInfoEmptyPayload) {}

TEST(NtlmBufferReaderTest, ReadTargetInfoEolOnlyPayload) {}

TEST(NtlmBufferReaderTest, ReadTargetInfoTooShortPayload) {}

TEST(NtlmBufferReaderTest, ReadTargetInfoFlagsPayload) {}

TEST(NtlmBufferReaderTest, ReadTargetInfoFlagsPayloadWithPaddingBetween) {}

TEST(NtlmBufferReaderTest, ReadMessageTypeAuthenticate) {}

TEST(NtlmBufferReaderTest, MatchMessageTypeAuthenticate) {}

TEST(NtlmBufferReaderTest, MatchMessageTypeInvalid) {}

TEST(NtlmBufferReaderTest, MatchMessageTypeMismatch) {}

TEST(NtlmBufferReaderTest, MatchAuthenticateHeader) {}

TEST(NtlmBufferReaderTest, MatchAuthenticateHeaderMisMatch) {}

TEST(NtlmBufferReaderTest, MatchZeros) {}

TEST(NtlmBufferReaderTest, MatchZerosFail) {}

TEST(NtlmBufferReaderTest, MatchEmptySecurityBuffer) {}

TEST(NtlmBufferReaderTest, MatchEmptySecurityBufferLengthZeroOffsetEnd) {}

TEST(NtlmBufferReaderTest, MatchEmptySecurityBufferLengthZeroPastEob) {}

TEST(NtlmBufferReaderTest, MatchEmptySecurityBufferLengthNonZeroLength) {}

TEST(NtlmBufferReaderTest, ReadAvPairHeader) {}

TEST(NtlmBufferReaderTest, ReadAvPairHeaderPastEob) {}

}  // namespace net::ntlm