#include "chrome/browser/local_discovery/fake_service_discovery_device_lister.h"
#include <utility>
#include "base/check.h"
#include "base/containers/contains.h"
#include "base/functional/bind.h"
#include "base/location.h"
#include "base/strings/strcat.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace local_discovery {
DeferringDelegate::DeferringDelegate() = default;
DeferringDelegate::~DeferringDelegate() = default;
void DeferringDelegate::OnDeviceChanged(
const std::string& service_type,
bool added,
const ServiceDescription& service_description) { … }
void DeferringDelegate::OnDeviceRemoved(const std::string& service_type,
const std::string& service_name) { … }
void DeferringDelegate::OnDeviceCacheFlushed(const std::string& service_type) { … }
void DeferringDelegate::SetActual(
ServiceDiscoveryDeviceLister::Delegate* actual) { … }
FakeServiceDiscoveryDeviceLister::FakeServiceDiscoveryDeviceLister(
base::TaskRunner* task_runner,
const std::string& service_type)
: … { … }
FakeServiceDiscoveryDeviceLister::~FakeServiceDiscoveryDeviceLister() = default;
void FakeServiceDiscoveryDeviceLister::Start() { … }
void FakeServiceDiscoveryDeviceLister::DiscoverNewDevices() { … }
const std::string& FakeServiceDiscoveryDeviceLister::service_type() const { … }
void FakeServiceDiscoveryDeviceLister::SetDelegate(
ServiceDiscoveryDeviceLister::Delegate* delegate) { … }
void FakeServiceDiscoveryDeviceLister::Announce(
const ServiceDescription& description) { … }
void FakeServiceDiscoveryDeviceLister::Remove(const std::string& name) { … }
void FakeServiceDiscoveryDeviceLister::Clear() { … }
bool FakeServiceDiscoveryDeviceLister::discovery_started() { … }
void FakeServiceDiscoveryDeviceLister::SendUpdate(
const ServiceDescription& description) { … }
}