Index: webkit/fileapi/isolated_file_util_unittest.cc |
diff --git a/webkit/fileapi/isolated_file_util_unittest.cc b/webkit/fileapi/isolated_file_util_unittest.cc |
index 7452a31dcdf034bf50c26ff2007b058c23f54be0..92b9f8cbb5478ab4ef3bbf00f2bea5951480a508 100644 |
--- a/webkit/fileapi/isolated_file_util_unittest.cc |
+++ b/webkit/fileapi/isolated_file_util_unittest.cc |
@@ -9,6 +9,7 @@ |
#include <vector> |
#include "base/file_util.h" |
+#include "base/files/file_enumerator.h" |
#include "base/files/scoped_temp_dir.h" |
#include "base/logging.h" |
#include "base/message_loop.h" |
@@ -28,8 +29,6 @@ |
#include "webkit/fileapi/native_file_util.h" |
#include "webkit/fileapi/test_file_set.h" |
-using file_util::FileEnumerator; |
- |
namespace fileapi { |
namespace { |
@@ -365,18 +364,17 @@ TEST_F(IsolatedFileUtilTest, ReadDirectoryTest) { |
EntryMap expected_entry_map; |
base::FilePath dir_path = GetTestCasePlatformPath(test_case.path); |
- FileEnumerator file_enum( |
+ base::FileEnumerator file_enum( |
dir_path, false /* not recursive */, |
- FileEnumerator::FILES | FileEnumerator::DIRECTORIES); |
+ base::FileEnumerator::FILES | base::FileEnumerator::DIRECTORIES); |
base::FilePath current; |
while (!(current = file_enum.Next()).empty()) { |
- FileEnumerator::FindInfo file_info; |
- file_enum.GetFindInfo(&file_info); |
+ base::FileEnumerator::FileInfo file_info = file_enum.GetInfo(); |
base::FileUtilProxy::Entry entry; |
- entry.is_directory = FileEnumerator::IsDirectory(file_info); |
+ entry.is_directory = file_info.IsDirectory(); |
entry.name = current.BaseName().value(); |
- entry.size = FileEnumerator::GetFilesize(file_info); |
- entry.last_modified_time = FileEnumerator::GetLastModifiedTime(file_info); |
+ entry.size = file_info.GetSize(); |
+ entry.last_modified_time = file_info.GetLastModifiedTime(); |
expected_entry_map[entry.name] = entry; |
#if defined(OS_POSIX) |