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

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

Issue 2298913003: Pull in test_reflective_loader 0.0.4 and switch analyzer to it. (Closed)
Patch Set: Fixes for review comments. Created 4 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 unified diff | Download patch
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: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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698