// Copyright 2018 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef OSP_IMPL_TESTING_FAKE_MDNS_PLATFORM_SERVICE_H_ #define OSP_IMPL_TESTING_FAKE_MDNS_PLATFORM_SERVICE_H_ #include #include "osp/impl/mdns_platform_service.h" namespace openscreen { namespace osp { class FakeMdnsPlatformService final : public MdnsPlatformService { public: FakeMdnsPlatformService(); ~FakeMdnsPlatformService() override; void set_interfaces(const std::vector& interfaces) { interfaces_ = interfaces; } // PlatformService overrides. std::vector RegisterInterfaces( const std::vector& interface_index_allowlist) override; void DeregisterInterfaces( const std::vector& registered_interfaces) override; private: std::vector registered_interfaces_; std::vector interfaces_; }; } // namespace osp } // namespace openscreen #endif // OSP_IMPL_TESTING_FAKE_MDNS_PLATFORM_SERVICE_H_