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

Unified Diff: runtime/tests/vm/dart/isolate_mirror_remote_test.dart

Issue 10416050: Remove the partially completed code for remote IsolateMirrors and (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 7 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
Index: runtime/tests/vm/dart/isolate_mirror_remote_test.dart
===================================================================
--- runtime/tests/vm/dart/isolate_mirror_remote_test.dart (revision 0)
+++ runtime/tests/vm/dart/isolate_mirror_remote_test.dart (revision 0)
@@ -0,0 +1,32 @@
+// Copyright (c) 2012, the Dart 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 file.
+//
+// Dart test program for checking implemention of IsolateMirror when
+// inspecting a remote isolate.
+
+#library('isolate_mirror_local_test');
+
+#import('dart:isolate');
+#import('dart:mirrors');
+
+void isolateMain() {
+ port.receive(
+ (msg, replyPort) {
+ Expect.fail('Received unexpected message $msg in remote isolate.');
+ });
+}
+
+void testIsolateMirror(IsolateMirror mirror) {
+ Expect.fail('Should not reach here. Remote isolates not implemented.');
+}
+
+void main() {
+ SendPort sp = spawnFunction(isolateMain);
+ try {
+ isolateMirrorOf(sp).then(testIsolateMirror);
+ Expect.fail('Should not reach here. Remote isolates not implemented.');
+ } catch (var exception) {
+ Expect.isTrue(exception is NotImplementedException);
+ }
+}
« no previous file with comments | « runtime/tests/vm/dart/isolate_mirror_local_test.dart ('k') | runtime/tests/vm/dart/isolate_mirror_self_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698