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

Unified Diff: mojo/dart/test/isolate_test.dart

Issue 1545483003: Dart: Reorganize files (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Fix build file Created 5 years 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 | « mojo/dart/test/import_mojo.dart ('k') | mojo/dart/test/ping_pong_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/dart/test/isolate_test.dart
diff --git a/mojo/dart/test/isolate_test.dart b/mojo/dart/test/isolate_test.dart
deleted file mode 100644
index 2819d4fdd1f8d8b0017e711d7b5fcc39ff8d147a..0000000000000000000000000000000000000000
--- a/mojo/dart/test/isolate_test.dart
+++ /dev/null
@@ -1,31 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-import 'dart:async';
-import 'dart:isolate';
-
-void foo(SendPort sp) {
- var rp = new ReceivePort();
- sp.send(rp.sendPort);
- rp.listen((msg) {
- if ((msg is String) && (msg == "Hello, world!")) {
- print("Hello, world!");
- rp.close();
- }
- });
-}
-
-main() {
- var rp = new ReceivePort();
- Isolate.spawn(foo, rp.sendPort).then((isolate) {
- var sp = null;
- rp.listen((msg) {
- if (msg is SendPort) {
- sp = msg;
- sp.send("Hello, world!");
- rp.close();
- }
- });
- });
-}
« no previous file with comments | « mojo/dart/test/import_mojo.dart ('k') | mojo/dart/test/ping_pong_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698