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

Unified Diff: runtime/vm/benchmark_test.cc

Issue 3007703002: [dart:io] Namespaces for file IO (Closed)
Patch Set: Remove namespace_unsupported.cc Created 3 years, 4 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 | « runtime/bin/snapshot_utils.cc ('k') | sdk/lib/_internal/js_runtime/lib/io_patch.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/benchmark_test.cc
diff --git a/runtime/vm/benchmark_test.cc b/runtime/vm/benchmark_test.cc
index 8a656ff45f828950a58f103cef580e204a83aef4..c81c8542948fc5d2b5899008a406539de322e262 100644
--- a/runtime/vm/benchmark_test.cc
+++ b/runtime/vm/benchmark_test.cc
@@ -33,7 +33,7 @@ const char* Benchmark::executable_ = NULL;
//
static char* ComputeDart2JSPath(const char* arg) {
char buffer[2048];
- char* dart2js_path = strdup(File::GetCanonicalPath(arg));
+ char* dart2js_path = strdup(File::GetCanonicalPath(NULL, arg));
const char* compiler_path = "%s%spkg%scompiler%slib%scompiler.dart";
const char* path_separator = File::PathSeparator();
ASSERT(path_separator != NULL && strlen(path_separator) == 1);
@@ -42,7 +42,7 @@ static char* ComputeDart2JSPath(const char* arg) {
*ptr = '\0';
OS::SNPrint(buffer, 2048, compiler_path, dart2js_path, path_separator,
path_separator, path_separator, path_separator, path_separator);
- if (File::Exists(buffer)) {
+ if (File::Exists(NULL, buffer)) {
break;
}
ptr = strrchr(dart2js_path, *path_separator);
@@ -74,7 +74,7 @@ static void SetupDart2JSPackagePath() {
// Setup package root.
char buffer[2048];
char* executable_path =
- strdup(File::GetCanonicalPath(Benchmark::Executable()));
+ strdup(File::GetCanonicalPath(NULL, Benchmark::Executable()));
const char* packages_path = "%s%s..%spackages";
const char* path_separator = File::PathSeparator();
OS::SNPrint(buffer, 2048, packages_path, executable_path, path_separator,
« no previous file with comments | « runtime/bin/snapshot_utils.cc ('k') | sdk/lib/_internal/js_runtime/lib/io_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698