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