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

Unified Diff: tests/standalone/io/echo_server_stream_test.dart

Issue 2771453003: Format all tests. (Closed)
Patch Set: Format files Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: tests/standalone/io/echo_server_stream_test.dart
diff --git a/tests/standalone/io/echo_server_stream_test.dart b/tests/standalone/io/echo_server_stream_test.dart
index 2b7615eca737cef672d0244442b294dd7c318443..8e647c2971abfdd5847dd66ed117664bdeece2ad 100644
--- a/tests/standalone/io/echo_server_stream_test.dart
+++ b/tests/standalone/io/echo_server_stream_test.dart
@@ -19,7 +19,6 @@ import "dart:isolate";
part "testing_server.dart";
class EchoServerGame {
-
static const MSGSIZE = 10;
static const MESSAGES = 100;
static const FIRSTCHAR = 65;
@@ -62,9 +61,7 @@ class EchoServerGame {
}
void connectHandler() {
- _socket.listen(onData,
- onError: errorHandler,
- onDone: onClosed);
+ _socket.listen(onData, onError: errorHandler, onDone: onClosed);
_socket.add(_buffer);
_socket.close();
data = new List<int>(MSGSIZE);
@@ -98,7 +95,6 @@ class EchoServerGame {
int _messages;
}
-
void startEchoServer(SendPort replyPort) {
var server = new EchoServer();
server.init().then((port) {
@@ -106,9 +102,7 @@ void startEchoServer(SendPort replyPort) {
});
}
-
class EchoServer extends TestingServer {
-
static const int MSGSIZE = EchoServerGame.MSGSIZE;
void onConnection(Socket connection) {

Powered by Google App Engine
This is Rietveld 408576698