| Index: pkg/analysis_testing/lib/abstract_context.dart
|
| diff --git a/pkg/analysis_server/test/abstract_context.dart b/pkg/analysis_testing/lib/abstract_context.dart
|
| similarity index 94%
|
| rename from pkg/analysis_server/test/abstract_context.dart
|
| rename to pkg/analysis_testing/lib/abstract_context.dart
|
| index f7ac28625059aa22782060a88fd9676f15d8112e..625f816c0780893a81db9ede708b933de7c0a1a1 100644
|
| --- a/pkg/analysis_server/test/abstract_context.dart
|
| +++ b/pkg/analysis_testing/lib/abstract_context.dart
|
| @@ -2,8 +2,10 @@
|
| // for details. All rights reserved. Use of this source code is governed by a
|
| // BSD-style license that can be found in the LICENSE file.
|
|
|
| -library test.index;
|
| +library testing.abstract_context;
|
|
|
| +import 'package:analysis_testing/mock_sdk.dart';
|
| +import 'package:analysis_testing/reflective_tests.dart';
|
| import 'package:analyzer/file_system/file_system.dart';
|
| import 'package:analyzer/file_system/memory_file_system.dart';
|
| import 'package:analyzer/src/generated/ast.dart';
|
| @@ -12,9 +14,6 @@ import 'package:analyzer/src/generated/engine.dart';
|
| import 'package:analyzer/src/generated/sdk.dart';
|
| import 'package:analyzer/src/generated/source_io.dart';
|
|
|
| -import 'mocks.dart';
|
| -import 'reflective_tests.dart';
|
| -
|
|
|
| /**
|
| * Finds an [engine.Element] with the given [name].
|
| @@ -45,8 +44,8 @@ typedef void _ElementVisitorFunction(Element element);
|
| class AbstractContextTest {
|
| static final DartSdk SDK = new MockSdk();
|
|
|
| - AnalysisContext context;
|
| MemoryResourceProvider provider = new MemoryResourceProvider();
|
| + AnalysisContext context;
|
|
|
| Source addSource(String path, String content) {
|
| File file = provider.newFile(path, content);
|
|
|