twonly-app-dependencies/camera_avfoundation/darwin/Tests/Mocks/MockCaptureInput.swift
2026-10-07 22:18:23 +02:00

17 lines
509 B
Swift

// Copyright 2013 The Flutter Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import AVFoundation
@testable import camera_avfoundation
/// A mocked implementation of CaptureInput which allows injecting a custom
/// implementation.
final class MockCaptureInput: NSObject, CaptureInput {
var avInput: AVCaptureInput {
preconditionFailure("Attempted to access unimplemented property: input")
}
var ports: [AVCaptureInput.Port] = []
}