blob: d5dac1f62ee2392bcd43294c128ed2667ae46e80 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
//
// TunnelAdapterDummy.swift
// PacketTunnelCoreTests
//
// Created by pronebird on 05/09/2023.
// Copyright © 2025 Mullvad VPN AB. All rights reserved.
//
import Foundation
import PacketTunnelCore
@testable import WireGuardKitTypes
/// Dummy tunnel adapter that does nothing and reports no errors.
class TunnelAdapterDummy: TunnelAdapterProtocol, @unchecked Sendable {
func startMultihop(
entryConfiguration: TunnelAdapterConfiguration?,
exitConfiguration: TunnelAdapterConfiguration,
daita: DaitaConfiguration?
) async throws {}
func start(configuration: TunnelAdapterConfiguration, daita: DaitaConfiguration?) async throws {}
func stop() async throws {}
func update(configuration: TunnelAdapterConfiguration) async throws {}
}
|