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.
		
		
		
		
		
			
		
			
				
	
	
		
			25 lines
		
	
	
		
			721 B
		
	
	
	
		
			Swift
		
	
			
		
		
	
	
			25 lines
		
	
	
		
			721 B
		
	
	
	
		
			Swift
		
	
| // Copyright © 2023 Rangeproof Pty Ltd. All rights reserved.
 | |
| 
 | |
| import Foundation
 | |
| import Combine
 | |
| import SessionUtilitiesKit
 | |
| 
 | |
| @testable import SessionMessagingKit
 | |
| 
 | |
| class MockSessionUtilCache: Mock<SessionUtilCacheType>, SessionUtilCacheType {
 | |
|     var isEmpty: Bool { return mock() }
 | |
|     var needsSync: Bool { return mock() }
 | |
|     
 | |
|     func setConfig(for variant: ConfigDump.Variant, sessionId: SessionId, to config: SessionUtil.Config?) {
 | |
|         mockNoReturn(args: [variant, sessionId, config])
 | |
|     }
 | |
|     
 | |
|     func config(for variant: ConfigDump.Variant, sessionId: SessionId) -> Atomic<SessionUtil.Config?> {
 | |
|         return mock(args: [variant, sessionId])
 | |
|     }
 | |
|     
 | |
|     func removeAll() {
 | |
|         mockNoReturn()
 | |
|     }
 | |
| }
 |