// Mocks generated by Mockito 5.4.5 from annotations // in webview_flutter/test/webview_widget_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes import 'dart:async' as _i7; import 'dart:ui' as _i3; import 'package:flutter/foundation.dart' as _i5; import 'package:flutter/widgets.dart' as _i4; import 'package:mockito/mockito.dart' as _i1; import 'package:webview_flutter_platform_interface/src/platform_navigation_delegate.dart' as _i8; import 'package:webview_flutter_platform_interface/src/platform_webview_controller.dart' as _i6; import 'package:webview_flutter_platform_interface/src/platform_webview_widget.dart' as _i9; import 'package:webview_flutter_platform_interface/src/types/types.dart' as _i2; // 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: must_be_immutable // 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 _FakePlatformWebViewControllerCreationParams_0 extends _i1.SmartFake implements _i2.PlatformWebViewControllerCreationParams { _FakePlatformWebViewControllerCreationParams_0( Object parent, Invocation parentInvocation, ) : super(parent, parentInvocation); } class _FakeObject_1 extends _i1.SmartFake implements Object { _FakeObject_1(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); } class _FakeOffset_2 extends _i1.SmartFake implements _i3.Offset { _FakeOffset_2(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); } class _FakePlatformWebViewWidgetCreationParams_3 extends _i1.SmartFake implements _i2.PlatformWebViewWidgetCreationParams { _FakePlatformWebViewWidgetCreationParams_3( Object parent, Invocation parentInvocation, ) : super(parent, parentInvocation); } class _FakeWidget_4 extends _i1.SmartFake implements _i4.Widget { _FakeWidget_4(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); @override String toString({_i5.DiagnosticLevel? minLevel = _i5.DiagnosticLevel.info}) => super.toString(); } /// A class which mocks [PlatformWebViewController]. /// /// See the documentation for Mockito's code generation for more information. class MockPlatformWebViewController extends _i1.Mock implements _i6.PlatformWebViewController { MockPlatformWebViewController() { _i1.throwOnMissingStub(this); } @override _i2.PlatformWebViewControllerCreationParams get params => (super.noSuchMethod( Invocation.getter(#params), returnValue: _FakePlatformWebViewControllerCreationParams_0( this, Invocation.getter(#params), ), ) as _i2.PlatformWebViewControllerCreationParams); @override _i7.Future loadFile(String? absoluteFilePath) => (super.noSuchMethod( Invocation.method(#loadFile, [absoluteFilePath]), returnValue: _i7.Future.value(), returnValueForMissingStub: _i7.Future.value(), ) as _i7.Future); @override _i7.Future loadFlutterAsset(String? key) => (super.noSuchMethod( Invocation.method(#loadFlutterAsset, [key]), returnValue: _i7.Future.value(), returnValueForMissingStub: _i7.Future.value(), ) as _i7.Future); @override _i7.Future loadHtmlString(String? html, {String? baseUrl}) => (super.noSuchMethod( Invocation.method(#loadHtmlString, [html], {#baseUrl: baseUrl}), returnValue: _i7.Future.value(), returnValueForMissingStub: _i7.Future.value(), ) as _i7.Future); @override _i7.Future loadRequest(_i2.LoadRequestParams? params) => (super.noSuchMethod( Invocation.method(#loadRequest, [params]), returnValue: _i7.Future.value(), returnValueForMissingStub: _i7.Future.value(), ) as _i7.Future); @override _i7.Future currentUrl() => (super.noSuchMethod( Invocation.method(#currentUrl, []), returnValue: _i7.Future.value(), ) as _i7.Future); @override _i7.Future canGoBack() => (super.noSuchMethod( Invocation.method(#canGoBack, []), returnValue: _i7.Future.value(false), ) as _i7.Future); @override _i7.Future canGoForward() => (super.noSuchMethod( Invocation.method(#canGoForward, []), returnValue: _i7.Future.value(false), ) as _i7.Future); @override _i7.Future goBack() => (super.noSuchMethod( Invocation.method(#goBack, []), returnValue: _i7.Future.value(), returnValueForMissingStub: _i7.Future.value(), ) as _i7.Future); @override _i7.Future goForward() => (super.noSuchMethod( Invocation.method(#goForward, []), returnValue: _i7.Future.value(), returnValueForMissingStub: _i7.Future.value(), ) as _i7.Future); @override _i7.Future reload() => (super.noSuchMethod( Invocation.method(#reload, []), returnValue: _i7.Future.value(), returnValueForMissingStub: _i7.Future.value(), ) as _i7.Future); @override _i7.Future clearCache() => (super.noSuchMethod( Invocation.method(#clearCache, []), returnValue: _i7.Future.value(), returnValueForMissingStub: _i7.Future.value(), ) as _i7.Future); @override _i7.Future clearLocalStorage() => (super.noSuchMethod( Invocation.method(#clearLocalStorage, []), returnValue: _i7.Future.value(), returnValueForMissingStub: _i7.Future.value(), ) as _i7.Future); @override _i7.Future setPlatformNavigationDelegate( _i8.PlatformNavigationDelegate? handler, ) => (super.noSuchMethod( Invocation.method(#setPlatformNavigationDelegate, [handler]), returnValue: _i7.Future.value(), returnValueForMissingStub: _i7.Future.value(), ) as _i7.Future); @override _i7.Future runJavaScript(String? javaScript) => (super.noSuchMethod( Invocation.method(#runJavaScript, [javaScript]), returnValue: _i7.Future.value(), returnValueForMissingStub: _i7.Future.value(), ) as _i7.Future); @override _i7.Future runJavaScriptReturningResult(String? javaScript) => (super.noSuchMethod( Invocation.method(#runJavaScriptReturningResult, [javaScript]), returnValue: _i7.Future.value( _FakeObject_1( this, Invocation.method(#runJavaScriptReturningResult, [javaScript]), ), ), ) as _i7.Future); @override _i7.Future addJavaScriptChannel( _i6.JavaScriptChannelParams? javaScriptChannelParams, ) => (super.noSuchMethod( Invocation.method(#addJavaScriptChannel, [javaScriptChannelParams]), returnValue: _i7.Future.value(), returnValueForMissingStub: _i7.Future.value(), ) as _i7.Future); @override _i7.Future removeJavaScriptChannel(String? javaScriptChannelName) => (super.noSuchMethod( Invocation.method(#removeJavaScriptChannel, [ javaScriptChannelName, ]), returnValue: _i7.Future.value(), returnValueForMissingStub: _i7.Future.value(), ) as _i7.Future); @override _i7.Future getTitle() => (super.noSuchMethod( Invocation.method(#getTitle, []), returnValue: _i7.Future.value(), ) as _i7.Future); @override _i7.Future scrollTo(int? x, int? y) => (super.noSuchMethod( Invocation.method(#scrollTo, [x, y]), returnValue: _i7.Future.value(), returnValueForMissingStub: _i7.Future.value(), ) as _i7.Future); @override _i7.Future scrollBy(int? x, int? y) => (super.noSuchMethod( Invocation.method(#scrollBy, [x, y]), returnValue: _i7.Future.value(), returnValueForMissingStub: _i7.Future.value(), ) as _i7.Future); @override _i7.Future setVerticalScrollBarEnabled(bool? enabled) => (super.noSuchMethod( Invocation.method(#setVerticalScrollBarEnabled, [enabled]), returnValue: _i7.Future.value(), returnValueForMissingStub: _i7.Future.value(), ) as _i7.Future); @override _i7.Future setHorizontalScrollBarEnabled(bool? enabled) => (super.noSuchMethod( Invocation.method(#setHorizontalScrollBarEnabled, [enabled]), returnValue: _i7.Future.value(), returnValueForMissingStub: _i7.Future.value(), ) as _i7.Future); @override bool supportsSetScrollBarsEnabled() => (super.noSuchMethod( Invocation.method(#supportsSetScrollBarsEnabled, []), returnValue: false, ) as bool); @override _i7.Future<_i3.Offset> getScrollPosition() => (super.noSuchMethod( Invocation.method(#getScrollPosition, []), returnValue: _i7.Future<_i3.Offset>.value( _FakeOffset_2(this, Invocation.method(#getScrollPosition, [])), ), ) as _i7.Future<_i3.Offset>); @override _i7.Future enableZoom(bool? enabled) => (super.noSuchMethod( Invocation.method(#enableZoom, [enabled]), returnValue: _i7.Future.value(), returnValueForMissingStub: _i7.Future.value(), ) as _i7.Future); @override _i7.Future setBackgroundColor(_i3.Color? color) => (super.noSuchMethod( Invocation.method(#setBackgroundColor, [color]), returnValue: _i7.Future.value(), returnValueForMissingStub: _i7.Future.value(), ) as _i7.Future); @override _i7.Future setJavaScriptMode(_i2.JavaScriptMode? javaScriptMode) => (super.noSuchMethod( Invocation.method(#setJavaScriptMode, [javaScriptMode]), returnValue: _i7.Future.value(), returnValueForMissingStub: _i7.Future.value(), ) as _i7.Future); @override _i7.Future setUserAgent(String? userAgent) => (super.noSuchMethod( Invocation.method(#setUserAgent, [userAgent]), returnValue: _i7.Future.value(), returnValueForMissingStub: _i7.Future.value(), ) as _i7.Future); @override _i7.Future setOnPlatformPermissionRequest( void Function(_i2.PlatformWebViewPermissionRequest)? onPermissionRequest, ) => (super.noSuchMethod( Invocation.method(#setOnPlatformPermissionRequest, [ onPermissionRequest, ]), returnValue: _i7.Future.value(), returnValueForMissingStub: _i7.Future.value(), ) as _i7.Future); @override _i7.Future getUserAgent() => (super.noSuchMethod( Invocation.method(#getUserAgent, []), returnValue: _i7.Future.value(), ) as _i7.Future); @override _i7.Future setOnConsoleMessage( void Function(_i2.JavaScriptConsoleMessage)? onConsoleMessage, ) => (super.noSuchMethod( Invocation.method(#setOnConsoleMessage, [onConsoleMessage]), returnValue: _i7.Future.value(), returnValueForMissingStub: _i7.Future.value(), ) as _i7.Future); @override _i7.Future setOnScrollPositionChange( void Function(_i2.ScrollPositionChange)? onScrollPositionChange, ) => (super.noSuchMethod( Invocation.method(#setOnScrollPositionChange, [ onScrollPositionChange, ]), returnValue: _i7.Future.value(), returnValueForMissingStub: _i7.Future.value(), ) as _i7.Future); @override _i7.Future setOnJavaScriptAlertDialog( _i7.Future Function(_i2.JavaScriptAlertDialogRequest)? onJavaScriptAlertDialog, ) => (super.noSuchMethod( Invocation.method(#setOnJavaScriptAlertDialog, [ onJavaScriptAlertDialog, ]), returnValue: _i7.Future.value(), returnValueForMissingStub: _i7.Future.value(), ) as _i7.Future); @override _i7.Future setOnJavaScriptConfirmDialog( _i7.Future Function(_i2.JavaScriptConfirmDialogRequest)? onJavaScriptConfirmDialog, ) => (super.noSuchMethod( Invocation.method(#setOnJavaScriptConfirmDialog, [ onJavaScriptConfirmDialog, ]), returnValue: _i7.Future.value(), returnValueForMissingStub: _i7.Future.value(), ) as _i7.Future); @override _i7.Future setOnJavaScriptTextInputDialog( _i7.Future Function(_i2.JavaScriptTextInputDialogRequest)? onJavaScriptTextInputDialog, ) => (super.noSuchMethod( Invocation.method(#setOnJavaScriptTextInputDialog, [ onJavaScriptTextInputDialog, ]), returnValue: _i7.Future.value(), returnValueForMissingStub: _i7.Future.value(), ) as _i7.Future); @override _i7.Future setOverScrollMode(_i2.WebViewOverScrollMode? mode) => (super.noSuchMethod( Invocation.method(#setOverScrollMode, [mode]), returnValue: _i7.Future.value(), returnValueForMissingStub: _i7.Future.value(), ) as _i7.Future); } /// A class which mocks [PlatformWebViewWidget]. /// /// See the documentation for Mockito's code generation for more information. class MockPlatformWebViewWidget extends _i1.Mock implements _i9.PlatformWebViewWidget { MockPlatformWebViewWidget() { _i1.throwOnMissingStub(this); } @override _i2.PlatformWebViewWidgetCreationParams get params => (super.noSuchMethod( Invocation.getter(#params), returnValue: _FakePlatformWebViewWidgetCreationParams_3( this, Invocation.getter(#params), ), ) as _i2.PlatformWebViewWidgetCreationParams); @override _i4.Widget build(_i4.BuildContext? context) => (super.noSuchMethod( Invocation.method(#build, [context]), returnValue: _FakeWidget_4( this, Invocation.method(#build, [context]), ), ) as _i4.Widget); }