You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
session-ios/SessionSnodeKitTests/_TestUtilities/MockSnodeAPICache.swift

32 lines
716 B
Swift

// Copyright © 2023 Rangeproof Pty Ltd. All rights reserved.
import Foundation
import Foundation
import Combine
import SessionUtilitiesKit
@testable import SessionSnodeKit
class MockSnodeAPICache: Mock<SnodeAPICacheType>, SnodeAPICacheType {
var hardfork: Int {
get { return mock() }
set { mockNoReturn(args: [newValue]) }
}
var softfork: Int {
get { return mock() }
set { mockNoReturn(args: [newValue]) }
}
var clockOffsetMs: Int64 { mock() }
func currentOffsetTimestampMs<T>() -> T where T: Numeric {
return mock()
}
func setClockOffsetMs(_ clockOffsetMs: Int64) {
mockNoReturn(args: [clockOffsetMs])
}
}