Skip to content

Commit 50559ae

Browse files
committed
Uses mocks generated with latest stable Flutter version
1 parent 25f139d commit 50559ae

File tree

2 files changed

+30
-10
lines changed

2 files changed

+30
-10
lines changed

packages/webview_flutter/webview_flutter/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: webview_flutter
22
description: A Flutter plugin that provides a WebView widget on Android and iOS.
33
repository: https://github.com/flutter/packages/tree/main/packages/webview_flutter/webview_flutter
44
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+webview%22
5-
version: 4.0.5
5+
version: 4.0.6
66

77
environment:
88
sdk: ">=2.17.0 <3.0.0"

packages/webview_flutter/webview_flutter_android/test/android_webview_controller_test.mocks.dart

Lines changed: 29 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1093,11 +1093,11 @@ class MockAndroidWebViewWidgetCreationParams extends _i1.Mock
10931093
class MockExpensiveAndroidViewController extends _i1.Mock
10941094
implements _i7.ExpensiveAndroidViewController {
10951095
@override
1096-
int get textureId => (super.noSuchMethod(
1097-
Invocation.getter(#textureId),
1098-
returnValue: 0,
1099-
returnValueForMissingStub: 0,
1100-
) as int);
1096+
bool get requiresViewComposition => (super.noSuchMethod(
1097+
Invocation.getter(#requiresViewComposition),
1098+
returnValue: false,
1099+
returnValueForMissingStub: false,
1100+
) as bool);
11011101
@override
11021102
int get viewId => (super.noSuchMethod(
11031103
Invocation.getter(#viewId),
@@ -1153,11 +1153,18 @@ class MockExpensiveAndroidViewController extends _i1.Mock
11531153
returnValueForMissingStub: _i9.Future<void>.value(),
11541154
) as _i9.Future<void>);
11551155
@override
1156-
_i9.Future<void> create({_i4.Size? size}) => (super.noSuchMethod(
1156+
_i9.Future<void> create({
1157+
_i4.Size? size,
1158+
_i4.Offset? position,
1159+
}) =>
1160+
(super.noSuchMethod(
11571161
Invocation.method(
11581162
#create,
11591163
[],
1160-
{#size: size},
1164+
{
1165+
#size: size,
1166+
#position: position,
1167+
},
11611168
),
11621169
returnValue: _i9.Future<void>.value(),
11631170
returnValueForMissingStub: _i9.Future<void>.value(),
@@ -1438,6 +1445,12 @@ class MockPlatformViewsServiceProxy extends _i1.Mock
14381445
class MockSurfaceAndroidViewController extends _i1.Mock
14391446
implements _i7.SurfaceAndroidViewController {
14401447
@override
1448+
bool get requiresViewComposition => (super.noSuchMethod(
1449+
Invocation.getter(#requiresViewComposition),
1450+
returnValue: false,
1451+
returnValueForMissingStub: false,
1452+
) as bool);
1453+
@override
14411454
int get viewId => (super.noSuchMethod(
14421455
Invocation.getter(#viewId),
14431456
returnValue: 0,
@@ -1492,11 +1505,18 @@ class MockSurfaceAndroidViewController extends _i1.Mock
14921505
returnValueForMissingStub: _i9.Future<void>.value(),
14931506
) as _i9.Future<void>);
14941507
@override
1495-
_i9.Future<void> create({_i4.Size? size}) => (super.noSuchMethod(
1508+
_i9.Future<void> create({
1509+
_i4.Size? size,
1510+
_i4.Offset? position,
1511+
}) =>
1512+
(super.noSuchMethod(
14961513
Invocation.method(
14971514
#create,
14981515
[],
1499-
{#size: size},
1516+
{
1517+
#size: size,
1518+
#position: position,
1519+
},
15001520
),
15011521
returnValue: _i9.Future<void>.value(),
15021522
returnValueForMissingStub: _i9.Future<void>.value(),

0 commit comments

Comments
 (0)