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

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

Issue 9500002: Rename blahHandler to onBlah throughout dart:io. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Renaming Created 8 years, 9 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
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
Søren Gjesse 2012/02/29 15:42:20 No need to change this.
Mads Ager (google) 2012/03/06 07:05:13 Done.
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') return 'xcodebuild/'; 8 if (os == 'macos') return 'xcodebuild/';
9 return ''; // Windows. 9 return ''; // Windows.
10 } 10 }
11 11
(...skipping 23 matching lines...) Expand all
35 var names = ['${outDir}Release_ia32/dart$extension', 35 var names = ['${outDir}Release_ia32/dart$extension',
36 '${outDir}Debug_ia32/dart$extension']; 36 '${outDir}Debug_ia32/dart$extension'];
37 37
38 for (var name in names) { 38 for (var name in names) {
39 if (new File(name).existsSync()) { 39 if (new File(name).existsSync()) {
40 return name; 40 return name;
41 } 41 }
42 } 42 }
43 Expect.fail('Could not find the dart executable.'); 43 Expect.fail('Could not find the dart executable.');
44 } 44 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698