mirror of
https://github.com/lux-tel/session-ios.git
synced 2026-10-30 20:38:32 +00:00
# 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
41 lines
1.0 KiB
Swift
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])
|
|
}
|
|
}
|