Skip to content

Commit

Permalink
adds missing @availabel marks
Browse files Browse the repository at this point in the history
  • Loading branch information
stmitt committed Apr 20, 2021
1 parent 025330d commit 0765799
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/DP3TSDK/Networking/ExposeeServiceClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class ExposeeServiceClient: ExposeeServiceClientProtocol {

private let jwtVerifier: DP3TJWTVerifier?

var federationGateway: FederationGateway
internal var federationGateway: FederationGateway

private let log = Logger(ExposeeServiceClient.self, category: "exposeeServiceClient")

Expand Down
1 change: 1 addition & 0 deletions Tests/DP3TSDKTests/DP3TSDKTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ private class MockKeyProvider: DiagnosisKeysProvider {
}


@available(iOS 12.5, *)
class DP3TSDKTests: XCTestCase {

fileprivate var keychain: MockKeychain!
Expand Down
2 changes: 2 additions & 0 deletions Tests/DP3TSDKTests/DiagnosisKeysProviderTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import Foundation
import XCTest
import ExposureNotification

@available(iOS 12.5, *)
class DiagnosisKeysProviderTests: XCTestCase {

var manager: MockENManager!
Expand Down Expand Up @@ -81,6 +82,7 @@ class DiagnosisKeysProviderTests: XCTestCase {

}

@available(iOS 12.5, *)
extension ENTemporaryExposureKey {
static func initialize(data: Data = Data(capacity: 16),
rollingPeriod: ENIntervalNumber = UInt32(TimeInterval.day / (.minute * 10)),
Expand Down
1 change: 1 addition & 0 deletions Tests/DP3TSDKTests/ExposureNotificationMatcherTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import Foundation
import XCTest
import ZIPFoundation

@available(iOS 12.5, *)
final class ExposureNotificationMatcherTests: XCTestCase {
var keychain = MockKeychain()

Expand Down
1 change: 1 addition & 0 deletions Tests/DP3TSDKTests/ExposureNotificationTracerTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
@testable import DP3TSDK
import XCTest

@available(iOS 12.5, *)
class ExposureNotificationTracerTests: XCTestCase {

var manager: MockENManager!
Expand Down
1 change: 1 addition & 0 deletions Tests/DP3TSDKTests/ExposureWindowTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import XCTest
import ExposureNotification


@available(iOS 12.5, *)
class ExposureWindowTests: XCTestCase {
func testDayGroupingSingle(){
var windows: [MockWindow] = []
Expand Down
2 changes: 2 additions & 0 deletions Tests/DP3TSDKTests/Mocks/MockENManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import Foundation
import ExposureNotification

@available(iOS 12.5, *)
class MockENManager: ENManager {
var activateCallbacks: [ENErrorHandler] = []

Expand Down Expand Up @@ -108,6 +109,7 @@ class MockENManager: ENManager {
}
}

@available(iOS 12.5, *)
class MockSummary: ENExposureDetectionSummary {
override var attenuationDurations: [NSNumber] {
get {
Expand Down
1 change: 1 addition & 0 deletions Tests/DP3TSDKTests/Mocks/MockScanInstance.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import Foundation
import ExposureNotification

@available(iOS 12.5, *)
class MockScanInstance: ENScanInstance {

private var internalTypicalAttenuation: ENAttenuation
Expand Down
1 change: 1 addition & 0 deletions Tests/DP3TSDKTests/Mocks/MockWindow.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import Foundation
import ExposureNotification

@available(iOS 12.5, *)
class MockWindow: ENExposureWindow {
private var internalDate: Date
private var internalScanInstances: [ENScanInstance]
Expand Down

0 comments on commit 0765799

Please sign in to comment.