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

Unified Diff: base/files/file_unittest.cc

Issue 102873002: Move GetFileSize, NormalizeFilePath to base namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 | « base/file_util_win.cc ('k') | base/platform_file_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/files/file_unittest.cc
diff --git a/base/files/file_unittest.cc b/base/files/file_unittest.cc
index 178f86740763908d0a281d551c58153520f1b931..b2e855da1a048c877630f0d67808b685e3e88131 100644
--- a/base/files/file_unittest.cc
+++ b/base/files/file_unittest.cc
@@ -158,7 +158,7 @@ TEST(File, ReadWrite) {
// Make sure the file was extended.
int64 file_size = 0;
- EXPECT_TRUE(file_util::GetFileSize(file_path, &file_size));
+ EXPECT_TRUE(GetFileSize(file_path, &file_size));
EXPECT_EQ(kOffsetBeyondEndOfFile + kPartialWriteLength, file_size);
// Make sure the file was zero-padded.
@@ -240,7 +240,7 @@ TEST(File, Truncate) {
const int kExtendedFileLength = 10;
int64 file_size = 0;
EXPECT_TRUE(file.Truncate(kExtendedFileLength));
- EXPECT_TRUE(file_util::GetFileSize(file_path, &file_size));
+ EXPECT_TRUE(GetFileSize(file_path, &file_size));
EXPECT_EQ(kExtendedFileLength, file_size);
// Make sure the file was zero-padded.
@@ -255,7 +255,7 @@ TEST(File, Truncate) {
// Truncate the file.
const int kTruncatedFileLength = 2;
EXPECT_TRUE(file.Truncate(kTruncatedFileLength));
- EXPECT_TRUE(file_util::GetFileSize(file_path, &file_size));
+ EXPECT_TRUE(GetFileSize(file_path, &file_size));
EXPECT_EQ(kTruncatedFileLength, file_size);
// Make sure the file was truncated.
« no previous file with comments | « base/file_util_win.cc ('k') | base/platform_file_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698