#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "net/ntlm/ntlm_buffer_writer.h"
#include "base/strings/utf_string_conversions.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace net::ntlm {
namespace {
const uint8_t* GetBufferPtr(const NtlmBufferWriter& writer) { … }
uint8_t GetByteFromBuffer(const NtlmBufferWriter& writer, size_t index) { … }
}
TEST(NtlmBufferWriterTest, Initialization) { … }
TEST(NtlmBufferWriterTest, EmptyWrite) { … }
TEST(NtlmBufferWriterTest, Write16) { … }
TEST(NtlmBufferWriterTest, Write16PastEob) { … }
TEST(NtlmBufferWriterTest, Write32) { … }
TEST(NtlmBufferWriterTest, Write32PastEob) { … }
TEST(NtlmBufferWriterTest, Write64) { … }
TEST(NtlmBufferWriterTest, Write64PastEob) { … }
TEST(NtlmBufferWriterTest, WriteBytes) { … }
TEST(NtlmBufferWriterTest, WriteBytesPastEob) { … }
TEST(NtlmBufferWriterTest, WriteSecurityBuffer) { … }
TEST(NtlmBufferWriterTest, WriteSecurityBufferPastEob) { … }
TEST(NtlmBufferWriterTest, WriteNarrowString) { … }
TEST(NtlmBufferWriterTest, WriteAsciiStringPastEob) { … }
TEST(NtlmBufferWriterTest, WriteUtf16String) { … }
TEST(NtlmBufferWriterTest, WriteUtf16StringPastEob) { … }
TEST(NtlmBufferWriterTest, WriteUtf8AsUtf16String) { … }
TEST(NtlmBufferWriterTest, WriteSignature) { … }
TEST(NtlmBufferWriterTest, WriteSignaturePastEob) { … }
TEST(NtlmBufferWriterTest, WriteMessageType) { … }
TEST(NtlmBufferWriterTest, WriteMessageTypePastEob) { … }
TEST(NtlmBufferWriterTest, WriteAvPairHeader) { … }
TEST(NtlmBufferWriterTest, WriteAvPairHeaderPastEob) { … }
}