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

Side by Side Diff: pkg/analyzer_cli/test/embedder_test.dart

Issue 2840703002: Refactoring analyzer_cli for code hygiene. (Closed)
Patch Set: Created 3 years, 7 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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 import 'dart:io'; 5 import 'dart:io';
6 6
7 import 'package:analyzer/src/dart/sdk/sdk.dart'; 7 import 'package:analyzer/src/dart/sdk/sdk.dart';
8 import 'package:analyzer/src/generated/sdk.dart'; 8 import 'package:analyzer/src/generated/sdk.dart';
9 import 'package:analyzer_cli/src/driver.dart' show Driver, errorSink, outSink; 9 import 'package:analyzer_cli/src/analyzer_driver.dart'
10 show Driver, errorSink, outSink;
10 import 'package:path/path.dart' as path; 11 import 'package:path/path.dart' as path;
11 import 'package:test/test.dart'; 12 import 'package:test/test.dart';
12 13
13 import 'utils.dart'; 14 import 'utils.dart';
14 15
15 main() { 16 main() {
16 group('_embedder.yaml', () { 17 group('_embedder.yaml', () {
17 StringSink savedOutSink, savedErrorSink; 18 StringSink savedOutSink, savedErrorSink;
18 int savedExitCode; 19 int savedExitCode;
19 20
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 print(outSink); 71 print(outSink);
71 } 72 }
72 if (errorSink.toString().isNotEmpty) { 73 if (errorSink.toString().isNotEmpty) {
73 print('stderr:'); 74 print('stderr:');
74 print(errorSink); 75 print(errorSink);
75 } 76 }
76 rethrow; 77 rethrow;
77 } 78 }
78 }; 79 };
79 } 80 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698