@@ -19,13 +19,13 @@ void main() {
1919 test (
2020 'hijacking a hijackable request throws a HijackException and calls '
2121 'onHijack' , () {
22- var request = new Request ( 'GET' , localhostUri,
23- onHijack: expectAsync1 ((void callback (channel) ) {
22+ var request =
23+ new Request ( 'GET' , localhostUri, onHijack: expectAsync1 ((callback) {
2424 var streamController = new StreamController <List <int >>();
2525 streamController.add ([1 , 2 , 3 ]);
2626 streamController.close ();
2727
28- var sinkController = new StreamController ();
28+ var sinkController = new StreamController < List < int >> ();
2929 expect (sinkController.stream.first, completion (equals ([4 , 5 , 6 ])));
3030
3131 callback (new StreamChannel (streamController.stream, sinkController));
@@ -61,13 +61,13 @@ void main() {
6161 test (
6262 'hijacking a hijackable request throws a HijackException and calls '
6363 'onHijack' , () {
64- var request = new Request ( 'GET' , localhostUri,
65- onHijack: expectAsync1 ((callback (channel) ) {
64+ var request =
65+ new Request ( 'GET' , localhostUri, onHijack: expectAsync1 ((callback) {
6666 var streamController = new StreamController <List <int >>();
6767 streamController.add ([1 , 2 , 3 ]);
6868 streamController.close ();
6969
70- var sinkController = new StreamController ();
70+ var sinkController = new StreamController < List < int >> ();
7171 expect (sinkController.stream.first, completion (equals ([4 , 5 , 6 ])));
7272
7373 callback (new StreamChannel (streamController.stream, sinkController));
0 commit comments