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

19 lines
613 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 Foundation
@testable import camera_avfoundation
/// A mock implementation of `FrameRateRange` that allows mocking the class properties.
final class MockFrameRateRange: NSObject, FrameRateRange {
var minFrameRate: Float64
var maxFrameRate: Float64
/// Initializes a `MockFrameRateRange` with the given frame rate range.
init(minFrameRate: Float64, maxFrameRate: Float64) {
self.minFrameRate = minFrameRate
self.maxFrameRate = maxFrameRate
}
}