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

Side by Side Diff: pkg/analysis_server/test/services/index/index_unit_test.dart

Issue 2394683006: Switch analysis_server to use 'package:test'. (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) 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 import 'dart:convert'; 5 import 'dart:convert';
6 6
7 import 'package:analysis_server/src/services/index/index_unit.dart'; 7 import 'package:analysis_server/src/services/index/index_unit.dart';
8 import 'package:analyzer/dart/ast/ast.dart'; 8 import 'package:analyzer/dart/ast/ast.dart';
9 import 'package:analyzer/dart/element/element.dart'; 9 import 'package:analyzer/dart/element/element.dart';
10 import 'package:analyzer/src/summary/format.dart'; 10 import 'package:analyzer/src/summary/format.dart';
11 import 'package:analyzer/src/summary/idl.dart'; 11 import 'package:analyzer/src/summary/idl.dart';
12 import 'package:test/test.dart';
12 import 'package:test_reflective_loader/test_reflective_loader.dart'; 13 import 'package:test_reflective_loader/test_reflective_loader.dart';
13 import 'package:unittest/unittest.dart';
14 14
15 import '../../abstract_single_unit.dart'; 15 import '../../abstract_single_unit.dart';
16 16
17 main() { 17 main() {
18 groupSep = ' | '; 18 defineReflectiveSuite(() {
19 defineReflectiveTests(PackageIndexAssemblerTest); 19 defineReflectiveTests(PackageIndexAssemblerTest);
20 });
20 } 21 }
21 22
22 class ExpectedLocation { 23 class ExpectedLocation {
23 final CompilationUnitElement unitElement; 24 final CompilationUnitElement unitElement;
24 final int offset; 25 final int offset;
25 final int length; 26 final int length;
26 final bool isQualified; 27 final bool isQualified;
27 28
28 ExpectedLocation( 29 ExpectedLocation(
29 this.unitElement, this.offset, this.length, this.isQualified); 30 this.unitElement, this.offset, this.length, this.isQualified);
(...skipping 1301 matching lines...) Expand 10 before | Expand all | Expand 10 after
1331 final bool isQualified; 1332 final bool isQualified;
1332 1333
1333 _Relation(this.kind, this.offset, this.length, this.isQualified); 1334 _Relation(this.kind, this.offset, this.length, this.isQualified);
1334 1335
1335 @override 1336 @override
1336 String toString() { 1337 String toString() {
1337 return '_Relation{kind: $kind, offset: $offset, length: $length, ' 1338 return '_Relation{kind: $kind, offset: $offset, length: $length, '
1338 'isQualified: $isQualified}'; 1339 'isQualified: $isQualified}';
1339 } 1340 }
1340 } 1341 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698