chromium/third_party/openscreen/src/discovery/mdns/public/mdns_writer_unittest.cc

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

#include "discovery/mdns/public/mdns_writer.h"

#include <memory>
#include <vector>

#include "discovery/mdns/testing/mdns_test_util.h"
#include "gmock/gmock.h"
#include "gtest/gtest.h"

namespace openscreen::discovery {

ElementsAreArray;

namespace {

constexpr std::chrono::seconds kTtl{};

template <class T>
void TestWriteEntrySucceeds(const T& entry,
                            const uint8_t* expected_data,
                            size_t expected_size) {}

template <class T>
void TestWriteEntryInsufficientBuffer(const T& entry) {}

}  // namespace

TEST(MdnsWriterTest, WriteDomainName) {}

TEST(MdnsWriterTest, WriteDomainName_CompressedMessage) {}

TEST(MdnsWriterTest, WriteDomainName_NotEnoughSpace) {}

TEST(MdnsWriterTest, WriteDomainName_Long) {}

TEST(MdnsWriterTest, WriteDomainName_Empty) {}

TEST(MdnsWriterTest, WriteDomainName_NoCompressionForBigOffsets) {}

TEST(MdnsWriterTest, WriteRawRecordRdata) {}

TEST(MdnsWriterTest, WriteRawRecordRdata_InsufficientBuffer) {}

TEST(MdnsWriterTest, WriteSrvRecordRdata) {}

TEST(MdnsWriterTest, WriteSrvRecordRdata_InsufficientBuffer) {}

TEST(MdnsWriterTest, WriteARecordRdata) {}

TEST(MdnsWriterTest, WriteARecordRdata_InsufficientBuffer) {}

TEST(MdnsWriterTest, WriteAAAARecordRdata) {}

TEST(MdnsWriterTest, WriteAAAARecordRdata_InsufficientBuffer) {}

TEST(MdnsWriterTest, WriteNSECRecordRdata) {}

TEST(MdnsWriterTest, WriteNSECRecordRdata_InsufficientBuffer) {}

TEST(MdnsWriterTest, WritePtrRecordRdata) {}

TEST(MdnsWriterTest, WritePtrRecordRdata_InsufficientBuffer) {}

TEST(MdnsWriterTest, WriteTxtRecordRdata) {}

TEST(MdnsWriterTest, WriteTxtRecordRdata_Empty) {}

TEST(MdnsWriterTest, WriteTxtRecordRdata_InsufficientBuffer) {}

TEST(MdnsWriterTest, WriteMdnsRecord_ARecordRdata) {}

TEST(MdnsWriterTest, WriteMdnsRecord_PtrRecordRdata) {}

TEST(MdnsWriterTest, WriteMdnsRecord_InsufficientBuffer) {}

TEST(MdnsWriterTest, WriteMdnsQuestion) {}

TEST(MdnsWriterTest, WriteMdnsQuestion_InsufficientBuffer) {}

TEST(MdnsWriterTest, WriteMdnsMessage) {}

TEST(MdnsWriterTest, WriteMdnsMessage_InsufficientBuffer) {}

}  // namespace openscreen::discovery