aboutsummaryrefslogtreecommitdiff
path: root/osp/impl/testing/fake_mdns_platform_service.h
diff options
context:
space:
mode:
Diffstat (limited to 'osp/impl/testing/fake_mdns_platform_service.h')
-rw-r--r--osp/impl/testing/fake_mdns_platform_service.h39
1 files changed, 0 insertions, 39 deletions
diff --git a/osp/impl/testing/fake_mdns_platform_service.h b/osp/impl/testing/fake_mdns_platform_service.h
deleted file mode 100644
index a21c48cd..00000000
--- a/osp/impl/testing/fake_mdns_platform_service.h
+++ /dev/null
@@ -1,39 +0,0 @@
-// 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 <vector>
-
-#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<BoundInterface>& interfaces) {
- interfaces_ = interfaces;
- }
-
- // PlatformService overrides.
- std::vector<BoundInterface> RegisterInterfaces(
- const std::vector<NetworkInterfaceIndex>& interface_index_allowlist)
- override;
- void DeregisterInterfaces(
- const std::vector<BoundInterface>& registered_interfaces) override;
-
- private:
- std::vector<BoundInterface> registered_interfaces_;
- std::vector<BoundInterface> interfaces_;
-};
-
-} // namespace osp
-} // namespace openscreen
-
-#endif // OSP_IMPL_TESTING_FAKE_MDNS_PLATFORM_SERVICE_H_