2023-10-25 19:16:37 +02:00
|
|
|
//
|
2024-09-06 16:34:30 +03:00
|
|
|
// Copyright 2023, 2024 New Vector Ltd.
|
2023-10-25 19:16:37 +02:00
|
|
|
//
|
2024-09-06 16:34:30 +03:00
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
// Please see LICENSE in the repository root for full details.
|
2023-10-25 19:16:37 +02:00
|
|
|
//
|
|
|
|
|
|
|
|
import UIKit
|
|
|
|
|
2024-04-19 13:59:15 +03:00
|
|
|
extension AppMediatorMock {
|
2024-05-29 17:07:17 +02:00
|
|
|
static var `default`: AppMediatorMock {
|
2024-04-22 18:10:24 +03:00
|
|
|
let mock = AppMediatorMock()
|
2023-10-25 19:16:37 +02:00
|
|
|
|
2024-04-22 18:10:24 +03:00
|
|
|
mock.underlyingAppState = .active
|
2024-05-29 17:07:17 +02:00
|
|
|
mock.requestAuthorizationIfNeededUnderlyingReturnValue = true
|
2024-04-22 18:10:24 +03:00
|
|
|
mock.underlyingWindowManager = WindowManagerMock()
|
2024-08-08 18:29:39 +02:00
|
|
|
mock.underlyingNetworkMonitor = NetworkMonitorMock.default
|
2023-10-25 19:16:37 +02:00
|
|
|
|
2024-04-22 18:10:24 +03:00
|
|
|
return mock
|
2023-10-25 19:16:37 +02:00
|
|
|
}
|
|
|
|
}
|