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

Unified Diff: tests/standalone/vmservice/isolate_echo_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_echo_test.dart
diff --git a/tests/standalone/vmservice/isolate_echo_test.dart b/tests/standalone/vmservice/isolate_echo_test.dart
deleted file mode 100644
index cf0f325f3a299dbd2c5c3042d19f119e363ab7e1..0000000000000000000000000000000000000000
--- a/tests/standalone/vmservice/isolate_echo_test.dart
+++ /dev/null
@@ -1,59 +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_echo_test;
-
-import 'test_helper.dart';
-import 'package:expect/expect.dart';
-
-class EchoRequestTest extends VmServiceRequestHelper {
- EchoRequestTest(port, id) :
- super('http://127.0.0.1:$port/$id/_echo/foo/bar?a=b&k=&d=e&z=w');
-
- onRequestCompleted(Map reply) {
- Expect.equals('message', reply['type']);
-
- Expect.equals(3, reply['request']['arguments'].length);
- Expect.equals('_echo', reply['request']['arguments'][0]);
- Expect.equals('foo', reply['request']['arguments'][1]);
- Expect.equals('bar', reply['request']['arguments'][2]);
-
- Expect.equals(4, reply['request']['option_keys'].length);
- Expect.equals('a', reply['request']['option_keys'][0]);
- Expect.equals('k', reply['request']['option_keys'][1]);
- Expect.equals('d', reply['request']['option_keys'][2]);
- Expect.equals('z', reply['request']['option_keys'][3]);
-
- Expect.equals(4, reply['request']['option_values'].length);
- Expect.equals('b', reply['request']['option_values'][0]);
- Expect.equals('', reply['request']['option_values'][1]);
- Expect.equals('e', reply['request']['option_values'][2]);
- Expect.equals('w', reply['request']['option_values'][3]);
- }
-}
-
-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('isolate_echo_script.dart');
- process.launch().then((port) {
- var test = new VMTest(port);
- test.makeRequest().then((_) {
- var echoRequestTest = new EchoRequestTest(port, test._isolateId);
- echoRequestTest.makeRequest().then((_) {
- process.requestExit();
- });
- });
- });
-}
« no previous file with comments | « tests/standalone/vmservice/isolate_echo_script.dart ('k') | tests/standalone/vmservice/isolate_list_script.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698