mirror of https://github.com/oxen-io/session-ios
				
				
				
			Clean up TestCallConfig
							parent
							
								
									36962cc059
								
							
						
					
					
						commit
						8b187641b8
					
				@ -1,25 +0,0 @@
 | 
			
		||||
 | 
			
		||||
public struct MockCallConfig {
 | 
			
		||||
    public let signalingServerURL: String
 | 
			
		||||
    public let serverURL: String
 | 
			
		||||
    public let webRTCICEServers: [String]
 | 
			
		||||
    
 | 
			
		||||
    private static let defaultSignalingServerURL = "ws://developereric.com:8080"
 | 
			
		||||
    private static let defaultICEServers = [
 | 
			
		||||
        "stun:stun.l.google.com:19302",
 | 
			
		||||
        "stun:stun1.l.google.com:19302",
 | 
			
		||||
        "stun:stun2.l.google.com:19302",
 | 
			
		||||
        "stun:stun3.l.google.com:19302",
 | 
			
		||||
        "stun:stun4.l.google.com:19302"
 | 
			
		||||
    ]
 | 
			
		||||
    private static let defaultServerURL = "https://appr.tc"
 | 
			
		||||
    
 | 
			
		||||
    private init(signalingServerURL: String, serverURL: String, webRTCICEServers: [String]) {
 | 
			
		||||
        self.signalingServerURL = signalingServerURL
 | 
			
		||||
        self.serverURL = serverURL
 | 
			
		||||
        self.webRTCICEServers = webRTCICEServers
 | 
			
		||||
    }
 | 
			
		||||
    
 | 
			
		||||
    public static let `default` = MockCallConfig(signalingServerURL: defaultSignalingServerURL,
 | 
			
		||||
        serverURL: defaultServerURL, webRTCICEServers: defaultICEServers)
 | 
			
		||||
}
 | 
			
		||||
@ -0,0 +1,13 @@
 | 
			
		||||
 | 
			
		||||
public enum TestCallConfig {
 | 
			
		||||
 | 
			
		||||
    public static let defaultSignalingServerURL = "ws://developereric.com:8080"
 | 
			
		||||
    public static let defaultICEServers = [
 | 
			
		||||
        "stun:stun.l.google.com:19302",
 | 
			
		||||
        "stun:stun1.l.google.com:19302",
 | 
			
		||||
        "stun:stun2.l.google.com:19302",
 | 
			
		||||
        "stun:stun3.l.google.com:19302",
 | 
			
		||||
        "stun:stun4.l.google.com:19302"
 | 
			
		||||
    ]
 | 
			
		||||
    public static let defaultServerURL = "https://appr.tc"
 | 
			
		||||
}
 | 
			
		||||
					Loading…
					
					
				
		Reference in New Issue