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

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

Issue 841193003: cleanup to tools/testing/dart (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: one last bit Created 5 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « tools/testing/dart/co19_test_config.dart ('k') | tools/testing/dart/dependency_graph.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 library compiler_configuration; 5 library compiler_configuration;
6 6
7 import 'dart:io' show 7 import 'dart:io' show
8 Platform; 8 Platform;
9 9
10 import 'runtime_configuration.dart' show 10 import 'lib/command.dart';
11 RuntimeConfiguration; 11 import 'lib/test_information.dart';
12 import 'lib/test_utils.dart';
12 13
13 import 'test_runner.dart' show 14 import 'runtime_configuration.dart';
14 Command,
15 CommandBuilder,
16 CompilationCommand;
17
18 import 'test_suite.dart' show
19 TestInformation,
20 TestUtils;
21
22 /// Grouping of a command with its expected result.
23 class CommandArtifact {
24 final List<Command> commands;
25
26 /// Expected result of running [command].
27 final String filename;
28
29 /// MIME type of [filename].
30 final String mimeType;
31
32 CommandArtifact(this.commands, this.filename, this.mimeType);
33 }
34 15
35 Uri nativeDirectoryToUri(String nativePath) { 16 Uri nativeDirectoryToUri(String nativePath) {
36 Uri uri = new Uri.file(nativePath); 17 Uri uri = new Uri.file(nativePath);
37 String path = uri.path; 18 String path = uri.path;
38 return (path == '' || path.endsWith('/')) 19 return (path == '' || path.endsWith('/'))
39 ? uri 20 ? uri
40 : Uri.parse('$uri/'); 21 : Uri.parse('$uri/');
41 } 22 }
42 23
43 abstract class CompilerConfiguration { 24 abstract class CompilerConfiguration {
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 // shipped SDK, that is the script is not installed in 384 // shipped SDK, that is the script is not installed in
404 // "$buildDir/dart-sdk/bin/" 385 // "$buildDir/dart-sdk/bin/"
405 return '$prefix/dartanalyzer_developer$suffix'; 386 return '$prefix/dartanalyzer_developer$suffix';
406 } 387 }
407 if (useSdk) { 388 if (useSdk) {
408 prefix = '$buildDir/dart-sdk/bin'; 389 prefix = '$buildDir/dart-sdk/bin';
409 } 390 }
410 return '$prefix/dartanalyzer$suffix'; 391 return '$prefix/dartanalyzer$suffix';
411 } 392 }
412 } 393 }
OLDNEW
« no previous file with comments | « tools/testing/dart/co19_test_config.dart ('k') | tools/testing/dart/dependency_graph.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698