blob: a4792e154676f555e46c24fe9cb4eb7aab12afca [file] [log] [blame]
// Mocks generated by Mockito 5.4.4 from annotations
// in camera_android_camerax/test/quality_selector_test.dart.
// Do not manually edit this file.
// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i6;
import 'package:camera_android_camerax/src/camera_info.dart' as _i5;
import 'package:camera_android_camerax/src/camera_state.dart' as _i7;
import 'package:camera_android_camerax/src/camerax_library.g.dart' as _i4;
import 'package:camera_android_camerax/src/exposure_state.dart' as _i3;
import 'package:camera_android_camerax/src/fallback_strategy.dart' as _i9;
import 'package:camera_android_camerax/src/live_data.dart' as _i2;
import 'package:camera_android_camerax/src/zoom_state.dart' as _i8;
import 'package:mockito/mockito.dart' as _i1;
import 'test_camerax_library.g.dart' as _i10;
// ignore_for_file: type=lint
// ignore_for_file: avoid_redundant_argument_values
// ignore_for_file: avoid_setters_without_getters
// ignore_for_file: comment_references
// ignore_for_file: deprecated_member_use
// ignore_for_file: deprecated_member_use_from_same_package
// ignore_for_file: implementation_imports
// ignore_for_file: invalid_use_of_visible_for_testing_member
// ignore_for_file: prefer_const_constructors
// ignore_for_file: unnecessary_parenthesis
// ignore_for_file: camel_case_types
// ignore_for_file: subtype_of_sealed_class
class _FakeLiveData_0<T extends Object> extends _i1.SmartFake
implements _i2.LiveData<T> {
_FakeLiveData_0(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeExposureState_1 extends _i1.SmartFake implements _i3.ExposureState {
_FakeExposureState_1(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeResolutionInfo_2 extends _i1.SmartFake
implements _i4.ResolutionInfo {
_FakeResolutionInfo_2(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
/// A class which mocks [CameraInfo].
///
/// See the documentation for Mockito's code generation for more information.
// ignore: must_be_immutable
class MockCameraInfo extends _i1.Mock implements _i5.CameraInfo {
MockCameraInfo() {
_i1.throwOnMissingStub(this);
}
@override
_i6.Future<int> getSensorRotationDegrees() => (super.noSuchMethod(
Invocation.method(
#getSensorRotationDegrees,
[],
),
returnValue: _i6.Future<int>.value(0),
) as _i6.Future<int>);
@override
_i6.Future<_i2.LiveData<_i7.CameraState>> getCameraState() =>
(super.noSuchMethod(
Invocation.method(
#getCameraState,
[],
),
returnValue: _i6.Future<_i2.LiveData<_i7.CameraState>>.value(
_FakeLiveData_0<_i7.CameraState>(
this,
Invocation.method(
#getCameraState,
[],
),
)),
) as _i6.Future<_i2.LiveData<_i7.CameraState>>);
@override
_i6.Future<_i3.ExposureState> getExposureState() => (super.noSuchMethod(
Invocation.method(
#getExposureState,
[],
),
returnValue: _i6.Future<_i3.ExposureState>.value(_FakeExposureState_1(
this,
Invocation.method(
#getExposureState,
[],
),
)),
) as _i6.Future<_i3.ExposureState>);
@override
_i6.Future<_i2.LiveData<_i8.ZoomState>> getZoomState() => (super.noSuchMethod(
Invocation.method(
#getZoomState,
[],
),
returnValue: _i6.Future<_i2.LiveData<_i8.ZoomState>>.value(
_FakeLiveData_0<_i8.ZoomState>(
this,
Invocation.method(
#getZoomState,
[],
),
)),
) as _i6.Future<_i2.LiveData<_i8.ZoomState>>);
}
/// A class which mocks [FallbackStrategy].
///
/// See the documentation for Mockito's code generation for more information.
// ignore: must_be_immutable
class MockFallbackStrategy extends _i1.Mock implements _i9.FallbackStrategy {
MockFallbackStrategy() {
_i1.throwOnMissingStub(this);
}
@override
_i4.VideoQuality get quality => (super.noSuchMethod(
Invocation.getter(#quality),
returnValue: _i4.VideoQuality.SD,
) as _i4.VideoQuality);
@override
_i4.VideoResolutionFallbackRule get fallbackRule => (super.noSuchMethod(
Invocation.getter(#fallbackRule),
returnValue: _i4.VideoResolutionFallbackRule.higherQualityOrLowerThan,
) as _i4.VideoResolutionFallbackRule);
}
/// A class which mocks [TestQualitySelectorHostApi].
///
/// See the documentation for Mockito's code generation for more information.
class MockTestQualitySelectorHostApi extends _i1.Mock
implements _i10.TestQualitySelectorHostApi {
MockTestQualitySelectorHostApi() {
_i1.throwOnMissingStub(this);
}
@override
void create(
int? identifier,
List<_i4.VideoQualityData?>? videoQualityDataList,
int? fallbackStrategyId,
) =>
super.noSuchMethod(
Invocation.method(
#create,
[
identifier,
videoQualityDataList,
fallbackStrategyId,
],
),
returnValueForMissingStub: null,
);
@override
_i4.ResolutionInfo getResolution(
int? cameraInfoId,
_i4.VideoQuality? quality,
) =>
(super.noSuchMethod(
Invocation.method(
#getResolution,
[
cameraInfoId,
quality,
],
),
returnValue: _FakeResolutionInfo_2(
this,
Invocation.method(
#getResolution,
[
cameraInfoId,
quality,
],
),
),
) as _i4.ResolutionInfo);
}
/// A class which mocks [TestInstanceManagerHostApi].
///
/// See the documentation for Mockito's code generation for more information.
class MockTestInstanceManagerHostApi extends _i1.Mock
implements _i10.TestInstanceManagerHostApi {
MockTestInstanceManagerHostApi() {
_i1.throwOnMissingStub(this);
}
@override
void clear() => super.noSuchMethod(
Invocation.method(
#clear,
[],
),
returnValueForMissingStub: null,
);
}