| OLD | NEW |
| 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 'package:analyzer/src/context/cache.dart'; | 5 import 'package:analyzer/src/context/cache.dart'; |
| 6 import 'package:analyzer/src/generated/engine.dart'; | 6 import 'package:analyzer/src/generated/engine.dart'; |
| 7 import 'package:analyzer/src/generated/source.dart'; | 7 import 'package:analyzer/src/generated/source.dart'; |
| 8 import 'package:analyzer/src/summary/idl.dart'; | 8 import 'package:analyzer/src/summary/idl.dart'; |
| 9 import 'package:analyzer/src/summary/package_bundle_reader.dart'; | 9 import 'package:analyzer/src/summary/package_bundle_reader.dart'; |
| 10 import 'package:analyzer/src/task/dart.dart'; | 10 import 'package:analyzer/src/task/dart.dart'; |
| 11 import 'package:analyzer/src/util/fast_uri.dart'; | |
| 12 import 'package:analyzer/task/dart.dart'; | 11 import 'package:analyzer/task/dart.dart'; |
| 13 import 'package:analyzer/task/general.dart'; | 12 import 'package:analyzer/task/general.dart'; |
| 14 import 'package:test/test.dart'; | 13 import 'package:test/test.dart'; |
| 15 import 'package:test_reflective_loader/test_reflective_loader.dart'; | 14 import 'package:test_reflective_loader/test_reflective_loader.dart'; |
| 16 import 'package:typed_mock/typed_mock.dart'; | 15 import 'package:typed_mock/typed_mock.dart'; |
| 17 | 16 |
| 18 main() { | 17 main() { |
| 19 defineReflectiveSuite(() { | 18 defineReflectiveSuite(() { |
| 20 defineReflectiveTests(ResynthesizerResultProviderTest); | 19 defineReflectiveTests(ResynthesizerResultProviderTest); |
| 21 defineReflectiveTests(SummaryDataStoreTest); | 20 defineReflectiveTests(SummaryDataStoreTest); |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 class _LinkedLibraryMock extends TypedMock implements LinkedLibrary {} | 278 class _LinkedLibraryMock extends TypedMock implements LinkedLibrary {} |
| 280 | 279 |
| 281 class _PackageBundleMock extends TypedMock implements PackageBundle {} | 280 class _PackageBundleMock extends TypedMock implements PackageBundle {} |
| 282 | 281 |
| 283 class _SourceFactoryMock extends TypedMock implements SourceFactory {} | 282 class _SourceFactoryMock extends TypedMock implements SourceFactory {} |
| 284 | 283 |
| 285 class _SourceMock implements Source { | 284 class _SourceMock implements Source { |
| 286 final Uri uri; | 285 final Uri uri; |
| 287 final String fullName; | 286 final String fullName; |
| 288 | 287 |
| 289 _SourceMock(String uriStr, this.fullName) : uri = FastUri.parse(uriStr); | 288 _SourceMock(String uriStr, this.fullName) : uri = Uri.parse(uriStr); |
| 290 | 289 |
| 291 @override | 290 @override |
| 292 Source get librarySource => null; | 291 Source get librarySource => null; |
| 293 | 292 |
| 294 @override | 293 @override |
| 295 Source get source => this; | 294 Source get source => this; |
| 296 | 295 |
| 297 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); | 296 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); |
| 298 | 297 |
| 299 @override | 298 @override |
| (...skipping 10 matching lines...) Expand all Loading... |
| 310 @override | 309 @override |
| 311 bool hasResultsForSource(Source source) { | 310 bool hasResultsForSource(Source source) { |
| 312 return sourcesWithResults.contains(source); | 311 return sourcesWithResults.contains(source); |
| 313 } | 312 } |
| 314 } | 313 } |
| 315 | 314 |
| 316 class _UnlinkedPublicNamespaceMock extends TypedMock | 315 class _UnlinkedPublicNamespaceMock extends TypedMock |
| 317 implements UnlinkedPublicNamespace {} | 316 implements UnlinkedPublicNamespace {} |
| 318 | 317 |
| 319 class _UnlinkedUnitMock extends TypedMock implements UnlinkedUnit {} | 318 class _UnlinkedUnitMock extends TypedMock implements UnlinkedUnit {} |
| OLD | NEW |