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

Unified Diff: tests/standalone/vmservice/websocket_client_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 | « tests/standalone/vmservice/isolate_stacktrace_command_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/vmservice/websocket_client_test.dart
diff --git a/tests/standalone/vmservice/websocket_client_test.dart b/tests/standalone/vmservice/websocket_client_test.dart
deleted file mode 100644
index 25b94aee08cff968c4e9de9478990ce4ac37b620..0000000000000000000000000000000000000000
--- a/tests/standalone/vmservice/websocket_client_test.dart
+++ /dev/null
@@ -1,55 +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 unknown_command_test;
-
-import 'test_helper.dart';
-import 'package:expect/expect.dart';
-
-class ClientsRequestTest extends ServiceWebSocketRequestHelper {
- ClientsRequestTest(port) : super('ws://127.0.0.1:$port/ws');
- int _count = 0;
-
- onResponse(var seq, Map response) {
- if (seq == null) {
- // Ignore push events.
- return;
- }
- if (seq == 'cli') {
- // Verify response is correct for 'cli' sequence id.
- Expect.equals('ClientList', response['type']);
- Expect.equals(1, response['members'].length);
- _count++;
- } else if (seq == 'vm') {
- // Verify response is correct for 'vm' sequence id.
- Expect.equals('VM', response['type']);
- _count++;
- } else {
- Expect.fail('Unexpected response from $seq: $response');
- }
- if (_count == 2) {
- // After receiving both responses, the test is complete.
- complete();
- }
- }
-
- runTest() {
- // Send a request for clients with 'cli' sequence id.
- sendMessage('cli', 'clients');
- // Send a request for vm info with 'vm' sequence id.
- sendMessage('vm', 'vm');
- }
-}
-
-main() {
- var process = new TestLauncher('unknown_command_script.dart');
- process.launch().then((port) {
- new ClientsRequestTest(port).connect().then((test) {
- test.completed.then((_) {
- process.requestExit();
- });
- test.runTest();
- });
- });
-}
« no previous file with comments | « tests/standalone/vmservice/isolate_stacktrace_command_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698