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

Side by Side Diff: pkg/analyzer/test/instrumentation/instrumentation_test.dart

Issue 2359233002: Add support for getting the sessionId from instrumentation and sending it to the client (Closed)
Patch Set: Created 4 years, 2 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 unified diff | Download patch
« no previous file with comments | « pkg/analyzer/lib/instrumentation/instrumentation.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/instrumentation/instrumentation.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698