blob: f275ea7021a18c19b4070abee4e8afad63b1d471 [file] [log] [blame]
// Mocks generated by Mockito 5.4.1 from annotations
// in camera_android_camerax/test/android_camera_camerax_test.dart.
// Do not manually edit this file.
// @dart=2.19
// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i15;
import 'dart:typed_data' as _i24;
import 'package:camera_android_camerax/src/analyzer.dart' as _i20;
import 'package:camera_android_camerax/src/camera.dart' as _i8;
import 'package:camera_android_camerax/src/camera_control.dart' as _i3;
import 'package:camera_android_camerax/src/camera_info.dart' as _i2;
import 'package:camera_android_camerax/src/camera_selector.dart' as _i18;
import 'package:camera_android_camerax/src/camera_state.dart' as _i16;
import 'package:camera_android_camerax/src/camerax_library.g.dart' as _i7;
import 'package:camera_android_camerax/src/exposure_state.dart' as _i5;
import 'package:camera_android_camerax/src/image_analysis.dart' as _i19;
import 'package:camera_android_camerax/src/image_capture.dart' as _i21;
import 'package:camera_android_camerax/src/image_proxy.dart' as _i22;
import 'package:camera_android_camerax/src/live_data.dart' as _i4;
import 'package:camera_android_camerax/src/observer.dart' as _i30;
import 'package:camera_android_camerax/src/pending_recording.dart' as _i9;
import 'package:camera_android_camerax/src/plane_proxy.dart' as _i23;
import 'package:camera_android_camerax/src/preview.dart' as _i25;
import 'package:camera_android_camerax/src/process_camera_provider.dart'
as _i26;
import 'package:camera_android_camerax/src/recorder.dart' as _i11;
import 'package:camera_android_camerax/src/recording.dart' as _i10;
import 'package:camera_android_camerax/src/use_case.dart' as _i27;
import 'package:camera_android_camerax/src/video_capture.dart' as _i28;
import 'package:camera_android_camerax/src/zoom_state.dart' as _i17;
import 'package:camera_platform_interface/camera_platform_interface.dart'
as _i6;
import 'package:flutter/foundation.dart' as _i14;
import 'package:flutter/services.dart' as _i13;
import 'package:flutter/widgets.dart' as _i12;
import 'package:mockito/mockito.dart' as _i1;
import 'test_camerax_library.g.dart' as _i29;
// 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: 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 _FakeCameraInfo_0 extends _i1.SmartFake implements _i2.CameraInfo {
_FakeCameraInfo_0(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeCameraControl_1 extends _i1.SmartFake implements _i3.CameraControl {
_FakeCameraControl_1(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeLiveData_2<T extends Object> extends _i1.SmartFake
implements _i4.LiveData<T> {
_FakeLiveData_2(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeExposureState_3 extends _i1.SmartFake implements _i5.ExposureState {
_FakeExposureState_3(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeCameraImageFormat_4 extends _i1.SmartFake
implements _i6.CameraImageFormat {
_FakeCameraImageFormat_4(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeExposureCompensationRange_5 extends _i1.SmartFake
implements _i7.ExposureCompensationRange {
_FakeExposureCompensationRange_5(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeResolutionInfo_6 extends _i1.SmartFake
implements _i7.ResolutionInfo {
_FakeResolutionInfo_6(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeCamera_7 extends _i1.SmartFake implements _i8.Camera {
_FakeCamera_7(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakePendingRecording_8 extends _i1.SmartFake
implements _i9.PendingRecording {
_FakePendingRecording_8(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeRecording_9 extends _i1.SmartFake implements _i10.Recording {
_FakeRecording_9(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeRecorder_10 extends _i1.SmartFake implements _i11.Recorder {
_FakeRecorder_10(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeWidget_11 extends _i1.SmartFake implements _i12.Widget {
_FakeWidget_11(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
@override
String toString(
{_i13.DiagnosticLevel? minLevel = _i13.DiagnosticLevel.info}) =>
super.toString();
}
class _FakeInheritedWidget_12 extends _i1.SmartFake
implements _i12.InheritedWidget {
_FakeInheritedWidget_12(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
@override
String toString(
{_i13.DiagnosticLevel? minLevel = _i13.DiagnosticLevel.info}) =>
super.toString();
}
class _FakeDiagnosticsNode_13 extends _i1.SmartFake
implements _i14.DiagnosticsNode {
_FakeDiagnosticsNode_13(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
@override
String toString({
_i14.TextTreeConfiguration? parentConfiguration,
_i13.DiagnosticLevel? minLevel = _i13.DiagnosticLevel.info,
}) =>
super.toString();
}
/// A class which mocks [Camera].
///
/// See the documentation for Mockito's code generation for more information.
// ignore: must_be_immutable
class MockCamera extends _i1.Mock implements _i8.Camera {
@override
_i15.Future<_i2.CameraInfo> getCameraInfo() => (super.noSuchMethod(
Invocation.method(
#getCameraInfo,
[],
),
returnValue: _i15.Future<_i2.CameraInfo>.value(_FakeCameraInfo_0(
this,
Invocation.method(
#getCameraInfo,
[],
),
)),
returnValueForMissingStub:
_i15.Future<_i2.CameraInfo>.value(_FakeCameraInfo_0(
this,
Invocation.method(
#getCameraInfo,
[],
),
)),
) as _i15.Future<_i2.CameraInfo>);
@override
_i15.Future<_i3.CameraControl> getCameraControl() => (super.noSuchMethod(
Invocation.method(
#getCameraControl,
[],
),
returnValue: _i15.Future<_i3.CameraControl>.value(_FakeCameraControl_1(
this,
Invocation.method(
#getCameraControl,
[],
),
)),
returnValueForMissingStub:
_i15.Future<_i3.CameraControl>.value(_FakeCameraControl_1(
this,
Invocation.method(
#getCameraControl,
[],
),
)),
) as _i15.Future<_i3.CameraControl>);
}
/// 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 _i2.CameraInfo {
@override
_i15.Future<int> getSensorRotationDegrees() => (super.noSuchMethod(
Invocation.method(
#getSensorRotationDegrees,
[],
),
returnValue: _i15.Future<int>.value(0),
returnValueForMissingStub: _i15.Future<int>.value(0),
) as _i15.Future<int>);
@override
_i15.Future<_i4.LiveData<_i16.CameraState>> getCameraState() =>
(super.noSuchMethod(
Invocation.method(
#getCameraState,
[],
),
returnValue: _i15.Future<_i4.LiveData<_i16.CameraState>>.value(
_FakeLiveData_2<_i16.CameraState>(
this,
Invocation.method(
#getCameraState,
[],
),
)),
returnValueForMissingStub:
_i15.Future<_i4.LiveData<_i16.CameraState>>.value(
_FakeLiveData_2<_i16.CameraState>(
this,
Invocation.method(
#getCameraState,
[],
),
)),
) as _i15.Future<_i4.LiveData<_i16.CameraState>>);
@override
_i15.Future<_i5.ExposureState> getExposureState() => (super.noSuchMethod(
Invocation.method(
#getExposureState,
[],
),
returnValue: _i15.Future<_i5.ExposureState>.value(_FakeExposureState_3(
this,
Invocation.method(
#getExposureState,
[],
),
)),
returnValueForMissingStub:
_i15.Future<_i5.ExposureState>.value(_FakeExposureState_3(
this,
Invocation.method(
#getExposureState,
[],
),
)),
) as _i15.Future<_i5.ExposureState>);
@override
_i15.Future<_i4.LiveData<_i17.ZoomState>> getZoomState() =>
(super.noSuchMethod(
Invocation.method(
#getZoomState,
[],
),
returnValue: _i15.Future<_i4.LiveData<_i17.ZoomState>>.value(
_FakeLiveData_2<_i17.ZoomState>(
this,
Invocation.method(
#getZoomState,
[],
),
)),
returnValueForMissingStub:
_i15.Future<_i4.LiveData<_i17.ZoomState>>.value(
_FakeLiveData_2<_i17.ZoomState>(
this,
Invocation.method(
#getZoomState,
[],
),
)),
) as _i15.Future<_i4.LiveData<_i17.ZoomState>>);
}
/// A class which mocks [CameraControl].
///
/// See the documentation for Mockito's code generation for more information.
// ignore: must_be_immutable
class MockCameraControl extends _i1.Mock implements _i3.CameraControl {
@override
_i15.Future<void> enableTorch(bool? torch) => (super.noSuchMethod(
Invocation.method(
#enableTorch,
[torch],
),
returnValue: _i15.Future<void>.value(),
returnValueForMissingStub: _i15.Future<void>.value(),
) as _i15.Future<void>);
}
/// A class which mocks [CameraImageData].
///
/// See the documentation for Mockito's code generation for more information.
// ignore: must_be_immutable
class MockCameraImageData extends _i1.Mock implements _i6.CameraImageData {
@override
_i6.CameraImageFormat get format => (super.noSuchMethod(
Invocation.getter(#format),
returnValue: _FakeCameraImageFormat_4(
this,
Invocation.getter(#format),
),
returnValueForMissingStub: _FakeCameraImageFormat_4(
this,
Invocation.getter(#format),
),
) as _i6.CameraImageFormat);
@override
int get height => (super.noSuchMethod(
Invocation.getter(#height),
returnValue: 0,
returnValueForMissingStub: 0,
) as int);
@override
int get width => (super.noSuchMethod(
Invocation.getter(#width),
returnValue: 0,
returnValueForMissingStub: 0,
) as int);
@override
List<_i6.CameraImagePlane> get planes => (super.noSuchMethod(
Invocation.getter(#planes),
returnValue: <_i6.CameraImagePlane>[],
returnValueForMissingStub: <_i6.CameraImagePlane>[],
) as List<_i6.CameraImagePlane>);
}
/// A class which mocks [CameraSelector].
///
/// See the documentation for Mockito's code generation for more information.
// ignore: must_be_immutable
class MockCameraSelector extends _i1.Mock implements _i18.CameraSelector {
@override
_i15.Future<List<_i2.CameraInfo>> filter(List<_i2.CameraInfo>? cameraInfos) =>
(super.noSuchMethod(
Invocation.method(
#filter,
[cameraInfos],
),
returnValue:
_i15.Future<List<_i2.CameraInfo>>.value(<_i2.CameraInfo>[]),
returnValueForMissingStub:
_i15.Future<List<_i2.CameraInfo>>.value(<_i2.CameraInfo>[]),
) as _i15.Future<List<_i2.CameraInfo>>);
}
/// A class which mocks [ExposureState].
///
/// See the documentation for Mockito's code generation for more information.
// ignore: must_be_immutable
class MockExposureState extends _i1.Mock implements _i5.ExposureState {
@override
_i7.ExposureCompensationRange get exposureCompensationRange =>
(super.noSuchMethod(
Invocation.getter(#exposureCompensationRange),
returnValue: _FakeExposureCompensationRange_5(
this,
Invocation.getter(#exposureCompensationRange),
),
returnValueForMissingStub: _FakeExposureCompensationRange_5(
this,
Invocation.getter(#exposureCompensationRange),
),
) as _i7.ExposureCompensationRange);
@override
double get exposureCompensationStep => (super.noSuchMethod(
Invocation.getter(#exposureCompensationStep),
returnValue: 0.0,
returnValueForMissingStub: 0.0,
) as double);
}
/// A class which mocks [ImageAnalysis].
///
/// See the documentation for Mockito's code generation for more information.
// ignore: must_be_immutable
class MockImageAnalysis extends _i1.Mock implements _i19.ImageAnalysis {
@override
_i15.Future<void> setAnalyzer(_i20.Analyzer? analyzer) => (super.noSuchMethod(
Invocation.method(
#setAnalyzer,
[analyzer],
),
returnValue: _i15.Future<void>.value(),
returnValueForMissingStub: _i15.Future<void>.value(),
) as _i15.Future<void>);
@override
_i15.Future<void> clearAnalyzer() => (super.noSuchMethod(
Invocation.method(
#clearAnalyzer,
[],
),
returnValue: _i15.Future<void>.value(),
returnValueForMissingStub: _i15.Future<void>.value(),
) as _i15.Future<void>);
}
/// A class which mocks [ImageCapture].
///
/// See the documentation for Mockito's code generation for more information.
// ignore: must_be_immutable
class MockImageCapture extends _i1.Mock implements _i21.ImageCapture {
@override
_i15.Future<void> setFlashMode(int? newFlashMode) => (super.noSuchMethod(
Invocation.method(
#setFlashMode,
[newFlashMode],
),
returnValue: _i15.Future<void>.value(),
returnValueForMissingStub: _i15.Future<void>.value(),
) as _i15.Future<void>);
@override
_i15.Future<String> takePicture() => (super.noSuchMethod(
Invocation.method(
#takePicture,
[],
),
returnValue: _i15.Future<String>.value(''),
returnValueForMissingStub: _i15.Future<String>.value(''),
) as _i15.Future<String>);
}
/// A class which mocks [ImageProxy].
///
/// See the documentation for Mockito's code generation for more information.
// ignore: must_be_immutable
class MockImageProxy extends _i1.Mock implements _i22.ImageProxy {
@override
int get format => (super.noSuchMethod(
Invocation.getter(#format),
returnValue: 0,
returnValueForMissingStub: 0,
) as int);
@override
int get height => (super.noSuchMethod(
Invocation.getter(#height),
returnValue: 0,
returnValueForMissingStub: 0,
) as int);
@override
int get width => (super.noSuchMethod(
Invocation.getter(#width),
returnValue: 0,
returnValueForMissingStub: 0,
) as int);
@override
_i15.Future<List<_i23.PlaneProxy>> getPlanes() => (super.noSuchMethod(
Invocation.method(
#getPlanes,
[],
),
returnValue:
_i15.Future<List<_i23.PlaneProxy>>.value(<_i23.PlaneProxy>[]),
returnValueForMissingStub:
_i15.Future<List<_i23.PlaneProxy>>.value(<_i23.PlaneProxy>[]),
) as _i15.Future<List<_i23.PlaneProxy>>);
@override
_i15.Future<void> close() => (super.noSuchMethod(
Invocation.method(
#close,
[],
),
returnValue: _i15.Future<void>.value(),
returnValueForMissingStub: _i15.Future<void>.value(),
) as _i15.Future<void>);
}
/// A class which mocks [PlaneProxy].
///
/// See the documentation for Mockito's code generation for more information.
// ignore: must_be_immutable
class MockPlaneProxy extends _i1.Mock implements _i23.PlaneProxy {
@override
_i24.Uint8List get buffer => (super.noSuchMethod(
Invocation.getter(#buffer),
returnValue: _i24.Uint8List(0),
returnValueForMissingStub: _i24.Uint8List(0),
) as _i24.Uint8List);
@override
int get pixelStride => (super.noSuchMethod(
Invocation.getter(#pixelStride),
returnValue: 0,
returnValueForMissingStub: 0,
) as int);
@override
int get rowStride => (super.noSuchMethod(
Invocation.getter(#rowStride),
returnValue: 0,
returnValueForMissingStub: 0,
) as int);
}
/// A class which mocks [Preview].
///
/// See the documentation for Mockito's code generation for more information.
// ignore: must_be_immutable
class MockPreview extends _i1.Mock implements _i25.Preview {
@override
_i15.Future<int> setSurfaceProvider() => (super.noSuchMethod(
Invocation.method(
#setSurfaceProvider,
[],
),
returnValue: _i15.Future<int>.value(0),
returnValueForMissingStub: _i15.Future<int>.value(0),
) as _i15.Future<int>);
@override
void releaseFlutterSurfaceTexture() => super.noSuchMethod(
Invocation.method(
#releaseFlutterSurfaceTexture,
[],
),
returnValueForMissingStub: null,
);
@override
_i15.Future<_i7.ResolutionInfo> getResolutionInfo() => (super.noSuchMethod(
Invocation.method(
#getResolutionInfo,
[],
),
returnValue:
_i15.Future<_i7.ResolutionInfo>.value(_FakeResolutionInfo_6(
this,
Invocation.method(
#getResolutionInfo,
[],
),
)),
returnValueForMissingStub:
_i15.Future<_i7.ResolutionInfo>.value(_FakeResolutionInfo_6(
this,
Invocation.method(
#getResolutionInfo,
[],
),
)),
) as _i15.Future<_i7.ResolutionInfo>);
}
/// A class which mocks [ProcessCameraProvider].
///
/// See the documentation for Mockito's code generation for more information.
// ignore: must_be_immutable
class MockProcessCameraProvider extends _i1.Mock
implements _i26.ProcessCameraProvider {
@override
_i15.Future<List<_i2.CameraInfo>> getAvailableCameraInfos() =>
(super.noSuchMethod(
Invocation.method(
#getAvailableCameraInfos,
[],
),
returnValue:
_i15.Future<List<_i2.CameraInfo>>.value(<_i2.CameraInfo>[]),
returnValueForMissingStub:
_i15.Future<List<_i2.CameraInfo>>.value(<_i2.CameraInfo>[]),
) as _i15.Future<List<_i2.CameraInfo>>);
@override
_i15.Future<_i8.Camera> bindToLifecycle(
_i18.CameraSelector? cameraSelector,
List<_i27.UseCase>? useCases,
) =>
(super.noSuchMethod(
Invocation.method(
#bindToLifecycle,
[
cameraSelector,
useCases,
],
),
returnValue: _i15.Future<_i8.Camera>.value(_FakeCamera_7(
this,
Invocation.method(
#bindToLifecycle,
[
cameraSelector,
useCases,
],
),
)),
returnValueForMissingStub: _i15.Future<_i8.Camera>.value(_FakeCamera_7(
this,
Invocation.method(
#bindToLifecycle,
[
cameraSelector,
useCases,
],
),
)),
) as _i15.Future<_i8.Camera>);
@override
_i15.Future<bool> isBound(_i27.UseCase? useCase) => (super.noSuchMethod(
Invocation.method(
#isBound,
[useCase],
),
returnValue: _i15.Future<bool>.value(false),
returnValueForMissingStub: _i15.Future<bool>.value(false),
) as _i15.Future<bool>);
@override
void unbind(List<_i27.UseCase>? useCases) => super.noSuchMethod(
Invocation.method(
#unbind,
[useCases],
),
returnValueForMissingStub: null,
);
@override
void unbindAll() => super.noSuchMethod(
Invocation.method(
#unbindAll,
[],
),
returnValueForMissingStub: null,
);
}
/// A class which mocks [Recorder].
///
/// See the documentation for Mockito's code generation for more information.
// ignore: must_be_immutable
class MockRecorder extends _i1.Mock implements _i11.Recorder {
@override
_i15.Future<_i9.PendingRecording> prepareRecording(String? path) =>
(super.noSuchMethod(
Invocation.method(
#prepareRecording,
[path],
),
returnValue:
_i15.Future<_i9.PendingRecording>.value(_FakePendingRecording_8(
this,
Invocation.method(
#prepareRecording,
[path],
),
)),
returnValueForMissingStub:
_i15.Future<_i9.PendingRecording>.value(_FakePendingRecording_8(
this,
Invocation.method(
#prepareRecording,
[path],
),
)),
) as _i15.Future<_i9.PendingRecording>);
}
/// A class which mocks [PendingRecording].
///
/// See the documentation for Mockito's code generation for more information.
// ignore: must_be_immutable
class MockPendingRecording extends _i1.Mock implements _i9.PendingRecording {
@override
_i15.Future<_i10.Recording> start() => (super.noSuchMethod(
Invocation.method(
#start,
[],
),
returnValue: _i15.Future<_i10.Recording>.value(_FakeRecording_9(
this,
Invocation.method(
#start,
[],
),
)),
returnValueForMissingStub:
_i15.Future<_i10.Recording>.value(_FakeRecording_9(
this,
Invocation.method(
#start,
[],
),
)),
) as _i15.Future<_i10.Recording>);
}
/// A class which mocks [Recording].
///
/// See the documentation for Mockito's code generation for more information.
// ignore: must_be_immutable
class MockRecording extends _i1.Mock implements _i10.Recording {
@override
_i15.Future<void> close() => (super.noSuchMethod(
Invocation.method(
#close,
[],
),
returnValue: _i15.Future<void>.value(),
returnValueForMissingStub: _i15.Future<void>.value(),
) as _i15.Future<void>);
@override
_i15.Future<void> pause() => (super.noSuchMethod(
Invocation.method(
#pause,
[],
),
returnValue: _i15.Future<void>.value(),
returnValueForMissingStub: _i15.Future<void>.value(),
) as _i15.Future<void>);
@override
_i15.Future<void> resume() => (super.noSuchMethod(
Invocation.method(
#resume,
[],
),
returnValue: _i15.Future<void>.value(),
returnValueForMissingStub: _i15.Future<void>.value(),
) as _i15.Future<void>);
@override
_i15.Future<void> stop() => (super.noSuchMethod(
Invocation.method(
#stop,
[],
),
returnValue: _i15.Future<void>.value(),
returnValueForMissingStub: _i15.Future<void>.value(),
) as _i15.Future<void>);
}
/// A class which mocks [VideoCapture].
///
/// See the documentation for Mockito's code generation for more information.
// ignore: must_be_immutable
class MockVideoCapture extends _i1.Mock implements _i28.VideoCapture {
@override
_i15.Future<_i11.Recorder> getOutput() => (super.noSuchMethod(
Invocation.method(
#getOutput,
[],
),
returnValue: _i15.Future<_i11.Recorder>.value(_FakeRecorder_10(
this,
Invocation.method(
#getOutput,
[],
),
)),
returnValueForMissingStub:
_i15.Future<_i11.Recorder>.value(_FakeRecorder_10(
this,
Invocation.method(
#getOutput,
[],
),
)),
) as _i15.Future<_i11.Recorder>);
}
/// A class which mocks [BuildContext].
///
/// See the documentation for Mockito's code generation for more information.
class MockBuildContext extends _i1.Mock implements _i12.BuildContext {
@override
_i12.Widget get widget => (super.noSuchMethod(
Invocation.getter(#widget),
returnValue: _FakeWidget_11(
this,
Invocation.getter(#widget),
),
returnValueForMissingStub: _FakeWidget_11(
this,
Invocation.getter(#widget),
),
) as _i12.Widget);
@override
bool get mounted => (super.noSuchMethod(
Invocation.getter(#mounted),
returnValue: false,
returnValueForMissingStub: false,
) as bool);
@override
bool get debugDoingBuild => (super.noSuchMethod(
Invocation.getter(#debugDoingBuild),
returnValue: false,
returnValueForMissingStub: false,
) as bool);
@override
_i12.InheritedWidget dependOnInheritedElement(
_i12.InheritedElement? ancestor, {
Object? aspect,
}) =>
(super.noSuchMethod(
Invocation.method(
#dependOnInheritedElement,
[ancestor],
{#aspect: aspect},
),
returnValue: _FakeInheritedWidget_12(
this,
Invocation.method(
#dependOnInheritedElement,
[ancestor],
{#aspect: aspect},
),
),
returnValueForMissingStub: _FakeInheritedWidget_12(
this,
Invocation.method(
#dependOnInheritedElement,
[ancestor],
{#aspect: aspect},
),
),
) as _i12.InheritedWidget);
@override
void visitAncestorElements(_i12.ConditionalElementVisitor? visitor) =>
super.noSuchMethod(
Invocation.method(
#visitAncestorElements,
[visitor],
),
returnValueForMissingStub: null,
);
@override
void visitChildElements(_i12.ElementVisitor? visitor) => super.noSuchMethod(
Invocation.method(
#visitChildElements,
[visitor],
),
returnValueForMissingStub: null,
);
@override
void dispatchNotification(_i12.Notification? notification) =>
super.noSuchMethod(
Invocation.method(
#dispatchNotification,
[notification],
),
returnValueForMissingStub: null,
);
@override
_i14.DiagnosticsNode describeElement(
String? name, {
_i14.DiagnosticsTreeStyle? style = _i14.DiagnosticsTreeStyle.errorProperty,
}) =>
(super.noSuchMethod(
Invocation.method(
#describeElement,
[name],
{#style: style},
),
returnValue: _FakeDiagnosticsNode_13(
this,
Invocation.method(
#describeElement,
[name],
{#style: style},
),
),
returnValueForMissingStub: _FakeDiagnosticsNode_13(
this,
Invocation.method(
#describeElement,
[name],
{#style: style},
),
),
) as _i14.DiagnosticsNode);
@override
_i14.DiagnosticsNode describeWidget(
String? name, {
_i14.DiagnosticsTreeStyle? style = _i14.DiagnosticsTreeStyle.errorProperty,
}) =>
(super.noSuchMethod(
Invocation.method(
#describeWidget,
[name],
{#style: style},
),
returnValue: _FakeDiagnosticsNode_13(
this,
Invocation.method(
#describeWidget,
[name],
{#style: style},
),
),
returnValueForMissingStub: _FakeDiagnosticsNode_13(
this,
Invocation.method(
#describeWidget,
[name],
{#style: style},
),
),
) as _i14.DiagnosticsNode);
@override
List<_i14.DiagnosticsNode> describeMissingAncestor(
{required Type? expectedAncestorType}) =>
(super.noSuchMethod(
Invocation.method(
#describeMissingAncestor,
[],
{#expectedAncestorType: expectedAncestorType},
),
returnValue: <_i14.DiagnosticsNode>[],
returnValueForMissingStub: <_i14.DiagnosticsNode>[],
) as List<_i14.DiagnosticsNode>);
@override
_i14.DiagnosticsNode describeOwnershipChain(String? name) =>
(super.noSuchMethod(
Invocation.method(
#describeOwnershipChain,
[name],
),
returnValue: _FakeDiagnosticsNode_13(
this,
Invocation.method(
#describeOwnershipChain,
[name],
),
),
returnValueForMissingStub: _FakeDiagnosticsNode_13(
this,
Invocation.method(
#describeOwnershipChain,
[name],
),
),
) as _i14.DiagnosticsNode);
}
/// A class which mocks [TestInstanceManagerHostApi].
///
/// See the documentation for Mockito's code generation for more information.
class MockTestInstanceManagerHostApi extends _i1.Mock
implements _i29.TestInstanceManagerHostApi {
@override
void clear() => super.noSuchMethod(
Invocation.method(
#clear,
[],
),
returnValueForMissingStub: null,
);
}
/// A class which mocks [TestSystemServicesHostApi].
///
/// See the documentation for Mockito's code generation for more information.
class MockTestSystemServicesHostApi extends _i1.Mock
implements _i29.TestSystemServicesHostApi {
@override
_i15.Future<_i7.CameraPermissionsErrorData?> requestCameraPermissions(
bool? enableAudio) =>
(super.noSuchMethod(
Invocation.method(
#requestCameraPermissions,
[enableAudio],
),
returnValue: _i15.Future<_i7.CameraPermissionsErrorData?>.value(),
returnValueForMissingStub:
_i15.Future<_i7.CameraPermissionsErrorData?>.value(),
) as _i15.Future<_i7.CameraPermissionsErrorData?>);
@override
void startListeningForDeviceOrientationChange(
bool? isFrontFacing,
int? sensorOrientation,
) =>
super.noSuchMethod(
Invocation.method(
#startListeningForDeviceOrientationChange,
[
isFrontFacing,
sensorOrientation,
],
),
returnValueForMissingStub: null,
);
@override
void stopListeningForDeviceOrientationChange() => super.noSuchMethod(
Invocation.method(
#stopListeningForDeviceOrientationChange,
[],
),
returnValueForMissingStub: null,
);
@override
String getTempFilePath(
String? prefix,
String? suffix,
) =>
(super.noSuchMethod(
Invocation.method(
#getTempFilePath,
[
prefix,
suffix,
],
),
returnValue: '',
returnValueForMissingStub: '',
) as String);
}
/// A class which mocks [ZoomState].
///
/// See the documentation for Mockito's code generation for more information.
// ignore: must_be_immutable
class MockZoomState extends _i1.Mock implements _i17.ZoomState {
@override
double get minZoomRatio => (super.noSuchMethod(
Invocation.getter(#minZoomRatio),
returnValue: 0.0,
returnValueForMissingStub: 0.0,
) as double);
@override
double get maxZoomRatio => (super.noSuchMethod(
Invocation.getter(#maxZoomRatio),
returnValue: 0.0,
returnValueForMissingStub: 0.0,
) as double);
}
/// A class which mocks [LiveData].
///
/// See the documentation for Mockito's code generation for more information.
// ignore: must_be_immutable
class MockLiveCameraState extends _i1.Mock
implements _i4.LiveData<_i16.CameraState> {
MockLiveCameraState() {
_i1.throwOnMissingStub(this);
}
@override
_i15.Future<void> observe(_i30.Observer<_i16.CameraState>? observer) =>
(super.noSuchMethod(
Invocation.method(
#observe,
[observer],
),
returnValue: _i15.Future<void>.value(),
returnValueForMissingStub: _i15.Future<void>.value(),
) as _i15.Future<void>);
@override
_i15.Future<void> removeObservers() => (super.noSuchMethod(
Invocation.method(
#removeObservers,
[],
),
returnValue: _i15.Future<void>.value(),
returnValueForMissingStub: _i15.Future<void>.value(),
) as _i15.Future<void>);
}
/// A class which mocks [LiveData].
///
/// See the documentation for Mockito's code generation for more information.
// ignore: must_be_immutable
class MockLiveZoomState extends _i1.Mock
implements _i4.LiveData<_i17.ZoomState> {
MockLiveZoomState() {
_i1.throwOnMissingStub(this);
}
@override
_i15.Future<void> observe(_i30.Observer<_i17.ZoomState>? observer) =>
(super.noSuchMethod(
Invocation.method(
#observe,
[observer],
),
returnValue: _i15.Future<void>.value(),
returnValueForMissingStub: _i15.Future<void>.value(),
) as _i15.Future<void>);
@override
_i15.Future<void> removeObservers() => (super.noSuchMethod(
Invocation.method(
#removeObservers,
[],
),
returnValue: _i15.Future<void>.value(),
returnValueForMissingStub: _i15.Future<void>.value(),
) as _i15.Future<void>);
}