mirror of
https://github.com/xtool-org/xtool.git
synced 2026-02-04 11:53:30 +01:00
63 lines
1.4 KiB
Swift
63 lines
1.4 KiB
Swift
//
|
|
// DeveloperServicesTestClient.swift
|
|
// XKitTests
|
|
//
|
|
// Created by Kabir Oberai on 06/11/19.
|
|
// Copyright © 2019 Kabir Oberai. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
import XCTest
|
|
@testable import XKit
|
|
|
|
#if false
|
|
|
|
extension TCPAnisetteDataProvider {
|
|
|
|
static func test() -> TCPAnisetteDataProvider {
|
|
TCPAnisetteDataProvider(localPort: 4321)
|
|
}
|
|
|
|
}
|
|
|
|
extension NetcatAnisetteDataProvider {
|
|
|
|
static func test() -> NetcatAnisetteDataProvider {
|
|
NetcatAnisetteDataProvider(localPort: 4322, deviceInfo: Config.current.deviceInfo)
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
extension ADIDataProvider {
|
|
|
|
static func test(storage: KeyValueStorage) throws -> ADIDataProvider {
|
|
try adiProvider(deviceInfo: Config.current.deviceInfo, storage: storage)
|
|
}
|
|
|
|
}
|
|
|
|
extension GrandSlamClient {
|
|
|
|
static func test(storage: KeyValueStorage) throws -> GrandSlamClient {
|
|
try GrandSlamClient(
|
|
deviceInfo: Config.current.deviceInfo,
|
|
anisetteProvider: ADIDataProvider.test(storage: storage)
|
|
)
|
|
}
|
|
|
|
}
|
|
|
|
extension DeveloperServicesClient {
|
|
|
|
static func test(storage: KeyValueStorage) throws -> DeveloperServicesClient {
|
|
try DeveloperServicesClient(
|
|
loginToken: Config.current.appleID.token,
|
|
deviceInfo: Config.current.deviceInfo,
|
|
anisetteProvider: ADIDataProvider.test(storage: storage)
|
|
)
|
|
}
|
|
|
|
}
|