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 library analyzer_cli.test.mocks; | 5 library analyzer_cli.test.mocks; |
6 | 6 |
7 import 'package:analyzer/analyzer.dart'; | 7 import 'package:analyzer/analyzer.dart'; |
8 import 'package:analyzer/src/generated/engine.dart'; | 8 import 'package:analyzer/src/generated/engine.dart'; |
9 import 'package:analyzer/src/generated/source.dart'; | 9 import 'package:analyzer/src/generated/source.dart'; |
10 import 'package:analyzer_cli/src/options.dart'; | 10 import 'package:analyzer_cli/src/options.dart'; |
11 import 'package:typed_mock/typed_mock.dart'; | 11 import 'package:mockito/mockito.dart'; |
12 | 12 |
13 class MockAnalysisError extends TypedMock implements AnalysisError {} | 13 class MockAnalysisError extends Mock implements AnalysisError {} |
14 | 14 |
15 class MockAnalysisErrorInfo extends TypedMock implements AnalysisErrorInfo {} | 15 class MockAnalysisErrorInfo extends Mock implements AnalysisErrorInfo {} |
16 | 16 |
17 class MockCommandLineOptions extends TypedMock implements CommandLineOptions {} | 17 class MockCommandLineOptions extends Mock implements CommandLineOptions {} |
18 | 18 |
19 class MockErrorCode extends TypedMock implements ErrorCode {} | 19 class MockErrorCode extends Mock implements ErrorCode {} |
20 | 20 |
21 class MockErrorType extends TypedMock implements ErrorType {} | 21 class MockErrorType extends Mock implements ErrorType {} |
22 | 22 |
23 class MockLineInfo extends TypedMock implements LineInfo {} | 23 class MockLineInfo extends Mock implements LineInfo {} |
24 | 24 |
25 class MockLineInfo_Location extends TypedMock implements LineInfo_Location {} | 25 class MockLineInfo_Location extends Mock implements LineInfo_Location {} |
26 | 26 |
27 class MockSource extends TypedMock implements Source {} | 27 class MockSource extends Mock implements Source {} |
OLD | NEW |