OLD | NEW |
1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino 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.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 import 'dart:async'; | 5 import 'dart:async'; |
6 | 6 |
7 import 'package:expect/expect.dart'; | 7 import 'package:expect/expect.dart'; |
8 import 'package:mdns/src/native_extension_client.dart'; | 8 import 'package:mdns/src/native_extension_client.dart'; |
9 | 9 |
10 Future<Null> main() async { | 10 Future<Null> main() async { |
11 String message1 = 'Hello, world!'; | 11 String message1 = 'Hello, world!'; |
12 String result1 = await nativeExtensionEchoTest(message1); | 12 String result1 = await nativeExtensionEchoTest(message1); |
13 Expect.equals(message1, result1); | 13 Expect.equals(message1, result1); |
14 | 14 |
15 List<int> message2 = [1, 2]; | 15 List<int> message2 = [1, 2]; |
16 List<int> result2 = await nativeExtensionEchoTest(message2); | 16 List<int> result2 = await nativeExtensionEchoTest(message2); |
17 Expect.listEquals(message2, result2); | 17 Expect.listEquals(message2, result2); |
18 } | 18 } |
OLD | NEW |