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 @TestOn("vm") | |
6 library analyzer_cli.test.driver; | 5 library analyzer_cli.test.driver; |
7 | 6 |
8 import 'dart:io'; | 7 import 'dart:io'; |
9 | 8 |
10 import 'package:analyzer/plugin/options.dart'; | 9 import 'package:analyzer/plugin/options.dart'; |
11 import 'package:analyzer/source/analysis_options_provider.dart'; | 10 import 'package:analyzer/source/analysis_options_provider.dart'; |
12 import 'package:analyzer/src/generated/engine.dart'; | 11 import 'package:analyzer/src/generated/engine.dart'; |
13 import 'package:analyzer/src/generated/error.dart'; | 12 import 'package:analyzer/src/generated/error.dart'; |
14 import 'package:analyzer/src/generated/source.dart'; | 13 import 'package:analyzer/src/generated/source.dart'; |
15 import 'package:analyzer/src/plugin/plugin_configuration.dart'; | 14 import 'package:analyzer/src/plugin/plugin_configuration.dart'; |
16 import 'package:analyzer/src/services/lint.dart'; | 15 import 'package:analyzer/src/services/lint.dart'; |
17 import 'package:analyzer_cli/src/bootloader.dart'; | 16 import 'package:analyzer_cli/src/bootloader.dart'; |
18 import 'package:analyzer_cli/src/driver.dart'; | 17 import 'package:analyzer_cli/src/driver.dart'; |
19 import 'package:analyzer_cli/src/options.dart'; | 18 import 'package:analyzer_cli/src/options.dart'; |
20 import 'package:path/path.dart' as path; | 19 import 'package:path/path.dart' as path; |
21 import 'package:plugin/plugin.dart'; | 20 import 'package:plugin/plugin.dart'; |
22 import 'package:test/test.dart'; | 21 import 'package:unittest/unittest.dart'; |
23 import 'package:yaml/src/yaml_node.dart'; | 22 import 'package:yaml/src/yaml_node.dart'; |
24 | 23 |
25 // TODO(pq): fix tests to run safely on the bots | 24 // TODO(pq): fix tests to run safely on the bots |
26 // https://github.com/dart-lang/sdk/issues/25001 | 25 // https://github.com/dart-lang/sdk/issues/25001 |
27 main() {} | 26 main() {} |
28 _main() { | 27 _main() { |
29 group('Driver', () { | 28 group('Driver', () { |
30 StringSink savedOutSink, savedErrorSink; | 29 StringSink savedOutSink, savedErrorSink; |
31 int savedExitCode; | 30 int savedExitCode; |
32 setUp(() { | 31 setUp(() { |
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
478 this.options = options; | 477 this.options = options; |
479 } | 478 } |
480 } | 479 } |
481 | 480 |
482 class TestSource implements Source { | 481 class TestSource implements Source { |
483 TestSource(); | 482 TestSource(); |
484 | 483 |
485 @override | 484 @override |
486 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); | 485 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); |
487 } | 486 } |
OLD | NEW |