blob: 18083dd03850226d03730a183ccdede1871d1544 [file] [log] [blame]
// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
// 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 analyzer.test.embedder_tests;
import 'dart:core';
import 'package:analyzer/file_system/file_system.dart';
import 'package:analyzer/file_system/memory_file_system.dart';
import 'resource_utils.dart';
abstract class EmbedderRelatedTest {
final String emptyPath = '/home/.pub-cache/empty';
final String foxPath = '/home/.pub-cache/fox';
final String foxLib = '/home/.pub-cache/fox/lib';
TestPathTranslator pathTranslator;
ResourceProvider resourceProvider;
buildResourceProvider() {
MemoryResourceProvider rawProvider = new MemoryResourceProvider();
resourceProvider = new TestResourceProvider(rawProvider);
pathTranslator = new TestPathTranslator(rawProvider)
"dart:core" : "core.dart"
"dart:fox": "slippy.dart"
"dart:bear": "grizzly.dart"
"dart:relative": "../relative.dart"
"dart:deep": "deep/directory/file.dart"
"fart:loudly": "nomatter.dart"
clearResourceProvider() {
resourceProvider = null;
pathTranslator = null;
void setUp() {
void tearDown() {