summaryrefslogtreecommitdiffhomepage
path: root/ios/PacketTunnelCoreTests
diff options
context:
space:
mode:
authorAndrew Bulhak <andrew.bulhak@mullvad.net>2024-03-14 15:10:10 +0100
committerBug Magnet <marco.nikic@mullvad.net>2024-03-15 13:15:20 +0100
commitdcefe5829105efa137feb3128017dc0e3ce946f2 (patch)
treeefaadc2a1c51dcfd4919d0c97377f3adddb5359b /ios/PacketTunnelCoreTests
parent7a74b8493ba7b2334a4bbed306d5ef32868bbab5 (diff)
downloadmullvadvpn-dcefe5829105efa137feb3128017dc0e3ce946f2.tar.xz
mullvadvpn-dcefe5829105efa137feb3128017dc0e3ce946f2.zip
Move CommandChannel into the PacketTunnelActor namespace for consistency with Command
Diffstat (limited to 'ios/PacketTunnelCoreTests')
-rw-r--r--ios/PacketTunnelCoreTests/CommandChannelTests.swift10
1 files changed, 5 insertions, 5 deletions
diff --git a/ios/PacketTunnelCoreTests/CommandChannelTests.swift b/ios/PacketTunnelCoreTests/CommandChannelTests.swift
index dc622434b9..974eca29f2 100644
--- a/ios/PacketTunnelCoreTests/CommandChannelTests.swift
+++ b/ios/PacketTunnelCoreTests/CommandChannelTests.swift
@@ -11,7 +11,7 @@ import XCTest
final class CommandChannelTests: XCTestCase {
func testCoalescingReconnect() async {
- let channel = CommandChannel()
+ let channel = PacketTunnelActor.CommandChannel()
channel.send(.start(StartOptions(launchSource: .app)))
channel.send(.reconnect(.random))
@@ -27,7 +27,7 @@ final class CommandChannelTests: XCTestCase {
/// Test that stops cancels all preceding tasks.
func testCoalescingStop() async {
- let channel = CommandChannel()
+ let channel = PacketTunnelActor.CommandChannel()
channel.send(.start(StartOptions(launchSource: .app)))
channel.send(.reconnect(.random))
@@ -44,7 +44,7 @@ final class CommandChannelTests: XCTestCase {
/// Test that iterations over the finished channel yield `nil`.
func testFinishFlushingUnconsumedValues() async {
- let channel = CommandChannel()
+ let channel = PacketTunnelActor.CommandChannel()
channel.send(.stop)
channel.finish()
@@ -54,7 +54,7 @@ final class CommandChannelTests: XCTestCase {
/// Test that the call to `finish()` ends the iteration that began prior to that.
func testFinishEndsAsyncIterator() async throws {
- let channel = CommandChannel()
+ let channel = PacketTunnelActor.CommandChannel()
let expectFinish = expectation(description: "Call to finish()")
let expectEndIteration = expectation(description: "Iteration over channel should end upon call to finish()")
@@ -91,7 +91,7 @@ enum PrimitiveCommand: Equatable {
case start, stop, reconnect(NextRelay), switchKey, other
}
-extension Command {
+extension PacketTunnelActor.Command {
var primitiveCommand: PrimitiveCommand {
switch self {
case .start: