Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Threema/GroupCalls/Tests/GroupCallsTests/   (Social Medium ©)  Datei vom 26.9.2026 mit Größe 1 kB image not shown  

Quelle  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
919410094

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

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover


Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.