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

Side by Side Diff: tests/standalone/src/ProcessTestUtil.dart

Issue 8676011: Fix refactoring bug (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years, 1 month 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 | « no previous file | no next file » | 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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 String getPlatformOutDir() { 5 String getPlatformOutDir() {
6 var os = new Platform().operatingSystem(); 6 var os = new Platform().operatingSystem();
7 if (os == 'linux') return 'out'; 7 if (os == 'linux') return 'out';
8 if (os == 'macos') 'xcodebuild'; 8 if (os == 'macos') return 'xcodebuild';
9 return ''; // Windows. 9 return ''; // Windows.
10 } 10 }
11 11
12 String getProcessTestFileName() { 12 String getProcessTestFileName() {
13 var outDir = getPlatformOutDir(); 13 var outDir = getPlatformOutDir();
14 var names = ['$outDir/Release_ia32/process_test', 14 var names = ['$outDir/Release_ia32/process_test',
15 '$outDir/Debug_ia32/process_test']; 15 '$outDir/Debug_ia32/process_test'];
16 16
17 for (var name in names) { 17 for (var name in names) {
18 if (new File(name).existsSync()) { 18 if (new File(name).existsSync()) {
19 return name; 19 return name;
20 } 20 }
21 } 21 }
22 Expect.fail('Could not find the process_test executable.'); 22 Expect.fail('Could not find the process_test executable.');
23 } 23 }
24 24
25 String getDartFileName() { 25 String getDartFileName() {
26 var outDir = getPlatformOutDir(); 26 var outDir = getPlatformOutDir();
27 var names = ['$outDir/Release_ia32/dart', 27 var names = ['$outDir/Release_ia32/dart',
28 '$outDir/Debug_ia32/dart']; 28 '$outDir/Debug_ia32/dart'];
29 29
30 for (var name in names) { 30 for (var name in names) {
31 if (new File(name).existsSync()) { 31 if (new File(name).existsSync()) {
32 return name; 32 return name;
33 } 33 }
34 } 34 }
35 Expect.fail('Could not find the dart executable.'); 35 Expect.fail('Could not find the dart executable.');
36 } 36 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698