OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 // |
| 5 // VMOptions= |
| 6 // VMOptions=--short_socket_read |
| 7 // VMOptions=--short_socket_write |
| 8 // VMOptions=--short_socket_read --short_socket_write |
| 9 |
4 | 10 |
5 #library("chat_server_test.dart"); | 11 #library("chat_server_test.dart"); |
6 #import("../../../chat/http.dart"); | 12 #import("../../../../chat/http.dart"); |
7 #import("../../../../client/json/dart_json.dart"); | 13 #import("../../../../../client/json/dart_json.dart"); |
8 #import("../../../chat/chat_server_lib.dart"); | 14 #import("../../../../chat/chat_server_lib.dart"); |
9 | 15 |
10 | 16 |
11 // Message to start chat test client running in an isolate. | 17 // Message to start chat test client running in an isolate. |
12 class ChatTestClientStart { | 18 class ChatTestClientStart { |
13 ChatTestClientStart(int this.totalClients, | 19 ChatTestClientStart(int this.totalClients, |
14 int this.messagesToSend, | 20 int this.messagesToSend, |
15 int this.messagesToReceive, | 21 int this.messagesToReceive, |
16 int this.port); | 22 int this.port); |
17 | 23 |
18 int totalClients; | 24 int totalClients; |
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 TestMain testMain = new TestMain.start(10, 2); | 314 TestMain testMain = new TestMain.start(10, 2); |
309 } | 315 } |
310 | 316 |
311 | 317 |
312 void main() { | 318 void main() { |
313 testOneClient(); | 319 testOneClient(); |
314 testTwoClients(); | 320 testTwoClients(); |
315 testTwoClientsMoreMessages; | 321 testTwoClientsMoreMessages; |
316 testTenClients(); | 322 testTenClients(); |
317 } | 323 } |
OLD | NEW |