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/SessionMessagingKitTests/_TestUtilities/MockCommunityPollerCache.swift

16 lines
628 B
Swift

// Copyright © 2024 Rangeproof Pty Ltd. All rights reserved.
import Foundation
@testable import SessionMessagingKit
class MockCommunityPollerCache: Mock<CommunityPollerCacheType>, CommunityPollerCacheType {
var serversBeingPolled: Set<String> { mock() }
var allPollers: [CommunityPollerType] { mock() }
func startAllPollers() { mockNoReturn() }
@discardableResult func getOrCreatePoller(for info: CommunityPoller.Info) -> CommunityPollerType { mock(args: [info]) }
func stopAndRemovePoller(for server: String) { mockNoReturn(args: [server]) }
func stopAndRemoveAllPollers() { mockNoReturn() }
}