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

Side by Side Diff: tools/testing/dart/compiler_configuration.dart

Issue 2915843003: Simplify test_suite.dart. (Closed)
Patch Set: Fix path in test. Created 3 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 | « tools/testing/dart/co19_test.dart ('k') | tools/testing/dart/configuration.dart » ('j') | 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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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:io'; 5 import 'dart:io';
6 6
7 import 'configuration.dart'; 7 import 'configuration.dart';
8 import 'runtime_configuration.dart'; 8 import 'runtime_configuration.dart';
9 import 'test_runner.dart'; 9 import 'test_runner.dart';
10 import 'test_suite.dart'; 10 import 'test_suite.dart';
11 import 'utils.dart';
11 12
12 List<String> replaceDartFileWith(List<String> list, String replacement) { 13 List<String> replaceDartFileWith(List<String> list, String replacement) {
13 var copy = new List<String>.from(list); 14 var copy = new List<String>.from(list);
14 for (var i = 0; i < copy.length; i++) { 15 for (var i = 0; i < copy.length; i++) {
15 if (copy[i].endsWith(".dart")) { 16 if (copy[i].endsWith(".dart")) {
16 copy[i] = replacement; 17 copy[i] = replacement;
17 } 18 }
18 } 19 }
19 return copy; 20 return copy;
20 } 21 }
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 environmentOverrides); 266 environmentOverrides);
266 } 267 }
267 268
268 CommandArtifact computeCompilationArtifact( 269 CommandArtifact computeCompilationArtifact(
269 String buildDir, 270 String buildDir,
270 String tempDir, 271 String tempDir,
271 CommandBuilder commandBuilder, 272 CommandBuilder commandBuilder,
272 List<String> arguments, 273 List<String> arguments,
273 Map<String, String> environmentOverrides) { 274 Map<String, String> environmentOverrides) {
274 return new CommandArtifact(<Command>[ 275 return new CommandArtifact(<Command>[
275 this.computeCompilationCommand('$tempDir/out.dill', buildDir, 276 computeCompilationCommand('$tempDir/out.dill', buildDir,
276 CommandBuilder.instance, arguments, environmentOverrides) 277 CommandBuilder.instance, arguments, environmentOverrides)
277 ], '$tempDir/out.dill', 'application/dart'); 278 ], '$tempDir/out.dill', 'application/dart');
278 } 279 }
279 280
280 List<String> computeRuntimeArguments( 281 List<String> computeRuntimeArguments(
281 RuntimeConfiguration runtimeConfiguration, 282 RuntimeConfiguration runtimeConfiguration,
282 String buildDir, 283 String buildDir,
283 TestInformation info, 284 TestInformation info,
284 List<String> vmOptions, 285 List<String> vmOptions,
285 List<String> sharedOptions, 286 List<String> sharedOptions,
(...skipping 650 matching lines...) Expand 10 before | Expand all | Expand 10 after
936 RuntimeConfiguration runtimeConfiguration, 937 RuntimeConfiguration runtimeConfiguration,
937 String buildDir, 938 String buildDir,
938 TestInformation info, 939 TestInformation info,
939 List<String> vmOptions, 940 List<String> vmOptions,
940 List<String> sharedOptions, 941 List<String> sharedOptions,
941 List<String> originalArguments, 942 List<String> originalArguments,
942 CommandArtifact artifact) { 943 CommandArtifact artifact) {
943 return <String>[]; 944 return <String>[];
944 } 945 }
945 } 946 }
OLDNEW
« no previous file with comments | « tools/testing/dart/co19_test.dart ('k') | tools/testing/dart/configuration.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698