Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(901)

Unified Diff: pkg/analysis_testing/lib/abstract_context.dart

Issue 376693002: Extract testing utilities into a separate package. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698