mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
ff480a37d5
Added the ability to mock the identity manager (ie. return a mock key for the users key) Swapped the Test Nonce16 & Nonce24 classes for Mock ones Fixed an issue where the ContactUtilities call from the OpenGroupManager wasn't injecting the dependencies Added unit tests for the handleDirectMessages and isUserModetatorOrAdmin methods
11 lines
308 B
Swift
11 lines
308 B
Swift
// Copyright © 2022 Rangeproof Pty Ltd. All rights reserved.
|
|
|
|
import Foundation
|
|
|
|
@testable import SessionMessagingKit
|
|
|
|
class MockNonce24Generator: Mock<NonceGenerator24ByteType>, NonceGenerator24ByteType {
|
|
var NonceBytes: Int = 24
|
|
|
|
func nonce() -> Array<UInt8> { return accept() as! [UInt8] }
|
|
}
|