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

Side by Side Diff: samples/tests/samples/src/chat/ChatServerTest.dart

Issue 8274034: Make the sample tests run using the standard test configuration (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years, 2 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 | « samples/tests/dartc/testcfg.py ('k') | samples/tests/samples/src/chat/HttpParserTest.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) 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
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 }
OLDNEW
« no previous file with comments | « samples/tests/dartc/testcfg.py ('k') | samples/tests/samples/src/chat/HttpParserTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698