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

Unified Diff: runtime/bin/file_test.cc

Issue 3001963002: [dart:io] Namespaces for file IO (Closed)
Patch Set: Fuchsia fix 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/file_system_watcher_win.cc ('k') | runtime/bin/file_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/file_test.cc
diff --git a/runtime/bin/file_test.cc b/runtime/bin/file_test.cc
index d5dda5e63674055257dd9e5fd3d1dce829d8bc51..0ed3a35455a2607e9f569803856f5352595a2d2f 100644
--- a/runtime/bin/file_test.cc
+++ b/runtime/bin/file_test.cc
@@ -13,7 +13,7 @@ namespace bin {
// Helper method to be able to run the test from the runtime
// directory, or the top directory.
static const char* GetFileName(const char* name) {
- if (File::Exists(name)) {
+ if (File::Exists(NULL, name)) {
return name;
} else {
static const int kRuntimeLength = strlen("runtime/");
@@ -23,7 +23,7 @@ static const char* GetFileName(const char* name) {
TEST_CASE(Read) {
const char* kFilename = GetFileName("runtime/bin/file_test.cc");
- File* file = File::Open(kFilename, File::kRead);
+ File* file = File::Open(NULL, kFilename, File::kRead);
EXPECT(file != NULL);
char buffer[16];
buffer[0] = '\0';
@@ -37,7 +37,7 @@ TEST_CASE(Read) {
TEST_CASE(FileLength) {
const char* kFilename =
GetFileName("runtime/tests/vm/data/fixed_length_file");
- File* file = File::Open(kFilename, File::kRead);
+ File* file = File::Open(NULL, kFilename, File::kRead);
EXPECT(file != NULL);
EXPECT_EQ(42, file->Length());
file->Release();
@@ -47,7 +47,7 @@ TEST_CASE(FilePosition) {
char buf[42];
const char* kFilename =
GetFileName("runtime/tests/vm/data/fixed_length_file");
- File* file = File::Open(kFilename, File::kRead);
+ File* file = File::Open(NULL, kFilename, File::kRead);
EXPECT(file != NULL);
EXPECT(file->ReadFully(buf, 12));
EXPECT_EQ(12, file->Position());
« no previous file with comments | « runtime/bin/file_system_watcher_win.cc ('k') | runtime/bin/file_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698