| OLD | NEW | 
|---|
| 1 // Copyright (c) 2015, the Dart project authors.  Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 analyzer.test.instrumentation.instrumentation_test; | 5 library analyzer.test.instrumentation.instrumentation_test; | 
| 6 | 6 | 
| 7 import 'dart:async'; | 7 import 'dart:async'; | 
| 8 | 8 | 
| 9 import 'package:analyzer/instrumentation/instrumentation.dart'; | 9 import 'package:analyzer/instrumentation/instrumentation.dart'; | 
|  | 10 import 'package:test_reflective_loader/test_reflective_loader.dart'; | 
| 10 import 'package:unittest/unittest.dart'; | 11 import 'package:unittest/unittest.dart'; | 
| 11 | 12 | 
| 12 import '../reflective_tests.dart'; |  | 
| 13 |  | 
| 14 main() { | 13 main() { | 
| 15   group('instrumentation', () { | 14   group('instrumentation', () { | 
| 16     runReflectiveTests(InstrumentationServiceTest); | 15     defineReflectiveTests(InstrumentationServiceTest); | 
| 17     runReflectiveTests(MulticastInstrumentationServerTest); | 16     defineReflectiveTests(MulticastInstrumentationServerTest); | 
| 18   }); | 17   }); | 
| 19 } | 18 } | 
| 20 | 19 | 
| 21 @reflectiveTest | 20 @reflectiveTest | 
| 22 class InstrumentationServiceTest { | 21 class InstrumentationServiceTest { | 
| 23   void assertNormal( | 22   void assertNormal( | 
| 24       TestInstrumentationServer server, String tag, String message) { | 23       TestInstrumentationServer server, String tag, String message) { | 
| 25     String sent = server.normalChannel.toString(); | 24     String sent = server.normalChannel.toString(); | 
| 26     if (!sent.endsWith(':$tag:$message\n')) { | 25     if (!sent.endsWith(':$tag:$message\n')) { | 
| 27       fail('Expected "...:$tag:$message", found "$sent"'); | 26       fail('Expected "...:$tag:$message", found "$sent"'); | 
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 173   @override | 172   @override | 
| 174   void logWithPriority(String message) { | 173   void logWithPriority(String message) { | 
| 175     priorityChannel.writeln(message); | 174     priorityChannel.writeln(message); | 
| 176   } | 175   } | 
| 177 | 176 | 
| 178   @override | 177   @override | 
| 179   Future shutdown() async { | 178   Future shutdown() async { | 
| 180     // Ignored | 179     // Ignored | 
| 181   } | 180   } | 
| 182 } | 181 } | 
| OLD | NEW | 
|---|