Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(98)

Side by Side Diff: pkg/mdns/test/lookup_resolver_test.dart

Issue 1403303012: Re-land "Extend the mDNS package with a native extension used on Mac OS" (Closed) Base URL: git@github.com:dart-lang/fletch.git@master
Patch Set: Added mussing scripts Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « pkg/mdns/test/decode_test.dart ('k') | pkg/mdns/test/native_extension_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « pkg/mdns/test/decode_test.dart ('k') | pkg/mdns/test/native_extension_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698