@@ -24,7 +24,7 @@ void main() {
2424 test ('returns true' , () async {
2525 mock
2626 ..setCanLaunchExpectations ('foo' )
27- ..setResponse (true );
27+ ..setLaunchResponse (true );
2828
2929 final bool result = await canLaunch ('foo' );
3030
@@ -34,7 +34,7 @@ void main() {
3434 test ('returns false' , () async {
3535 mock
3636 ..setCanLaunchExpectations ('foo' )
37- ..setResponse (false );
37+ ..setLaunchResponse (false );
3838
3939 final bool result = await canLaunch ('foo' );
4040
@@ -55,7 +55,7 @@ void main() {
5555 webOnlyWindowName: null ,
5656 showTitle: false ,
5757 )
58- ..setResponse (true );
58+ ..setLaunchResponse (true );
5959 expect (await launch ('http://flutter.dev/' ), isTrue);
6060 });
6161
@@ -72,7 +72,7 @@ void main() {
7272 webOnlyWindowName: null ,
7373 showTitle: false ,
7474 )
75- ..setResponse (true );
75+ ..setLaunchResponse (true );
7676 expect (
7777 await launch ('http://flutter.dev/' , headers: < String , String > {'key' : 'value' }),
7878 isTrue,
@@ -92,7 +92,7 @@ void main() {
9292 webOnlyWindowName: null ,
9393 showTitle: false ,
9494 )
95- ..setResponse (true );
95+ ..setLaunchResponse (true );
9696 expect (await launch ('http://flutter.dev/' , forceSafariVC: true ), isTrue);
9797 });
9898
@@ -109,7 +109,7 @@ void main() {
109109 webOnlyWindowName: null ,
110110 showTitle: false ,
111111 )
112- ..setResponse (true );
112+ ..setLaunchResponse (true );
113113 expect (
114114 await launch ('http://flutter.dev/' , forceSafariVC: false , universalLinksOnly: true ),
115115 isTrue,
@@ -129,7 +129,7 @@ void main() {
129129 webOnlyWindowName: null ,
130130 showTitle: false ,
131131 )
132- ..setResponse (true );
132+ ..setLaunchResponse (true );
133133 expect (await launch ('http://flutter.dev/' , forceWebView: true ), isTrue);
134134 });
135135
@@ -146,7 +146,7 @@ void main() {
146146 webOnlyWindowName: null ,
147147 showTitle: false ,
148148 )
149- ..setResponse (true );
149+ ..setLaunchResponse (true );
150150 expect (
151151 await launch ('http://flutter.dev/' , forceWebView: true , enableJavaScript: true ),
152152 isTrue,
@@ -166,7 +166,7 @@ void main() {
166166 webOnlyWindowName: null ,
167167 showTitle: false ,
168168 )
169- ..setResponse (true );
169+ ..setLaunchResponse (true );
170170 expect (
171171 await launch ('http://flutter.dev/' , forceWebView: true , enableDomStorage: true ),
172172 isTrue,
@@ -186,7 +186,7 @@ void main() {
186186 webOnlyWindowName: null ,
187187 showTitle: false ,
188188 )
189- ..setResponse (true );
189+ ..setLaunchResponse (true );
190190 expect (await launch ('http://flutter.dev/' , forceSafariVC: false ), isTrue);
191191 });
192192
@@ -210,7 +210,7 @@ void main() {
210210 webOnlyWindowName: null ,
211211 showTitle: false ,
212212 )
213- ..setResponse (true );
213+ ..setLaunchResponse (true );
214214 expect (
await launch (
'mailto:[email protected] ?subject=Hello' ), isTrue);
215215 });
216216
@@ -252,7 +252,7 @@ void main() {
252252 webOnlyWindowName: null ,
253253 showTitle: false ,
254254 )
255- ..setResponse (true );
255+ ..setLaunchResponse (true );
256256
257257 final TestWidgetsFlutterBinding binding = TestWidgetsFlutterBinding .ensureInitialized ();
258258 debugDefaultTargetPlatformOverride = TargetPlatform .iOS;
@@ -285,7 +285,7 @@ void main() {
285285 webOnlyWindowName: null ,
286286 showTitle: false ,
287287 )
288- ..setResponse (true );
288+ ..setLaunchResponse (true );
289289
290290 final TestWidgetsFlutterBinding binding = TestWidgetsFlutterBinding .ensureInitialized ();
291291 debugDefaultTargetPlatformOverride = TargetPlatform .android;
@@ -318,7 +318,7 @@ void main() {
318318 webOnlyWindowName: null ,
319319 showTitle: false ,
320320 )
321- ..setResponse (true );
321+ ..setLaunchResponse (true );
322322 expect (
323323 await launch ('rdp://full%20address=s:mypc:3389&audiomode=i:2&disable%20themes=i:1' ),
324324 isTrue,
0 commit comments