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

Side by Side Diff: pkg/analyzer/test/src/summary/summary_common.dart

Issue 2391423003: Switch 'analyzer' to 'package:test' and test_reflective_loader ^0.1.0. (Closed)
Patch Set: Created 4 years, 2 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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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.summary.summary_common; 5 library analyzer.test.src.summary.summary_common;
6 6
7 import 'package:analyzer/analyzer.dart'; 7 import 'package:analyzer/analyzer.dart';
8 import 'package:analyzer/dart/ast/ast.dart'; 8 import 'package:analyzer/dart/ast/ast.dart';
9 import 'package:analyzer/error/listener.dart'; 9 import 'package:analyzer/error/listener.dart';
10 import 'package:analyzer/src/dart/scanner/reader.dart'; 10 import 'package:analyzer/src/dart/scanner/reader.dart';
11 import 'package:analyzer/src/dart/scanner/scanner.dart'; 11 import 'package:analyzer/src/dart/scanner/scanner.dart';
12 import 'package:analyzer/src/generated/parser.dart'; 12 import 'package:analyzer/src/generated/parser.dart';
13 import 'package:analyzer/src/generated/source.dart'; 13 import 'package:analyzer/src/generated/source.dart';
14 import 'package:analyzer/src/generated/source_io.dart'; 14 import 'package:analyzer/src/generated/source_io.dart';
15 import 'package:analyzer/src/summary/base.dart'; 15 import 'package:analyzer/src/summary/base.dart';
16 import 'package:analyzer/src/summary/idl.dart'; 16 import 'package:analyzer/src/summary/idl.dart';
17 import 'package:analyzer/src/summary/public_namespace_computer.dart' 17 import 'package:analyzer/src/summary/public_namespace_computer.dart'
18 as public_namespace; 18 as public_namespace;
19 import 'package:path/path.dart' show posix; 19 import 'package:path/path.dart' show posix;
20 import 'package:unittest/unittest.dart'; 20 import 'package:test/test.dart';
21 21
22 import '../context/mock_sdk.dart'; 22 import '../context/mock_sdk.dart';
23 23
24 /** 24 /**
25 * Convert the given Posix style file [path] to the corresponding absolute URI. 25 * Convert the given Posix style file [path] to the corresponding absolute URI.
26 */ 26 */
27 String absUri(String path) { 27 String absUri(String path) {
28 String absolutePath = posix.absolute(path); 28 String absolutePath = posix.absolute(path);
29 return posix.toUri(absolutePath).toString(); 29 return posix.toUri(absolutePath).toString();
30 } 30 }
(...skipping 10313 matching lines...) Expand 10 before | Expand all | Expand 10 after
10344 class _PrefixExpectation { 10344 class _PrefixExpectation {
10345 final ReferenceKind kind; 10345 final ReferenceKind kind;
10346 final String name; 10346 final String name;
10347 final String absoluteUri; 10347 final String absoluteUri;
10348 final String relativeUri; 10348 final String relativeUri;
10349 final int numTypeParameters; 10349 final int numTypeParameters;
10350 10350
10351 _PrefixExpectation(this.kind, this.name, 10351 _PrefixExpectation(this.kind, this.name,
10352 {this.absoluteUri, this.relativeUri, this.numTypeParameters: 0}); 10352 {this.absoluteUri, this.relativeUri, this.numTypeParameters: 0});
10353 } 10353 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698