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

Unified Diff: base/files/file_util_proxy_unittest.cc

Issue 105293002: Move more file_util functions 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/files/file_util_proxy.cc ('k') | base/nix/mime_util_xdg.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/files/file_util_proxy_unittest.cc
diff --git a/base/files/file_util_proxy_unittest.cc b/base/files/file_util_proxy_unittest.cc
index 7691d4425045b07bf3f5de9f4930f0a944acecd5..fa4a78c8a0745b00252c4540b1c24922f7839b16 100644
--- a/base/files/file_util_proxy_unittest.cc
+++ b/base/files/file_util_proxy_unittest.cc
@@ -226,7 +226,7 @@ TEST_F(FileUtilProxyTest, GetFileInfo_File) {
// Setup.
ASSERT_EQ(4, file_util::WriteFile(test_path(), "test", 4));
PlatformFileInfo expected_info;
- file_util::GetFileInfo(test_path(), &expected_info);
+ GetFileInfo(test_path(), &expected_info);
// Run.
FileUtilProxy::GetFileInfo(
@@ -249,7 +249,7 @@ TEST_F(FileUtilProxyTest, GetFileInfo_Directory) {
// Setup.
ASSERT_TRUE(base::CreateDirectory(test_path()));
PlatformFileInfo expected_info;
- file_util::GetFileInfo(test_path(), &expected_info);
+ GetFileInfo(test_path(), &expected_info);
// Run.
FileUtilProxy::GetFileInfo(
@@ -342,7 +342,7 @@ TEST_F(FileUtilProxyTest, Touch) {
EXPECT_EQ(PLATFORM_FILE_OK, error_);
PlatformFileInfo info;
- file_util::GetFileInfo(test_path(), &info);
+ GetFileInfo(test_path(), &info);
// The returned values may only have the seconds precision, so we cast
// the double values to int here.
@@ -357,7 +357,7 @@ TEST_F(FileUtilProxyTest, Truncate_Shrink) {
const char kTestData[] = "0123456789";
ASSERT_EQ(10, file_util::WriteFile(test_path(), kTestData, 10));
PlatformFileInfo info;
- file_util::GetFileInfo(test_path(), &info);
+ GetFileInfo(test_path(), &info);
ASSERT_EQ(10, info.size);
// Run.
@@ -369,7 +369,7 @@ TEST_F(FileUtilProxyTest, Truncate_Shrink) {
MessageLoop::current()->Run();
// Verify.
- file_util::GetFileInfo(test_path(), &info);
+ GetFileInfo(test_path(), &info);
ASSERT_EQ(7, info.size);
char buffer[7];
@@ -384,7 +384,7 @@ TEST_F(FileUtilProxyTest, Truncate_Expand) {
const char kTestData[] = "9876543210";
ASSERT_EQ(10, file_util::WriteFile(test_path(), kTestData, 10));
PlatformFileInfo info;
- file_util::GetFileInfo(test_path(), &info);
+ GetFileInfo(test_path(), &info);
ASSERT_EQ(10, info.size);
// Run.
@@ -396,7 +396,7 @@ TEST_F(FileUtilProxyTest, Truncate_Expand) {
MessageLoop::current()->Run();
// Verify.
- file_util::GetFileInfo(test_path(), &info);
+ GetFileInfo(test_path(), &info);
ASSERT_EQ(53, info.size);
char buffer[53];
« no previous file with comments | « base/files/file_util_proxy.cc ('k') | base/nix/mime_util_xdg.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698