OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 import 'dart:io'; | 5 import 'dart:io'; |
6 | 6 |
7 import 'package:expect/expect.dart'; | 7 import 'package:expect/expect.dart'; |
8 import 'package:mdns/src/packet.dart'; | 8 import 'package:mdns/src/packet.dart'; |
9 import 'package:mdns/src/lookup_resolver.dart'; | 9 import 'package:mdns/src/lookup_resolver.dart'; |
10 | 10 |
11 main() async { | 11 main() async { |
12 await testTimeout(); | 12 await testTimeout(); |
13 await testResult(); | 13 await testResult(); |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 resolver.handleResponse([response0]); | 60 resolver.handleResponse([response0]); |
61 var response2 = new DecodeResult('yyy', new InternetAddress('2.3.4.5')); | 61 var response2 = new DecodeResult('yyy', new InternetAddress('2.3.4.5')); |
62 resolver.handleResponse([response0]); | 62 resolver.handleResponse([response0]); |
63 resolver.handleResponse([response2, response1]); | 63 resolver.handleResponse([response2, response1]); |
64 resolver.handleResponse([response0]); | 64 resolver.handleResponse([response0]); |
65 var result1 = await futureResult1; | 65 var result1 = await futureResult1; |
66 var result2 = await futureResult2; | 66 var result2 = await futureResult2; |
67 Expect.equals('1.2.3.4', result1.address); | 67 Expect.equals('1.2.3.4', result1.address); |
68 Expect.equals('2.3.4.5', result2.address); | 68 Expect.equals('2.3.4.5', result2.address); |
69 } | 69 } |
OLD | NEW |