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

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

Issue 823403004: Begin migrating the vm service from a rest-style interface to a json-rpc style interface. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: remove old-style standalone tests. 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
« no previous file with comments | « runtime/vm/service_test.cc ('k') | tests/standalone/vmservice/isolate_code_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/vmservice/isolate_class_test.dart
diff --git a/tests/standalone/vmservice/isolate_class_test.dart b/tests/standalone/vmservice/isolate_class_test.dart
deleted file mode 100644
index 6dec9d3af0c92a336893291df78cd12adf7cff20..0000000000000000000000000000000000000000
--- a/tests/standalone/vmservice/isolate_class_test.dart
+++ /dev/null
@@ -1,82 +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_class_test;
-
-import 'dart:async';
-import 'test_helper.dart';
-import 'package:expect/expect.dart';
-
-class ClassTest extends VmServiceRequestHelper {
- ClassTest(port, id, classId) :
- super('http://127.0.0.1:$port/$id/$classId');
-
- onRequestCompleted(Map reply) {
- Expect.equals('Class', reply['type']);
- Expect.equals('C', reply['name']);
- Expect.equals('isolate_stacktrace_command_script',
- reply['library']['name']);
- }
-}
-
-class LibraryTest extends VmServiceRequestHelper {
- LibraryTest(port, id, libId) :
- super('http://127.0.0.1:$port/$id/$libId');
-
- String _classId;
- onRequestCompleted(Map reply) {
- Expect.equals('Library', reply['type']);
- Expect.equals('isolate_stacktrace_command_script', reply['name']);
- Expect.equals(1, reply['classes'].length);
- Expect.equals('@Class', reply['classes'][0]['type']);
- Expect.equals('C', reply['classes'][0]['name']);
- _classId = reply['classes'][0]['id'];
- }
-}
-
-class IsolateSummaryTest extends VmServiceRequestHelper {
- IsolateSummaryTest(port, id) :
- super('http://127.0.0.1:$port/$id/');
-
- String _libId;
- onRequestCompleted(Map reply) {
- Expect.equals('Isolate', reply['type']);
- Expect.equals('isolate_stacktrace_command_script', reply['rootLib']['name']);
- _libId = reply['rootLib']['id'];
- }
-}
-
-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(2);
- // TODO(turnidge): Fragile. Relies on isolate order in response.
- _isolateId = tester.getIsolateId(1);
- }
-}
-
-main() {
- var process = new TestLauncher('isolate_stacktrace_command_script.dart');
- process.launch().then((port) {
- var test = new VMTest(port);
- test.makeRequest().then((_) {
- var isolateSummaryTest =
- new IsolateSummaryTest(port, test._isolateId);
- isolateSummaryTest.makeRequest().then((_) {
- var libraryTest = new LibraryTest(port, test._isolateId,
- isolateSummaryTest._libId);
- libraryTest.makeRequest().then((_) {
- var classTest = new ClassTest(port, test._isolateId,
- libraryTest._classId);
- classTest.makeRequest().then((_) {
- process.requestExit();
- });
- });
- });
- });
- });
-}
« no previous file with comments | « runtime/vm/service_test.cc ('k') | tests/standalone/vmservice/isolate_code_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698