ios/TestHarness/Application/TestHelpers/Support/TestingAppDelegate.swift
2025-11-21 16:36:58 -03:00

25 lines
595 B
Swift

import TestHarnessShared
import UIKit
/// The app's `UIApplicationDelegate` used when running tests.
class TestingAppDelegate: UIResponder, UIApplicationDelegate, AppDelegateType {
// MARK: Properties
/// The processor that manages application level logic.
var appProcessor: AppProcessor?
/// Whether the app is running for unit tests.
var isTesting: Bool {
true
}
// MARK: Methods
func application(
_: UIApplication,
didFinishLaunchingWithOptions _: [UIApplication.LaunchOptionsKey: Any]? = nil,
) -> Bool {
true
}
}