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

Unified Diff: webkit/browser/fileapi/native_file_util_unittest.cc

Issue 19052005: Move PathIsWritable, DirectoryExists, ContentsEqual, and TextContentsEqual to the base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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 | « webkit/browser/fileapi/native_file_util.cc ('k') | webkit/browser/fileapi/obfuscated_file_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/browser/fileapi/native_file_util_unittest.cc
diff --git a/webkit/browser/fileapi/native_file_util_unittest.cc b/webkit/browser/fileapi/native_file_util_unittest.cc
index 3b99ab11656297ea97718c014ed0394f7f694d47..1ed699e2e4468f42783824c8fe478d4a611b9ff5 100644
--- a/webkit/browser/fileapi/native_file_util_unittest.cc
+++ b/webkit/browser/fileapi/native_file_util_unittest.cc
@@ -30,7 +30,7 @@ class NativeFileUtilTest : public testing::Test {
bool FileExists(const base::FilePath& path) {
return base::PathExists(path) &&
- !file_util::DirectoryExists(path);
+ !base::DirectoryExists(path);
}
int64 GetSize(const base::FilePath& path) {
@@ -99,7 +99,7 @@ TEST_F(NativeFileUtilTest, CreateAndDeleteDirectory) {
false /* recursive */));
EXPECT_TRUE(NativeFileUtil::DirectoryExists(dir_name));
- EXPECT_TRUE(file_util::DirectoryExists(dir_name));
+ EXPECT_TRUE(base::DirectoryExists(dir_name));
ASSERT_EQ(base::PLATFORM_FILE_ERROR_EXISTS,
NativeFileUtil::CreateDirectory(dir_name,
@@ -108,7 +108,7 @@ TEST_F(NativeFileUtilTest, CreateAndDeleteDirectory) {
ASSERT_EQ(base::PLATFORM_FILE_OK,
NativeFileUtil::DeleteDirectory(dir_name));
- EXPECT_FALSE(file_util::DirectoryExists(dir_name));
+ EXPECT_FALSE(base::DirectoryExists(dir_name));
EXPECT_FALSE(NativeFileUtil::DirectoryExists(dir_name));
}
@@ -240,7 +240,7 @@ TEST_F(NativeFileUtilTest, CopyFile) {
base::FilePath dir = Path("dir");
ASSERT_EQ(base::PLATFORM_FILE_OK,
NativeFileUtil::CreateDirectory(dir, false, false));
- ASSERT_TRUE(file_util::DirectoryExists(dir));
+ ASSERT_TRUE(base::DirectoryExists(dir));
base::FilePath to_dir_file = dir.AppendASCII("file");
ASSERT_EQ(base::PLATFORM_FILE_OK,
NativeFileUtil::CopyOrMoveFile(from_file, to_dir_file, true));
@@ -299,7 +299,7 @@ TEST_F(NativeFileUtilTest, MoveFile) {
base::FilePath dir = Path("dir");
ASSERT_EQ(base::PLATFORM_FILE_OK,
NativeFileUtil::CreateDirectory(dir, false, false));
- ASSERT_TRUE(file_util::DirectoryExists(dir));
+ ASSERT_TRUE(base::DirectoryExists(dir));
base::FilePath to_dir_file = dir.AppendASCII("file");
ASSERT_EQ(base::PLATFORM_FILE_OK,
NativeFileUtil::CopyOrMoveFile(from_file, to_dir_file, false));
« no previous file with comments | « webkit/browser/fileapi/native_file_util.cc ('k') | webkit/browser/fileapi/obfuscated_file_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698