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

Unified Diff: webkit/fileapi/isolated_file_util_unittest.cc

Issue 13165005: Move FileEnumerator to its own file, do some refactoring. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge, fixes Created 7 years, 7 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/fileapi/file_system_origin_database.cc ('k') | webkit/fileapi/local_file_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « webkit/fileapi/file_system_origin_database.cc ('k') | webkit/fileapi/local_file_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698