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

Unified Diff: pkg/analyzer/test/instrumentation/instrumentation_test.dart

Issue 975453004: Reformat (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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 | « pkg/analyzer/test/generated/utilities_test.dart ('k') | pkg/analyzer/test/options_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/instrumentation/instrumentation_test.dart
diff --git a/pkg/analyzer/test/instrumentation/instrumentation_test.dart b/pkg/analyzer/test/instrumentation/instrumentation_test.dart
index 30de8191dfc3664185245cedda7264b0c558b59f..b1c263dd36b83f259d96f937292803466370b871 100644
--- a/pkg/analyzer/test/instrumentation/instrumentation_test.dart
+++ b/pkg/analyzer/test/instrumentation/instrumentation_test.dart
@@ -18,8 +18,8 @@ main() {
@reflectiveTest
class InstrumentationServiceTest {
- void assertNormal(TestInstrumentationServer server, String tag,
- String message) {
+ void assertNormal(
+ TestInstrumentationServer server, String tag, String message) {
String sent = server.normalChannel.toString();
if (!sent.endsWith(':$tag:$message\n')) {
fail('Expected "...:$tag:$message", found "$sent"');
@@ -64,9 +64,7 @@ class InstrumentationServiceTest {
String content = 'class C {\n}\n';
service.logFileRead(path, time, content);
assertNormal(
- server,
- InstrumentationService.TAG_FILE_READ,
- '$path:$time:$content');
+ server, InstrumentationService.TAG_FILE_READ, '$path:$time:$content');
}
void test_logLogEntry() {
@@ -76,9 +74,7 @@ class InstrumentationServiceTest {
DateTime time = new DateTime(2001);
String message = 'message';
service.logLogEntry(level, time, message);
- assertNormal(
- server,
- InstrumentationService.TAG_LOG_ENTRY,
+ assertNormal(server, InstrumentationService.TAG_LOG_ENTRY,
'$level:${time.millisecondsSinceEpoch}:$message');
}
@@ -109,17 +105,11 @@ class InstrumentationServiceTest {
void test_logVersion() {
TestInstrumentationServer server = new TestInstrumentationServer();
InstrumentationService service = new InstrumentationService(server);
- service.logVersion(
- 'myUuid',
- 'someClientId',
- 'someClientVersion',
- 'aServerVersion',
- 'anSdkVersion');
+ service.logVersion('myUuid', 'someClientId', 'someClientVersion',
+ 'aServerVersion', 'anSdkVersion');
expect(server.normalChannel.toString(), '');
- expect(
- server.priorityChannel.toString(),
- endsWith(
- ':myUuid:someClientId:someClientVersion:aServerVersion:anSdkVersion\n'));
+ expect(server.priorityChannel.toString(), endsWith(
+ ':myUuid:someClientId:someClientVersion:aServerVersion:anSdkVersion\n'));
}
}
« no previous file with comments | « pkg/analyzer/test/generated/utilities_test.dart ('k') | pkg/analyzer/test/options_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698