chromium/net/base/address_list_unittest.cc

// Copyright 2012 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/base/address_list.h"

#include <algorithm>

#include "base/strings/string_util.h"
#include "base/sys_byteorder.h"
#include "net/base/ip_address.h"
#include "net/base/sockaddr_storage.h"
#include "net/base/sys_addrinfo.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

ElementsAre;
UnorderedElementsAre;

namespace net {
namespace {

const char kCanonicalHostname[] =;

TEST(AddressListTest, Canonical) {}

TEST(AddressListTest, CreateFromAddrinfo) {}

TEST(AddressListTest, CreateFromIPAddressList) {}

TEST(AddressListTest, GetCanonicalNameWhenUnset) {}

TEST(AddressListTest, SetDefaultCanonicalNameThenSetDnsAliases) {}

TEST(AddressListTest, SetDefaultCanonicalNameThenAppendDnsAliases) {}

TEST(AddressListTest, DnsAliases) {}

TEST(AddressListTest, DeduplicatesEmptyAddressList) {}

TEST(AddressListTest, DeduplicatesSingletonAddressList) {}

TEST(AddressListTest, DeduplicatesLongerAddressList) {}

// Test that, for every permutation of a list of endpoints, deduplication
// produces the same results as a naive reference implementation.
TEST(AddressListTest, DeduplicatePreservesOrder) {}

}  // namespace
}  // namespace net