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

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

Issue 2395183002: Switch analyzer_cli to 'package:test'. (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_cli/test/driver_test.dart ('k') | pkg/analyzer_cli/test/error_test.dart » ('j') | 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) 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/driver.dart' show Driver, errorSink, outSink;
10 import 'package:path/path.dart' as path; 10 import 'package:path/path.dart' as path;
11 import 'package:unittest/unittest.dart'; 11 import 'package:test/test.dart';
12 12
13 import 'utils.dart'; 13 import 'utils.dart';
14 14
15 main() { 15 main() {
16 initializeTestEnvironment();
17
18 group('_embedder.yaml', () { 16 group('_embedder.yaml', () {
19 StringSink savedOutSink, savedErrorSink; 17 StringSink savedOutSink, savedErrorSink;
20 int savedExitCode; 18 int savedExitCode;
21 19
22 setUp(() { 20 setUp(() {
23 savedOutSink = outSink; 21 savedOutSink = outSink;
24 savedErrorSink = errorSink; 22 savedErrorSink = errorSink;
25 savedExitCode = exitCode; 23 savedExitCode = exitCode;
26 outSink = new StringBuffer(); 24 outSink = new StringBuffer();
27 errorSink = new StringBuffer(); 25 errorSink = new StringBuffer();
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 print(outSink); 69 print(outSink);
72 } 70 }
73 if (errorSink.toString().isNotEmpty) { 71 if (errorSink.toString().isNotEmpty) {
74 print('stderr:'); 72 print('stderr:');
75 print(errorSink); 73 print(errorSink);
76 } 74 }
77 throw e; 75 throw e;
78 } 76 }
79 }; 77 };
80 } 78 }
OLDNEW
« no previous file with comments | « pkg/analyzer_cli/test/driver_test.dart ('k') | pkg/analyzer_cli/test/error_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698