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

Unified Diff: tests/standalone/src/io/ProcessTestUtil.dart

Issue 10021048: Remove need to instantiate Platform and make methods static. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add stable test binaries. Created 8 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/standalone/src/io/PlatformTest.dart ('k') | tools/testing/bin/linux/dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/src/io/ProcessTestUtil.dart
diff --git a/tests/standalone/src/io/ProcessTestUtil.dart b/tests/standalone/src/io/ProcessTestUtil.dart
index 459484b9672e8494c00aee603049080b99179747..0f80c3643849dade5b1dbfee7803fd89f4936030 100644
--- a/tests/standalone/src/io/ProcessTestUtil.dart
+++ b/tests/standalone/src/io/ProcessTestUtil.dart
@@ -1,16 +1,16 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
String getPlatformOutDir() {
- var os = new Platform().operatingSystem();
+ var os = Platform.operatingSystem();
if (os == 'linux') return 'out/';
if (os == 'macos') return 'xcodebuild/';
return ''; // Windows.
}
String getPlatformExecutableExtension() {
- var os = new Platform().operatingSystem();
+ var os = Platform.operatingSystem();
if (os == 'windows') return '.exe';
return ''; // Linux and Mac OS.
}
« no previous file with comments | « tests/standalone/src/io/PlatformTest.dart ('k') | tools/testing/bin/linux/dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698