Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/Mizar/mml/   (Mizar Prover Version 8.1.15©)  Datei vom 6.10.2026 mit Größe 65 kB image not shown  

SSL TestDataProvider.swift   Sprache: JAVA

 

import Foundation
import ThreemaEssentials
import WebRTC
@testable import GroupCalls

/// Provides the boilerplate test data that is needed to set up a group call in tests
enum TestDataProvider {
    static func certificate() -> RTCCertificate {
        RTCCertificate(privateKey: "helloWorld", certificate: "helloWorld", fingerprint: "helloWorld")
    }

    static func sessionParameters(participantID: UInt32 = 0) -> SessionParameters {
        SessionParameters(
            participantID: ParticipantID(id: participantID),
            iceParameters: IceParameters(usernameFragment: "", password: ""),
            dtlsParameters: DtlsParameters(fingerprint: []),
            rtpHeaderExtensionIDs: RTPHeaderExtensionIDs()
        )
    }

    static func groupCallBaseState(
        group: GroupCallThreemaGroupModel,
        dependencies: Dependencies,
        gck: Data = Data(repeating: 0x01, count: 32),
        protocolVersion: UInt32 = 0,
        sfuBaseURL: URL = URL(string: "sfu.threema.test")!
    ) throws -> GroupCallBaseState {
        try GroupCallBaseState(
            group: group,
            startedAt: Date(),
            dependencies: dependencies,
            groupCallStartData: GroupCallStartData(
                protocolVersion: protocolVersion,
                gck: gck,
                sfuBaseURL: sfuBaseURL
            )
        )
    }
}

Messung
CHZG
829010090

¤ Dauer der Verarbeitung: 0.1 Sekunden  (vorverarbeitet am  2026-11-23) ¤

*Bot Zugriff