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

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: Use abstract classes instead of interfaces. 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
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 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 testMessageLength(126); 324 testMessageLength(126);
324 testMessageLength(127); 325 testMessageLength(127);
325 testMessageLength(65535); 326 testMessageLength(65535);
326 testMessageLength(65536); 327 testMessageLength(65536);
327 testNoUpgrade(); 328 testNoUpgrade();
328 testUsePOST(); 329 testUsePOST();
329 testHashCode(2); 330 testHashCode(2);
330 331
331 testW3CInterface(2, 3002, "Got tired"); 332 testW3CInterface(2, 3002, "Got tired");
332 } 333 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698