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

Side by Side Diff: tests/standalone/vmservice/unknown_command_test.dart

Issue 106193003: Cleanup VM service (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/bin/vmservice_impl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library unknown_command_test; 5 library unknown_command_test;
6 6
7 import 'test_helper.dart'; 7 import 'test_helper.dart';
8 import 'package:expect/expect.dart'; 8 import 'package:expect/expect.dart';
9 9
10 class UnknownCommandTest extends VmServiceRequestHelper { 10 class UnknownCommandTest extends VmServiceRequestHelper {
11 UnknownCommandTest(port) : super('http://127.0.0.1:$port/badcommand'); 11 UnknownCommandTest(port) : super('http://127.0.0.1:$port/badcommand');
12 12
13 onRequestCompleted(Map reply) { 13 onRequestCompleted(Map reply) {
14 Expect.equals('error', reply['type']); 14 Expect.equals('Error', reply['type']);
15 } 15 }
16 } 16 }
17 17
18 main() { 18 main() {
19 var process = new TestLauncher('unknown_command_script.dart'); 19 var process = new TestLauncher('unknown_command_script.dart');
20 process.launch().then((port) { 20 process.launch().then((port) {
21 var test = new UnknownCommandTest(port); 21 var test = new UnknownCommandTest(port);
22 test.makeRequest().then((_) { 22 test.makeRequest().then((_) {
23 process.requestExit(); 23 process.requestExit();
24 }); 24 });
25 }); 25 });
26 } 26 }
OLDNEW
« no previous file with comments | « runtime/bin/vmservice_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698