#include <stdint.h>
#include "base/functional/bind.h"
#include "base/location.h"
#include "base/run_loop.h"
#include "base/task/single_thread_task_runner.h"
#include "base/test/task_environment.h"
#include "chrome/browser/local_discovery/service_discovery_client_impl.h"
#include "net/base/net_errors.h"
#include "net/dns/mdns_client_impl.h"
#include "net/dns/mock_mdns_socket_factory.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
_;
namespace local_discovery {
namespace {
const uint8_t kSamplePacketA[] = …;
const uint8_t kSamplePacketAAAA[] = …;
class LocalDomainResolverTest : public testing::Test { … };
TEST_F(LocalDomainResolverTest, ResolveDomainA) { … }
TEST_F(LocalDomainResolverTest, ResolveDomainAAAA) { … }
TEST_F(LocalDomainResolverTest, ResolveDomainAnyOneAvailable) { … }
TEST_F(LocalDomainResolverTest, ResolveDomainAnyBothAvailable) { … }
TEST_F(LocalDomainResolverTest, ResolveDomainNone) { … }
}
}