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

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

Issue 1407123010: 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: Addressed review comments 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/lookup_resolver_test.dart ('k') | src/pkg/mdns/README » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 }
OLDNEW
« no previous file with comments | « pkg/mdns/test/lookup_resolver_test.dart ('k') | src/pkg/mdns/README » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698