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

Unified Diff: pkg/async_helper/fletch.patch

Issue 1659163007: Rename fletch -> dartino (Closed) Base URL: https://github.com/dartino/sdk.git@master
Patch Set: address comments Created 4 years, 11 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/async_helper/dartino.patch ('k') | pkg/async_helper/lib/async_helper.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/async_helper/fletch.patch
diff --git a/pkg/async_helper/fletch.patch b/pkg/async_helper/fletch.patch
deleted file mode 100644
index 9d3694ae7793b3deecd224baafbe792a2b5e8efe..0000000000000000000000000000000000000000
--- a/pkg/async_helper/fletch.patch
+++ /dev/null
@@ -1,49 +0,0 @@
-diff --git a/../dart/pkg/async_helper/lib/async_helper.dart b/pkg/async_helper/lib/async_helper.dart
-index 37496bc..1b8acf4 100644
---- a/../dart/pkg/async_helper/lib/async_helper.dart
-+++ b/pkg/async_helper/lib/async_helper.dart
-@@ -27,16 +27,22 @@ library async_helper;
- // 'dart:isolate' (i.e. it is in particular problematic with dart2js).
- // It would be nice if we could use a different mechanism for different
- // runtimes.
--import 'dart:isolate';
-+import 'dart:fletch';
-
- bool _initialized = false;
--ReceivePort _port = null;
-+Port _port = null;
- int _asyncLevel = 0;
-
- Exception _buildException(String msg) {
- return new Exception('Fatal: $msg. This is most likely a bug in your test.');
- }
-
-+void _waitForMessage(Port port) {
-+ Channel channel = new Channel();
-+ port.send(new Port(channel));
-+ channel.receive();
-+}
-+
- /// Call this method before an asynchronous test is created.
- void asyncStart() {
- if (_initialized && _asyncLevel == 0) {
-@@ -46,7 +52,9 @@ void asyncStart() {
- if (!_initialized) {
- print('unittest-suite-wait-for-done');
- _initialized = true;
-- _port = new ReceivePort();
-+ var channel = new Channel();
-+ Process.spawn(_waitForMessage, new Port(channel));
-+ _port = channel.receive();
- }
- _asyncLevel++;
- }
-@@ -63,7 +71,7 @@ void asyncEnd() {
- }
- _asyncLevel--;
- if (_asyncLevel == 0) {
-- _port.close();
-+ _port.send(null);
- _port = null;
- print('unittest-suite-success');
- }
« no previous file with comments | « pkg/async_helper/dartino.patch ('k') | pkg/async_helper/lib/async_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698