#include <memory>
#include "base/memory/raw_ptr.h"
#include "chrome/browser/media/router/discovery/mdns/dns_sd_delegate.h"
#include "chrome/browser/media/router/discovery/mdns/dns_sd_device_lister.h"
#include "chrome/browser/media/router/discovery/mdns/dns_sd_registry.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
_;
NiceMock;
namespace media_router {
class MockDnsSdDeviceLister : public DnsSdDeviceLister { … };
class TestDnsSdRegistry : public DnsSdRegistry { … };
class MockDnsSdObserver : public DnsSdRegistry::DnsSdObserver { … };
class DnsSdRegistryTest : public testing::Test { … };
TEST_F(DnsSdRegistryTest, RegisterUnregisterListeners) { … }
TEST_F(DnsSdRegistryTest, ForceDiscovery) { … }
TEST_F(DnsSdRegistryTest, AddAndUpdate) { … }
TEST_F(DnsSdRegistryTest, AddServiceWithInvalidIPAddress) { … }
TEST_F(DnsSdRegistryTest, AddAndRemove) { … }
TEST_F(DnsSdRegistryTest, AddMultipleServices) { … }
TEST_F(DnsSdRegistryTest, FlushCache) { … }
TEST_F(DnsSdRegistryTest, UpdateOnlyIfChanged) { … }
}