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

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

Issue 2389003004: Clean up unnecessary absolute URIs in summary tests. (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 library analyzer.test.src.summary.summarize_ast_test; 5 library analyzer.test.src.summary.summarize_ast_test;
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/dart/ast/token.dart'; 9 import 'package:analyzer/dart/ast/token.dart';
10 import 'package:analyzer/error/listener.dart'; 10 import 'package:analyzer/error/listener.dart';
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 with SummaryTest { 127 with SummaryTest {
128 @override 128 @override
129 LinkedLibrary linked; 129 LinkedLibrary linked;
130 130
131 @override 131 @override
132 List<UnlinkedUnit> unlinkedUnits; 132 List<UnlinkedUnit> unlinkedUnits;
133 133
134 LinkerInputs linkerInputs; 134 LinkerInputs linkerInputs;
135 135
136 @override 136 @override
137 bool get expectAbsoluteUrisInDependencies => false;
138
139 @override
140 bool get skipFullyLinkedData => false; 137 bool get skipFullyLinkedData => false;
141 138
142 @override 139 @override
143 bool get skipNonConstInitializers => false; 140 bool get skipNonConstInitializers => false;
144 141
145 @override 142 @override
146 void serializeLibraryText(String text, {bool allowErrors: false}) { 143 void serializeLibraryText(String text, {bool allowErrors: false}) {
147 Map<String, UnlinkedUnitBuilder> uriToUnit = this._filesToLink.uriToUnit; 144 Map<String, UnlinkedUnitBuilder> uriToUnit = this._filesToLink.uriToUnit;
148 linkerInputs = createLinkerInputs(text); 145 linkerInputs = createLinkerInputs(text);
149 linked = link( 146 linked = link(
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 * passed to [addNamedSource]. 332 * passed to [addNamedSource].
336 */ 333 */
337 Map<String, UnlinkedUnitBuilder> uriToUnit = <String, UnlinkedUnitBuilder>{}; 334 Map<String, UnlinkedUnitBuilder> uriToUnit = <String, UnlinkedUnitBuilder>{};
338 335
339 /** 336 /**
340 * Information about summaries to be included in the link process. 337 * Information about summaries to be included in the link process.
341 */ 338 */
342 SummaryDataStore summaryDataStore = 339 SummaryDataStore summaryDataStore =
343 new SummaryDataStore([], recordDependencyInfo: true); 340 new SummaryDataStore([], recordDependencyInfo: true);
344 } 341 }
OLDNEW
« no previous file with comments | « pkg/analyzer/test/src/summary/prelinker_test.dart ('k') | pkg/analyzer/test/src/summary/summary_common.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698