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

Side by Side Diff: tests/standalone/http_launch_data/http_spawn_main.dart

Issue 37033002: dart:io | Remove uses of Options class from standalone tests. Mark Options deprecated. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove commented lines from standalone.status. Created 7 years, 1 month 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 | « sdk/lib/io/options.dart ('k') | tests/standalone/io/dart_std_io_pipe_script.dart » ('j') | 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 http_lanuch_main; 5 library http_lanuch_main;
6 6
7 import 'dart:isolate'; 7 import 'dart:isolate';
8 import 'dart:io'; 8 import 'dart:io';
9 9
10 main() { 10 main(List<String> arguments) {
11 int port = int.parse(new Options().arguments[0]); 11 int port = int.parse(arguments[0]);
12 SendPort spawnedPort = 12 SendPort spawnedPort =
13 spawnUri('http://127.0.0.1:$port/http_isolate_main.dart'); 13 spawnUri('http://127.0.0.1:$port/http_isolate_main.dart');
14 spawnedPort.call('hello').then((response) { 14 spawnedPort.call('hello').then((response) {
15 print(response); 15 print(response);
16 }); 16 });
17 } 17 }
18 18
OLDNEW
« no previous file with comments | « sdk/lib/io/options.dart ('k') | tests/standalone/io/dart_std_io_pipe_script.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698