#include "net/dns/address_sorter.h"
#include "build/build_config.h"
#if BUILDFLAG(IS_WIN)
#include <winsock2.h>
#endif
#include <utility>
#include <vector>
#include "base/check.h"
#include "base/functional/bind.h"
#include "base/test/task_environment.h"
#include "net/base/completion_once_callback.h"
#include "net/base/ip_address.h"
#include "net/base/ip_endpoint.h"
#include "net/base/test_completion_callback.h"
#include "testing/gtest/include/gtest/gtest.h"
#if BUILDFLAG(IS_WIN)
#include "net/base/winsock_init.h"
#endif
namespace net {
namespace {
IPEndPoint MakeEndPoint(const std::string& str) { … }
void OnSortComplete(std::vector<IPEndPoint>* sorted_buf,
CompletionOnceCallback callback,
bool success,
std::vector<IPEndPoint> sorted) { … }
TEST(AddressSorterTest, Sort) { … }
}
}