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

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

Issue 10919146: Get rid of a lot of () for getters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/standalone/io/http_basic_test.dart ('k') | tests/standalone/io/http_server_socket_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/http_read_test.dart
diff --git a/tests/standalone/io/http_read_test.dart b/tests/standalone/io/http_read_test.dart
index fcc670fb93bdfb54c11d27793118822eb7ccf3cb..3a0c8495f0b86da090dbc3801a23c5727fcd175c 100644
--- a/tests/standalone/io/http_read_test.dart
+++ b/tests/standalone/io/http_read_test.dart
@@ -61,9 +61,9 @@ class TestServerCommand {
TestServerCommand.stop() : _command = STOP;
TestServerCommand.chunkedEncoding() : _command = CHUNKED_ENCODING;
- bool get isStart() => _command == START;
- bool get isStop() => _command == STOP;
- bool get isChunkedEncoding() => _command == CHUNKED_ENCODING;
+ bool get isStart => _command == START;
+ bool get isStop => _command == STOP;
+ bool get isChunkedEncoding => _command == CHUNKED_ENCODING;
int _command;
}
@@ -78,11 +78,11 @@ class TestServerStatus {
TestServerStatus.stopped() : _state = STOPPED;
TestServerStatus.error() : _state = ERROR;
- bool get isStarted() => _state == STARTED;
- bool get isStopped() => _state == STOPPED;
- bool get isError() => _state == ERROR;
+ bool get isStarted => _state == STARTED;
+ bool get isStopped => _state == STOPPED;
+ bool get isError => _state == ERROR;
- int get port() => _port;
+ int get port => _port;
int _state;
int _port;
« no previous file with comments | « tests/standalone/io/http_basic_test.dart ('k') | tests/standalone/io/http_server_socket_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698