mirror of https://github.com/oxen-io/session-ios
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.
54 lines
1.3 KiB
Swift
54 lines
1.3 KiB
Swift
// Copyright © 2023 Rangeproof Pty Ltd. All rights reserved.
|
|
|
|
import Foundation
|
|
import SessionUtil
|
|
|
|
@testable import SessionMessagingKit
|
|
|
|
extension SessionUtil.Config: Mocked {
|
|
static var mock: SessionUtil.Config = .invalid
|
|
}
|
|
|
|
extension ConfigDump.Variant: Mocked {
|
|
static var mock: ConfigDump.Variant = .userProfile
|
|
}
|
|
|
|
extension SessionThread: Mocked {
|
|
static var mock: SessionThread = SessionThread(
|
|
id: .mock,
|
|
variant: .contact,
|
|
creationDateTimestamp: nil,
|
|
shouldBeVisible: false,
|
|
isPinned: false,
|
|
messageDraft: nil,
|
|
notificationSound: nil,
|
|
mutedUntilTimestamp: nil,
|
|
onlyNotifyForMentions: false,
|
|
markedAsUnread: nil,
|
|
pinnedPriority: nil,
|
|
using: .any
|
|
)
|
|
}
|
|
|
|
extension Interaction: Mocked {
|
|
static var mock: Interaction = Interaction(
|
|
id: 123456,
|
|
serverHash: .mock,
|
|
messageUuid: nil,
|
|
threadId: .mock,
|
|
authorId: .mock,
|
|
variant: .standardIncoming,
|
|
body: .mock,
|
|
timestampMs: 1234567890,
|
|
receivedAtTimestampMs: 1234567890,
|
|
wasRead: false,
|
|
hasMention: false,
|
|
expiresInSeconds: nil,
|
|
expiresStartedAtMs: nil,
|
|
linkPreviewUrl: nil,
|
|
openGroupServerMessageId: nil,
|
|
openGroupWhisperMods: false,
|
|
openGroupWhisperTo: nil
|
|
)
|
|
}
|