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

Side by Side Diff: pkg/analyzer/test/src/context/builder_test.dart

Issue 2254313002: Extract EmbedderRelatedTest to a utility file (Closed) Base URL: git@github.com:cbracken/sdk.git@master
Patch Set: Created 4 years, 4 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 unified diff | Download patch
OLDNEW
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 library analyzer.test.src.context.context_builder_test; 5 library analyzer.test.src.context.context_builder_test;
6 6
7 import 'dart:io' as io; 7 import 'dart:io' as io;
8 8
9 import 'package:analyzer/file_system/file_system.dart'; 9 import 'package:analyzer/file_system/file_system.dart';
10 import 'package:analyzer/file_system/memory_file_system.dart'; 10 import 'package:analyzer/file_system/memory_file_system.dart';
11 import 'package:analyzer/file_system/physical_file_system.dart'; 11 import 'package:analyzer/file_system/physical_file_system.dart';
12 import 'package:analyzer/source/package_map_resolver.dart'; 12 import 'package:analyzer/source/package_map_resolver.dart';
13 import 'package:analyzer/src/context/builder.dart'; 13 import 'package:analyzer/src/context/builder.dart';
14 import 'package:analyzer/src/context/source.dart'; 14 import 'package:analyzer/src/context/source.dart';
15 import 'package:analyzer/src/generated/engine.dart'; 15 import 'package:analyzer/src/generated/engine.dart';
16 import 'package:analyzer/src/generated/sdk.dart'; 16 import 'package:analyzer/src/generated/sdk.dart';
17 import 'package:analyzer/src/generated/source.dart'; 17 import 'package:analyzer/src/generated/source.dart';
18 import 'package:package_config/packages.dart'; 18 import 'package:package_config/packages.dart';
19 import 'package:package_config/src/packages_impl.dart'; 19 import 'package:package_config/src/packages_impl.dart';
20 import 'package:path/path.dart' as path; 20 import 'package:path/path.dart' as path;
21 import 'package:unittest/unittest.dart'; 21 import 'package:unittest/unittest.dart';
22 22
23 import '../../embedder_tests.dart';
23 import '../../generated/test_support.dart'; 24 import '../../generated/test_support.dart';
24 import '../../reflective_tests.dart'; 25 import '../../reflective_tests.dart';
25 import '../../source/embedder_test.dart';
26 import '../../utils.dart'; 26 import '../../utils.dart';
27 import 'mock_sdk.dart'; 27 import 'mock_sdk.dart';
28 28
29 main() { 29 main() {
30 initializeTestEnvironment(); 30 initializeTestEnvironment();
31 runReflectiveTests(ContextBuilderTest_WithDisk); 31 runReflectiveTests(ContextBuilderTest_WithDisk);
32 runReflectiveTests(ContextBuilderTest_WithoutDisk); 32 runReflectiveTests(ContextBuilderTest_WithoutDisk);
33 runReflectiveTests(EmbedderYamlLocatorTest); 33 runReflectiveTests(EmbedderYamlLocatorTest);
34 } 34 }
35 35
(...skipping 680 matching lines...) Expand 10 before | Expand all | Expand 10 after
716 expect(locator.embedderYamls, hasLength(0)); 716 expect(locator.embedderYamls, hasLength(0));
717 } 717 }
718 718
719 void test_valid() { 719 void test_valid() {
720 EmbedderYamlLocator locator = new EmbedderYamlLocator({ 720 EmbedderYamlLocator locator = new EmbedderYamlLocator({
721 'fox': [pathTranslator.getResource('/tmp')] 721 'fox': [pathTranslator.getResource('/tmp')]
722 }); 722 });
723 expect(locator.embedderYamls, hasLength(1)); 723 expect(locator.embedderYamls, hasLength(1));
724 } 724 }
725 } 725 }
OLDNEW
« no previous file with comments | « pkg/analyzer/test/source/embedder_test.dart ('k') | pkg/analyzer/test/src/dart/sdk/sdk_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698