DailyView/Carthage/Checkouts/facebook-ios-sdk/FBSDKGamingServicesKit/FBSDKGamingServicesKitTests/Helpers/TestVideoUploaderFactory.swift
2025-12-30 16:40:31 +08:00

34 lines
862 B
Swift

/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
* All rights reserved.
*
* This source code is licensed under the license found in the
* LICENSE file in the root directory of this source tree.
*/
@testable import FBSDKGamingServicesKit
import Foundation
final class TestVideoUploaderFactory: VideoUploaderCreating {
var capturedVideoName: String?
var capturedVideoSize: UInt?
var capturedParameters = [String: Any]()
var capturedDelegate: VideoUploaderDelegate?
var stubbedVideoUploader = TestVideoUploader()
func create(
videoName: String,
videoSize: UInt,
parameters: [String: Any],
delegate: VideoUploaderDelegate
) -> VideoUploading {
capturedVideoName = videoName
capturedVideoSize = videoSize
capturedParameters = parameters
capturedDelegate = delegate
return stubbedVideoUploader
}
}