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

Unified Diff: webkit/fileapi/file_system_file_util_unittest.cc

Issue 7608011: Simplify directory path accounting. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rolled in CR feedback. Created 9 years, 4 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_file_util.cc ('k') | webkit/fileapi/file_system_operation_context.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/fileapi/file_system_file_util_unittest.cc
diff --git a/webkit/fileapi/file_system_file_util_unittest.cc b/webkit/fileapi/file_system_file_util_unittest.cc
index afa742bfb9305a82f86cd3a02f074d0adc360b9f..459a19c489e6e7f4e31e49eee1b917cb1e3c75d1 100644
--- a/webkit/fileapi/file_system_file_util_unittest.cc
+++ b/webkit/fileapi/file_system_file_util_unittest.cc
@@ -64,6 +64,10 @@ class FileSystemFileUtilTest : public testing::Test {
FileSystemOperationContext* NewContext(FileSystemTestOriginHelper* helper) {
FileSystemOperationContext* context = helper->NewOperationContext();
+ // We need to allocate quota for paths for
+ // TestCrossFileSystemCopyMoveHelper, since it calls into OFSFU, which
+ // charges quota for paths.
+ context->set_allowed_bytes_growth(1024 * 1024);
return context;
}
@@ -117,6 +121,7 @@ class FileSystemFileUtilTest : public testing::Test {
copy_context->set_dest_origin_url(dest_helper.origin());
copy_context->set_src_type(src_helper.type());
copy_context->set_dest_type(dest_helper.type());
+ copy_context->set_allowed_bytes_growth(1024 * 1024); // OFSFU path quota.
if (copy)
ASSERT_EQ(base::PLATFORM_FILE_OK,
« no previous file with comments | « webkit/fileapi/file_system_file_util.cc ('k') | webkit/fileapi/file_system_operation_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698