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

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

Issue 10919267: Introduce a VM-only dart:scalarlist library for byte arrays. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Move init call for scalarlist lib Created 8 years, 3 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
« no previous file with comments | « tests/standalone/io/http_parser_test.dart ('k') | tools/create_sdk.py » ('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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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:scalarlist");
7 8
8 void testRequestResponseClientCloses( 9 void testRequestResponseClientCloses(
9 int totalConnections, int closeStatus, String closeReason) { 10 int totalConnections, int closeStatus, String closeReason) {
10 HttpServer server = new HttpServer(); 11 HttpServer server = new HttpServer();
11 HttpClient client = new HttpClient(); 12 HttpClient client = new HttpClient();
12 13
13 server.listen("127.0.0.1", 0, totalConnections); 14 server.listen("127.0.0.1", 0, totalConnections);
14 15
15 // Create a web socket handler and set is as the HTTP server default 16 // Create a web socket handler and set is as the HTTP server default
16 // handler. 17 // handler.
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 testMessageLength(126); 332 testMessageLength(126);
332 testMessageLength(127); 333 testMessageLength(127);
333 testMessageLength(65535); 334 testMessageLength(65535);
334 testMessageLength(65536); 335 testMessageLength(65536);
335 testNoUpgrade(); 336 testNoUpgrade();
336 testUsePOST(); 337 testUsePOST();
337 testHashCode(2); 338 testHashCode(2);
338 339
339 testW3CInterface(2, 3002, "Got tired"); 340 testW3CInterface(2, 3002, "Got tired");
340 } 341 }
OLDNEW
« no previous file with comments | « tests/standalone/io/http_parser_test.dart ('k') | tools/create_sdk.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698