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

Unified 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, 2 months 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/mdns/test/native_extension_test.dart
diff --git a/pkg/mdns/test/native_extension_test.dart b/pkg/mdns/test/native_extension_test.dart
new file mode 100644
index 0000000000000000000000000000000000000000..e3d4b641f6efb84771d8db554cdb91494a1aa60c
--- /dev/null
+++ b/pkg/mdns/test/native_extension_test.dart
@@ -0,0 +1,18 @@
+// Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE.md file.
+
+import 'dart:async';
+
+import 'package:expect/expect.dart';
+import 'package:mdns/src/native_extension_client.dart';
+
+Future<Null> main() async {
+ String message1 = 'Hello, world!';
+ String result1 = await nativeExtensionEchoTest(message1);
+ Expect.equals(message1, result1);
+
+ List<int> message2 = [1, 2];
+ List<int> result2 = await nativeExtensionEchoTest(message2);
+ Expect.listEquals(message2, result2);
+}
« 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