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

Unified Diff: webkit/fileapi/file_system_database_test_helper.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/dom_storage/dom_storage_context.cc ('k') | webkit/fileapi/file_system_directory_database.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/fileapi/file_system_database_test_helper.cc
diff --git a/webkit/fileapi/file_system_database_test_helper.cc b/webkit/fileapi/file_system_database_test_helper.cc
index a8da1a757f63ad49a5d8315d0492ef1aaea0b985..2c711f5eab654ffbe89ce29fec74a835dc07549b 100644
--- a/webkit/fileapi/file_system_database_test_helper.cc
+++ b/webkit/fileapi/file_system_database_test_helper.cc
@@ -9,6 +9,7 @@
#include <vector>
#include "base/file_util.h"
+#include "base/files/file_enumerator.h"
#include "base/stl_util.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "webkit/fileapi/file_system_util.h"
@@ -19,9 +20,8 @@ void CorruptDatabase(const base::FilePath& db_path,
leveldb::FileType type,
ptrdiff_t offset,
size_t size) {
- file_util::FileEnumerator file_enum(db_path, false /* not recursive */,
- file_util::FileEnumerator::DIRECTORIES |
- file_util::FileEnumerator::FILES);
+ base::FileEnumerator file_enum(db_path, false /* not recursive */,
+ base::FileEnumerator::DIRECTORIES | base::FileEnumerator::FILES);
base::FilePath file_path;
base::FilePath picked_file_path;
uint64 picked_file_number = kuint64max;
@@ -81,9 +81,8 @@ void CorruptDatabase(const base::FilePath& db_path,
void DeleteDatabaseFile(const base::FilePath& db_path,
leveldb::FileType type) {
- file_util::FileEnumerator file_enum(db_path, false /* not recursive */,
- file_util::FileEnumerator::DIRECTORIES |
- file_util::FileEnumerator::FILES);
+ base::FileEnumerator file_enum(db_path, false /* not recursive */,
+ base::FileEnumerator::DIRECTORIES | base::FileEnumerator::FILES);
base::FilePath file_path;
while (!(file_path = file_enum.Next()).empty()) {
uint64 number = kuint64max;
« no previous file with comments | « webkit/dom_storage/dom_storage_context.cc ('k') | webkit/fileapi/file_system_directory_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698