| 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'; | 11 import 'package:analyzer/src/util/fast_uri.dart'; |
| 12 import 'package:analyzer/task/dart.dart'; | 12 import 'package:analyzer/task/dart.dart'; |
| 13 import 'package:analyzer/task/general.dart'; | 13 import 'package:analyzer/task/general.dart'; |
| 14 import 'package:test/test.dart'; |
| 14 import 'package:test_reflective_loader/test_reflective_loader.dart'; | 15 import 'package:test_reflective_loader/test_reflective_loader.dart'; |
| 15 import 'package:typed_mock/typed_mock.dart'; | 16 import 'package:typed_mock/typed_mock.dart'; |
| 16 import 'package:unittest/unittest.dart'; | |
| 17 | 17 |
| 18 main() { | 18 main() { |
| 19 groupSep = ' | '; | 19 defineReflectiveSuite(() { |
| 20 defineReflectiveTests(ResynthesizerResultProviderTest); | 20 defineReflectiveTests(ResynthesizerResultProviderTest); |
| 21 defineReflectiveTests(SummaryDataStoreTest); | 21 defineReflectiveTests(SummaryDataStoreTest); |
| 22 }); |
| 22 } | 23 } |
| 23 | 24 |
| 24 UnlinkedPublicNamespace _namespaceWithParts(List<String> parts) { | 25 UnlinkedPublicNamespace _namespaceWithParts(List<String> parts) { |
| 25 UnlinkedPublicNamespace namespace = new _UnlinkedPublicNamespaceMock(); | 26 UnlinkedPublicNamespace namespace = new _UnlinkedPublicNamespaceMock(); |
| 26 when(namespace.parts).thenReturn(parts); | 27 when(namespace.parts).thenReturn(parts); |
| 27 return namespace; | 28 return namespace; |
| 28 } | 29 } |
| 29 | 30 |
| 30 @reflectiveTest | 31 @reflectiveTest |
| 31 class ResynthesizerResultProviderTest { | 32 class ResynthesizerResultProviderTest { |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 @override | 300 @override |
| 300 bool hasResultsForSource(Source source) { | 301 bool hasResultsForSource(Source source) { |
| 301 return sourcesWithResults.contains(source); | 302 return sourcesWithResults.contains(source); |
| 302 } | 303 } |
| 303 } | 304 } |
| 304 | 305 |
| 305 class _UnlinkedPublicNamespaceMock extends TypedMock | 306 class _UnlinkedPublicNamespaceMock extends TypedMock |
| 306 implements UnlinkedPublicNamespace {} | 307 implements UnlinkedPublicNamespace {} |
| 307 | 308 |
| 308 class _UnlinkedUnitMock extends TypedMock implements UnlinkedUnit {} | 309 class _UnlinkedUnitMock extends TypedMock implements UnlinkedUnit {} |
| OLD | NEW |