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

Side by Side Diff: tests/standalone/io/http_stream_close_test.dart

Issue 16019002: Merge the dart:uri library into dart:core and update the Uri class (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Final cleanup Created 7 years, 6 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 unified diff | Download patch | Annotate | Revision Log
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 5
6 import "dart:io"; 6 import "dart:io";
7 import "dart:uri";
8 7
9 main() { 8 main() {
10 bool serverOnClosed = false; 9 bool serverOnClosed = false;
11 bool clientOnClosed = false; 10 bool clientOnClosed = false;
12 bool requestOnClosed = false; 11 bool requestOnClosed = false;
13 12
14 HttpServer.bind("127.0.0.1", 0).then((server) { 13 HttpServer.bind("127.0.0.1", 0).then((server) {
15 var client = new HttpClient(); 14 var client = new HttpClient();
16 15
17 checkDone() { 16 checkDone() {
(...skipping 29 matching lines...) Expand all
47 .then((response) { 46 .then((response) {
48 response.listen( 47 response.listen(
49 (_) {}, 48 (_) {},
50 onDone: () { 49 onDone: () {
51 requestOnClosed = true; 50 requestOnClosed = true;
52 checkDone(); 51 checkDone();
53 }); 52 });
54 }); 53 });
55 }); 54 });
56 } 55 }
OLDNEW
« no previous file with comments | « tests/standalone/io/http_request_pipeling_test.dart ('k') | tests/standalone/io/https_client_certificate_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698