#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "net/dns/public/resolv_reader.h"
#include <arpa/inet.h>
#include <resolv.h>
#include <memory>
#include <optional>
#include <utility>
#include <vector>
#include "base/cancelable_callback.h"
#include "base/check.h"
#include "base/functional/bind.h"
#include "base/run_loop.h"
#include "base/sys_byteorder.h"
#include "base/task/sequenced_task_runner.h"
#include "base/task/task_traits.h"
#include "base/task/thread_pool.h"
#include "build/build_config.h"
#include "net/base/ip_address.h"
#include "net/dns/public/dns_protocol.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace net {
namespace {
const char* const kNameserversIPv4[] = …;
#if BUILDFLAG(IS_LINUX)
const char* const kNameserversIPv6[] = …;
#endif
void InitializeResState(res_state res) { … }
void FreeResState(struct __res_state* res) { … }
TEST(ResolvReaderTest, GetNameservers) { … }
}
}