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

Side by Side Diff: pkg/analysis_server/test/integration/asynchrony_test.dart

Issue 849863002: Replace @ReflectiveTestCase() with @reflectiveTest. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 library test.integration.analysis.error; 5 library test.integration.analysis.error;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:unittest/unittest.dart'; 9 import 'package:unittest/unittest.dart';
10 10
11 import '../reflective_tests.dart'; 11 import '../reflective_tests.dart';
12 import 'integration_tests.dart'; 12 import 'integration_tests.dart';
13 13
14 main() { 14 main() {
15 runReflectiveTests(AsynchronyIntegrationTest); 15 runReflectiveTests(AsynchronyIntegrationTest);
16 } 16 }
17 17
18 /** 18 /**
19 * Verify that the server's input and output streams are asynchronous by 19 * Verify that the server's input and output streams are asynchronous by
20 * attempting to flood its input buffer with commands without listening to 20 * attempting to flood its input buffer with commands without listening to
21 * its output buffer for responses. The server should continue to train its 21 * its output buffer for responses. The server should continue to train its
22 * input buffer even though its output buffer is full. 22 * input buffer even though its output buffer is full.
23 * 23 *
24 * Once enough commands have been sent, we begin reading from the server's 24 * Once enough commands have been sent, we begin reading from the server's
25 * output buffer, and verify that it responds to the last command. 25 * output buffer, and verify that it responds to the last command.
26 */ 26 */
27 @ReflectiveTestCase() 27 @reflectiveTest
28 class AsynchronyIntegrationTest { 28 class AsynchronyIntegrationTest {
29 /** 29 /**
30 * Number of messages to queue up before listening for responses. 30 * Number of messages to queue up before listening for responses.
31 */ 31 */
32 static const MESSAGE_COUNT = 10000; 32 static const MESSAGE_COUNT = 10000;
33 33
34 /** 34 /**
35 * Connection to the analysis server. 35 * Connection to the analysis server.
36 */ 36 */
37 final Server server = new Server(); 37 final Server server = new Server();
(...skipping 25 matching lines...) Expand all
63 63
64 // Terminate the test when the response to the last message is received. 64 // Terminate the test when the response to the last message is received.
65 return lastMessageResult.then((_) { 65 return lastMessageResult.then((_) {
66 server.send("server.shutdown", null).then((_) { 66 server.send("server.shutdown", null).then((_) {
67 return server.exitCode; 67 return server.exitCode;
68 }); 68 });
69 }); 69 });
70 }); 70 });
71 } 71 }
72 } 72 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698