| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 test.services.correction.status; | 5 library test.services.correction.status; |
| 6 | 6 |
| 7 import 'package:analysis_services/correction/status.dart'; | 7 import 'package:analysis_server/src/services/correction/status.dart'; |
| 8 import 'package:analysis_services/search/search_engine.dart'; | 8 import 'package:analysis_server/src/services/search/search_engine.dart'; |
| 9 import 'package:analysis_services/src/correction/source_range.dart'; | 9 import 'package:analysis_server/src/services/correction/source_range.dart'; |
| 10 import 'package:analysis_testing/abstract_single_unit.dart'; | 10 import 'package:analysis_testing/abstract_single_unit.dart'; |
| 11 import 'package:analysis_testing/reflective_tests.dart'; | 11 import 'package:analysis_testing/reflective_tests.dart'; |
| 12 import 'package:analyzer/src/generated/ast.dart'; | 12 import 'package:analyzer/src/generated/ast.dart'; |
| 13 import 'package:analyzer/src/generated/element.dart'; | 13 import 'package:analyzer/src/generated/element.dart'; |
| 14 import 'package:analyzer/src/generated/source.dart'; | 14 import 'package:analyzer/src/generated/source.dart'; |
| 15 import 'package:typed_mock/typed_mock.dart'; | 15 import 'package:typed_mock/typed_mock.dart'; |
| 16 import 'package:unittest/unittest.dart'; | 16 import 'package:unittest/unittest.dart'; |
| 17 | 17 |
| 18 | 18 |
| 19 main() { | 19 main() { |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 expect(refactoringStatus.severity, RefactoringStatusSeverity.WARNING); | 262 expect(refactoringStatus.severity, RefactoringStatusSeverity.WARNING); |
| 263 expect(refactoringStatus.message, 'msg'); | 263 expect(refactoringStatus.message, 'msg'); |
| 264 } | 264 } |
| 265 } | 265 } |
| 266 | 266 |
| 267 | 267 |
| 268 class _MockRefactoringStatusContext extends TypedMock implements | 268 class _MockRefactoringStatusContext extends TypedMock implements |
| 269 RefactoringStatusContext { | 269 RefactoringStatusContext { |
| 270 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); | 270 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); |
| 271 } | 271 } |
| OLD | NEW |