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

Side by Side Diff: pkg/analyzer/test/generated/bazel_test.dart

Issue 2082813002: Fix C&P error, rename ResourceUriResolverTest to BazelFileUriResolverTest (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.generated.bazel_test; 5 library analyzer.test.generated.bazel_test;
6 6
7 import 'package:analyzer/file_system/file_system.dart'; 7 import 'package:analyzer/file_system/file_system.dart';
8 import 'package:analyzer/file_system/memory_file_system.dart'; 8 import 'package:analyzer/file_system/memory_file_system.dart';
9 import 'package:analyzer/src/generated/bazel.dart'; 9 import 'package:analyzer/src/generated/bazel.dart';
10 import 'package:analyzer/src/generated/source.dart'; 10 import 'package:analyzer/src/generated/source.dart';
11 import 'package:unittest/unittest.dart'; 11 import 'package:unittest/unittest.dart';
12 12
13 import '../reflective_tests.dart'; 13 import '../reflective_tests.dart';
14 import '../utils.dart'; 14 import '../utils.dart';
15 15
16 main() { 16 main() {
17 initializeTestEnvironment(); 17 initializeTestEnvironment();
18 runReflectiveTests(ResourceUriResolverTest); 18 runReflectiveTests(BazelFileUriResolverTest);
19 } 19 }
20 20
21 @reflectiveTest 21 @reflectiveTest
22 class ResourceUriResolverTest { 22 class BazelFileUriResolverTest {
23 MemoryResourceProvider provider; 23 MemoryResourceProvider provider;
24 Folder workspace; 24 Folder workspace;
25 List<Folder> buildDirs; 25 List<Folder> buildDirs;
26 ResourceUriResolver resolver; 26 ResourceUriResolver resolver;
27 27
28 void setUp() { 28 void setUp() {
29 provider = new MemoryResourceProvider(); 29 provider = new MemoryResourceProvider();
30 workspace = provider.newFolder('/workspace'); 30 workspace = provider.newFolder('/workspace');
31 buildDirs = [provider.newFolder('/workspace/one'), provider.newFolder('/work space/two')]; 31 buildDirs = [provider.newFolder('/workspace/one'), provider.newFolder('/work space/two')];
32 resolver = new BazelFileUriResolver(provider, workspace, buildDirs); 32 resolver = new BazelFileUriResolver(provider, workspace, buildDirs);
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 var uri = new Uri(scheme: 'file', path: '/workspace/test.dart'); 95 var uri = new Uri(scheme: 'file', path: '/workspace/test.dart');
96 Source source = resolver.resolveAbsolute(uri); 96 Source source = resolver.resolveAbsolute(uri);
97 expect(source, isNotNull); 97 expect(source, isNotNull);
98 expect(resolver.restoreAbsolute(source), uri); 98 expect(resolver.restoreAbsolute(source), uri);
99 expect( 99 expect(
100 resolver.restoreAbsolute( 100 resolver.restoreAbsolute(
101 new NonExistingSource(source.fullName, null, null)), 101 new NonExistingSource(source.fullName, null, null)),
102 uri); 102 uri);
103 } 103 }
104 } 104 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698