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

Unified Diff: tests/standalone/vmservice/isolate_bad_object_test.dart

Issue 895093002: Add getClassList RPC (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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
Index: tests/standalone/vmservice/isolate_bad_object_test.dart
diff --git a/tests/standalone/vmservice/isolate_bad_object_test.dart b/tests/standalone/vmservice/isolate_bad_object_test.dart
deleted file mode 100644
index 3b399daccc68249ad27a8660ae0354b6ea0c3423..0000000000000000000000000000000000000000
--- a/tests/standalone/vmservice/isolate_bad_object_test.dart
+++ /dev/null
@@ -1,57 +0,0 @@
-// Copyright (c) 2013, 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.
-
-library isolate_bad_code_test;
-
-import 'dart:async';
-import 'test_helper.dart';
-import 'package:expect/expect.dart';
-
-class ExpiredCollectionTest extends VmServiceRequestHelper {
- ExpiredCollectionTest(port, id) :
- super('http://127.0.0.1:$port/$id/objects/50');
-
- onRequestCompleted(Map reply) {
- Expect.equals('Sentinel', reply['type']);
- Expect.equals('<expired>', reply['valueAsString']);
- }
-}
-
-class BadCollectionTest extends VmServiceRequestHelper {
- BadCollectionTest(port, id) :
- super('http://127.0.0.1:$port/$id/objects');
-
- onRequestCompleted(Map reply) {
- Expect.equals('Error', reply['type']);
- }
-}
-
-class VMTest extends VmServiceRequestHelper {
- VMTest(port) : super('http://127.0.0.1:$port/vm');
-
- String _isolateId;
- onRequestCompleted(Map reply) {
- VMTester tester = new VMTester(reply);
- tester.checkIsolateCount(1);
- _isolateId = tester.getIsolateId(0);
- }
-}
-
-main() {
- var process = new TestLauncher('unknown_isolate_command_script.dart');
- process.launch().then((port) {
- var test = new VMTest(port);
- test.makeRequest().then((_) {
- var badCollectionRequest =
- new BadCollectionTest(port, test._isolateId).makeRequest();
- var expiredCollectionRequest =
- new ExpiredCollectionTest(port, test._isolateId).makeRequest();
- var requests = Future.wait([badCollectionRequest,
- expiredCollectionRequest]);
- requests.then((_) {
- process.requestExit();
- });
- });
- });
-}
« no previous file with comments | « tests/standalone/vmservice/isolate_bad_class_test.dart ('k') | tests/standalone/vmservice/isolate_class_field_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698