forked from flutter/packages
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnavigation_delegate_test.mocks.dart
More file actions
251 lines (239 loc) · 7.92 KB
/
navigation_delegate_test.mocks.dart
File metadata and controls
251 lines (239 loc) · 7.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
// Mocks generated by Mockito 5.4.0 from annotations
// in webview_flutter/test/navigation_delegate_test.dart.
// Do not manually edit this file.
// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i8;
import 'package:mockito/mockito.dart' as _i1;
import 'package:webview_flutter_platform_interface/src/platform_navigation_delegate.dart'
as _i3;
import 'package:webview_flutter_platform_interface/src/platform_webview_controller.dart'
as _i4;
import 'package:webview_flutter_platform_interface/src/platform_webview_cookie_manager.dart'
as _i2;
import 'package:webview_flutter_platform_interface/src/platform_webview_widget.dart'
as _i5;
import 'package:webview_flutter_platform_interface/src/types/types.dart' as _i6;
import 'package:webview_flutter_platform_interface/src/webview_platform.dart'
as _i7;
// 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 _FakePlatformWebViewCookieManager_0 extends _i1.SmartFake
implements _i2.PlatformWebViewCookieManager {
_FakePlatformWebViewCookieManager_0(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakePlatformNavigationDelegate_1 extends _i1.SmartFake
implements _i3.PlatformNavigationDelegate {
_FakePlatformNavigationDelegate_1(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakePlatformWebViewController_2 extends _i1.SmartFake
implements _i4.PlatformWebViewController {
_FakePlatformWebViewController_2(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakePlatformWebViewWidget_3 extends _i1.SmartFake
implements _i5.PlatformWebViewWidget {
_FakePlatformWebViewWidget_3(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakePlatformNavigationDelegateCreationParams_4 extends _i1.SmartFake
implements _i6.PlatformNavigationDelegateCreationParams {
_FakePlatformNavigationDelegateCreationParams_4(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
/// A class which mocks [WebViewPlatform].
///
/// See the documentation for Mockito's code generation for more information.
class MockWebViewPlatform extends _i1.Mock implements _i7.WebViewPlatform {
MockWebViewPlatform() {
_i1.throwOnMissingStub(this);
}
@override
_i2.PlatformWebViewCookieManager createPlatformCookieManager(
_i6.PlatformWebViewCookieManagerCreationParams? params) =>
(super.noSuchMethod(
Invocation.method(
#createPlatformCookieManager,
[params],
),
returnValue: _FakePlatformWebViewCookieManager_0(
this,
Invocation.method(
#createPlatformCookieManager,
[params],
),
),
) as _i2.PlatformWebViewCookieManager);
@override
_i3.PlatformNavigationDelegate createPlatformNavigationDelegate(
_i6.PlatformNavigationDelegateCreationParams? params) =>
(super.noSuchMethod(
Invocation.method(
#createPlatformNavigationDelegate,
[params],
),
returnValue: _FakePlatformNavigationDelegate_1(
this,
Invocation.method(
#createPlatformNavigationDelegate,
[params],
),
),
) as _i3.PlatformNavigationDelegate);
@override
_i4.PlatformWebViewController createPlatformWebViewController(
_i6.PlatformWebViewControllerCreationParams? params) =>
(super.noSuchMethod(
Invocation.method(
#createPlatformWebViewController,
[params],
),
returnValue: _FakePlatformWebViewController_2(
this,
Invocation.method(
#createPlatformWebViewController,
[params],
),
),
) as _i4.PlatformWebViewController);
@override
_i5.PlatformWebViewWidget createPlatformWebViewWidget(
_i6.PlatformWebViewWidgetCreationParams? params) =>
(super.noSuchMethod(
Invocation.method(
#createPlatformWebViewWidget,
[params],
),
returnValue: _FakePlatformWebViewWidget_3(
this,
Invocation.method(
#createPlatformWebViewWidget,
[params],
),
),
) as _i5.PlatformWebViewWidget);
}
/// A class which mocks [PlatformNavigationDelegate].
///
/// See the documentation for Mockito's code generation for more information.
class MockPlatformNavigationDelegate extends _i1.Mock
implements _i3.PlatformNavigationDelegate {
MockPlatformNavigationDelegate() {
_i1.throwOnMissingStub(this);
}
@override
_i6.PlatformNavigationDelegateCreationParams get params =>
(super.noSuchMethod(
Invocation.getter(#params),
returnValue: _FakePlatformNavigationDelegateCreationParams_4(
this,
Invocation.getter(#params),
),
) as _i6.PlatformNavigationDelegateCreationParams);
@override
_i8.Future<void> setOnNavigationRequest(
_i3.NavigationRequestCallback? onNavigationRequest) =>
(super.noSuchMethod(
Invocation.method(
#setOnNavigationRequest,
[onNavigationRequest],
),
returnValue: _i8.Future<void>.value(),
returnValueForMissingStub: _i8.Future<void>.value(),
) as _i8.Future<void>);
@override
_i8.Future<void> setOnPageStarted(_i3.PageEventCallback? onPageStarted) =>
(super.noSuchMethod(
Invocation.method(
#setOnPageStarted,
[onPageStarted],
),
returnValue: _i8.Future<void>.value(),
returnValueForMissingStub: _i8.Future<void>.value(),
) as _i8.Future<void>);
@override
_i8.Future<void> setOnPageFinished(_i3.PageEventCallback? onPageFinished) =>
(super.noSuchMethod(
Invocation.method(
#setOnPageFinished,
[onPageFinished],
),
returnValue: _i8.Future<void>.value(),
returnValueForMissingStub: _i8.Future<void>.value(),
) as _i8.Future<void>);
@override
_i8.Future<void> setOnPageError(_i3.PageErrorCallback? onPageError) =>
(super.noSuchMethod(
Invocation.method(
#setOnPageError,
[onPageError],
),
returnValue: _i8.Future<void>.value(),
returnValueForMissingStub: _i8.Future<void>.value(),
) as _i8.Future<void>);
@override
_i8.Future<void> setOnProgress(_i3.ProgressCallback? onProgress) =>
(super.noSuchMethod(
Invocation.method(
#setOnProgress,
[onProgress],
),
returnValue: _i8.Future<void>.value(),
returnValueForMissingStub: _i8.Future<void>.value(),
) as _i8.Future<void>);
@override
_i8.Future<void> setOnWebResourceError(
_i3.WebResourceErrorCallback? onWebResourceError) =>
(super.noSuchMethod(
Invocation.method(
#setOnWebResourceError,
[onWebResourceError],
),
returnValue: _i8.Future<void>.value(),
returnValueForMissingStub: _i8.Future<void>.value(),
) as _i8.Future<void>);
@override
_i8.Future<void> setOnUrlChange(_i3.UrlChangeCallback? onUrlChange) =>
(super.noSuchMethod(
Invocation.method(
#setOnUrlChange,
[onUrlChange],
),
returnValue: _i8.Future<void>.value(),
returnValueForMissingStub: _i8.Future<void>.value(),
) as _i8.Future<void>);
}