@@ -47,7 +47,7 @@ void main() {
47
47
48
48
test ('DELETE withCredentials' , () async {
49
49
final c = Completer <Null >();
50
- MockTransports .http.when (requestUri, (FinalizedRequest request) async {
50
+ MockTransports .http.when (() => requestUri, (FinalizedRequest request) async {
51
51
if (request.withCredentials) {
52
52
c.complete ();
53
53
} else {
@@ -68,7 +68,7 @@ void main() {
68
68
69
69
test ('GET withCredentials' , () async {
70
70
final c = Completer <Null >();
71
- MockTransports .http.when (requestUri, (FinalizedRequest request) async {
71
+ MockTransports .http.when (() => requestUri, (FinalizedRequest request) async {
72
72
if (request.withCredentials) {
73
73
c.complete ();
74
74
} else {
@@ -87,7 +87,7 @@ void main() {
87
87
88
88
test ('HEAD withCredentials' , () async {
89
89
final c = Completer <Null >();
90
- MockTransports .http.when (requestUri, (FinalizedRequest request) async {
90
+ MockTransports .http.when (() => requestUri, (FinalizedRequest request) async {
91
91
if (request.withCredentials) {
92
92
c.complete ();
93
93
} else {
@@ -106,7 +106,7 @@ void main() {
106
106
107
107
test ('OPTIONS withCredentials' , () async {
108
108
final c = Completer <Null >();
109
- MockTransports .http.when (requestUri, (FinalizedRequest request) async {
109
+ MockTransports .http.when (() => requestUri, (FinalizedRequest request) async {
110
110
if (request.withCredentials) {
111
111
c.complete ();
112
112
} else {
@@ -127,7 +127,7 @@ void main() {
127
127
128
128
test ('PATCH with body' , () async {
129
129
final c = Completer <String >();
130
- MockTransports .http.when (requestUri, (FinalizedRequest request) async {
130
+ MockTransports .http.when (() => requestUri, (FinalizedRequest request) async {
131
131
transport.HttpBody body = request.body as transport.HttpBody ;
132
132
c.complete (body.asString ());
133
133
return MockResponse .ok ();
@@ -139,7 +139,7 @@ void main() {
139
139
140
140
test ('PATCH withCredentials' , () async {
141
141
final c = Completer <Null >();
142
- MockTransports .http.when (requestUri, (FinalizedRequest request) async {
142
+ MockTransports .http.when (() => requestUri, (FinalizedRequest request) async {
143
143
if (request.withCredentials) {
144
144
c.complete ();
145
145
} else {
@@ -160,7 +160,7 @@ void main() {
160
160
161
161
test ('POST with body' , () async {
162
162
final c = Completer <String >();
163
- MockTransports .http.when (requestUri, (FinalizedRequest request) async {
163
+ MockTransports .http.when (() => requestUri, (FinalizedRequest request) async {
164
164
transport.HttpBody body = request.body as transport.HttpBody ;
165
165
c.complete (body.asString ());
166
166
return MockResponse .ok ();
@@ -172,7 +172,7 @@ void main() {
172
172
173
173
test ('POST withCredentials' , () async {
174
174
final c = Completer <Null >();
175
- MockTransports .http.when (requestUri, (FinalizedRequest request) async {
175
+ MockTransports .http.when (() => requestUri, (FinalizedRequest request) async {
176
176
if (request.withCredentials) {
177
177
c.complete ();
178
178
} else {
@@ -191,7 +191,7 @@ void main() {
191
191
192
192
test ('PUT with body' , () async {
193
193
final c = Completer <String >();
194
- MockTransports .http.when (requestUri, (FinalizedRequest request) async {
194
+ MockTransports .http.when (() => requestUri, (FinalizedRequest request) async {
195
195
transport.HttpBody body = request.body as transport.HttpBody ;
196
196
c.complete (body.asString ());
197
197
return MockResponse .ok ();
@@ -203,7 +203,7 @@ void main() {
203
203
204
204
test ('PUT withCredentials' , () async {
205
205
final c = Completer <Null >();
206
- MockTransports .http.when (requestUri, (FinalizedRequest request) async {
206
+ MockTransports .http.when (() => requestUri, (FinalizedRequest request) async {
207
207
if (request.withCredentials) {
208
208
c.complete ();
209
209
} else {
@@ -222,7 +222,7 @@ void main() {
222
222
223
223
test ('custom method with body' , () async {
224
224
final c = Completer <String >();
225
- MockTransports .http.when (requestUri, (FinalizedRequest request) async {
225
+ MockTransports .http.when (() => requestUri, (FinalizedRequest request) async {
226
226
transport.HttpBody body = request.body as transport.HttpBody ;
227
227
c.complete (body.asString ());
228
228
return MockResponse .ok ();
@@ -234,7 +234,7 @@ void main() {
234
234
235
235
test ('custom method withCredentials' , () async {
236
236
final c = Completer <Null >();
237
- MockTransports .http.when (requestUri, (FinalizedRequest request) async {
237
+ MockTransports .http.when (() => requestUri, (FinalizedRequest request) async {
238
238
if (request.withCredentials) {
239
239
c.complete ();
240
240
} else {
0 commit comments