Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Threema/ThreemaFrameworkTests/Mocks/   (Social Medium ©)  Datei vom 26.9.2026 mit Größe 778 B image not shown  

Quelle  GroupPhotoSenderMock.swift   Sprache: JAVA

 

import Foundation
import ThreemaEssentials
import ThreemaFramework

final class GroupPhotoSenderMock: NSObject, GroupPhotoSenderProtocol {
    
    let delay: Double
    
    let blobID: Data = BytesUtility.generateRandomBytes(length: ThreemaProtocol.blobIDLength)!
    let encryptionKey: Data = BytesUtility.generateRandomBytes(length: Int(kBlobKeyLen))!
    
    init(delay: Double = 0) {
        self.delay = delay
        super.init()
    }
    
    func start(
        withImageData imageData: Data?,
        isNoteGroup: Bool,
        onCompletion: @escaping ((Data?, Data?) -> Void),
        onError: (Error) -> Void
    ) {
        DispatchQueue.global().asyncAfter(deadline: .now() + delay) {
            onCompletion(self.blobID, self.encryptionKey)
        }
    }
}

Messung
CHZG
879710094

¤ Dauer der Verarbeitung: 0.1 Sekunden  ¤

*© 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.