Files
Morgan Pretty d67a58e770 Merge branch 'session-network-page' into feature/database-relocation
# Conflicts:
#	Session.xcodeproj/project.pbxproj
#	SessionMessagingKit/Open Groups/OpenGroupManager.swift
#	SessionMessagingKit/Sending & Receiving/Notifications/NotificationsProtocol.swift
#	SessionMessagingKit/Sending & Receiving/Notifications/Types/NotificationCategory.swift
#	SessionMessagingKitTests/_TestUtilities/CommonSMKMockExtensions.swift
#	SessionMessagingKitTests/_TestUtilities/MockNotificationsManager.swift
#	SessionNotificationServiceExtension/NSENotificationPresenter.swift
#	SessionUtilitiesKit/General/SessionId.swift
2025-05-30 15:12:46 +10:00

41 lines
1.0 KiB
Swift

// Copyright © 2022 Rangeproof Pty Ltd. All rights reserved.
import UIKit
import SessionUtilitiesKit
class MockGeneralCache: Mock<GeneralCacheType>, GeneralCacheType {
var userExists: Bool {
get { return mock() }
set { mockNoReturn(args: [newValue]) }
}
var sessionId: SessionId {
get { return mock() }
set { mockNoReturn(args: [newValue]) }
}
var ed25519Seed: [UInt8] {
get { return mock() }
set { mockNoReturn(args: [newValue]) }
}
var ed25519SecretKey: [UInt8] {
get { return mock() }
set { mockNoReturn(args: [newValue]) }
}
var recentReactionTimestamps: [Int64] {
get { return (mock() ?? []) }
set { mockNoReturn(args: [newValue]) }
}
var contextualActionLookupMap: [Int: [String: [Int: Any]]] {
get { return (mock() ?? [:]) }
set { mockNoReturn(args: [newValue]) }
}
func setSecretKey(ed25519SecretKey: [UInt8]) {
mockNoReturn(args: [ed25519SecretKey])
}
}