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:test_reflective_loader/test_reflective_loader.dart'; |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 fail('Expected "...$message", found "$sent"'); | 158 fail('Expected "...$message", found "$sent"'); |
159 } | 159 } |
160 } | 160 } |
161 } | 161 } |
162 | 162 |
163 class TestInstrumentationServer implements InstrumentationServer { | 163 class TestInstrumentationServer implements InstrumentationServer { |
164 StringBuffer normalChannel = new StringBuffer(); | 164 StringBuffer normalChannel = new StringBuffer(); |
165 StringBuffer priorityChannel = new StringBuffer(); | 165 StringBuffer priorityChannel = new StringBuffer(); |
166 | 166 |
167 @override | 167 @override |
| 168 String get sessionId => ''; |
| 169 |
| 170 @override |
168 void log(String message) { | 171 void log(String message) { |
169 normalChannel.writeln(message); | 172 normalChannel.writeln(message); |
170 } | 173 } |
171 | 174 |
172 @override | 175 @override |
173 void logWithPriority(String message) { | 176 void logWithPriority(String message) { |
174 priorityChannel.writeln(message); | 177 priorityChannel.writeln(message); |
175 } | 178 } |
176 | 179 |
177 @override | 180 @override |
178 Future shutdown() async { | 181 Future shutdown() async { |
179 // Ignored | 182 // Ignored |
180 } | 183 } |
181 } | 184 } |
OLD | NEW |