#ifdef UNSAFE_BUFFERS_BUILD
#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(AddressListTest, DeduplicatePreservesOrder) { … }
}
}