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

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

Issue 1690303002: Add dart_product binary (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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 | « runtime/bin/main.cc ('k') | tools/testing/dart/test_suite.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 runtime_configuration; 5 library runtime_configuration;
6 6
7 import 'compiler_configuration.dart' show 7 import 'compiler_configuration.dart' show
8 CommandArtifact; 8 CommandArtifact;
9 9
10 // TODO(ahe): Remove this import, we can precompute all the values required 10 // TODO(ahe): Remove this import, we can precompute all the values required
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 String type = artifact.mimeType; 240 String type = artifact.mimeType;
241 if (script != null && type != 'application/dart-snapshot') { 241 if (script != null && type != 'application/dart-snapshot') {
242 throw "dart_product cannot run files of type '$type'."; 242 throw "dart_product cannot run files of type '$type'.";
243 } 243 }
244 244
245 var augmentedArgs = new List(); 245 var augmentedArgs = new List();
246 augmentedArgs.add("--run-full-snapshot=${artifact.filename}"); 246 augmentedArgs.add("--run-full-snapshot=${artifact.filename}");
247 augmentedArgs.addAll(arguments); 247 augmentedArgs.addAll(arguments);
248 248
249 return <Command>[commandBuilder.getVmCommand( 249 return <Command>[commandBuilder.getVmCommand(
250 suite.dartVmBinaryFileName, augmentedArgs, environmentOverrides)]; 250 suite.dartVmProductBinaryFileName,
251 augmentedArgs,
252 environmentOverrides)];
251 } 253 }
252 } 254 }
253 255
254 class DartPrecompiledRuntimeConfiguration extends DartVmRuntimeConfiguration { 256 class DartPrecompiledRuntimeConfiguration extends DartVmRuntimeConfiguration {
255 List<Command> computeRuntimeCommands( 257 List<Command> computeRuntimeCommands(
256 TestSuite suite, 258 TestSuite suite,
257 CommandBuilder commandBuilder, 259 CommandBuilder commandBuilder,
258 CommandArtifact artifact, 260 CommandArtifact artifact,
259 List<String> arguments, 261 List<String> arguments,
260 Map<String, String> environmentOverrides) { 262 Map<String, String> environmentOverrides) {
(...skipping 21 matching lines...) Expand all
282 class DummyRuntimeConfiguration extends DartVmRuntimeConfiguration { 284 class DummyRuntimeConfiguration extends DartVmRuntimeConfiguration {
283 List<Command> computeRuntimeCommands( 285 List<Command> computeRuntimeCommands(
284 TestSuite suite, 286 TestSuite suite,
285 CommandBuilder commandBuilder, 287 CommandBuilder commandBuilder,
286 CommandArtifact artifact, 288 CommandArtifact artifact,
287 List<String> arguments, 289 List<String> arguments,
288 Map<String, String> environmentOverrides) { 290 Map<String, String> environmentOverrides) {
289 throw "Unimplemented runtime '$runtimeType'"; 291 throw "Unimplemented runtime '$runtimeType'";
290 } 292 }
291 } 293 }
OLDNEW
« no previous file with comments | « runtime/bin/main.cc ('k') | tools/testing/dart/test_suite.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698