19 lines
613 B
Swift
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
|
|
}
|
|
}
|