summaryrefslogtreecommitdiffstats
path: root/webkit/fileapi/file_system_file_util_unittest.cc
diff options
context:
space:
mode:
authorericu@chromium.org <ericu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-19 22:37:16 +0000
committerericu@chromium.org <ericu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-19 22:37:16 +0000
commit0c5ebe34efad06c35892dbb3838e54e26ebfcc2e (patch)
tree6698e3a6cb024e0ed65b800129c6e53a79ae7e67 /webkit/fileapi/file_system_file_util_unittest.cc
parenta738ccd6ecebdbd7ee794e7e88a4d78804b84a7c (diff)
downloadchromium_src-0c5ebe34efad06c35892dbb3838e54e26ebfcc2e.zip
chromium_src-0c5ebe34efad06c35892dbb3838e54e26ebfcc2e.tar.gz
chromium_src-0c5ebe34efad06c35892dbb3838e54e26ebfcc2e.tar.bz2
Simplify directory path accounting.
BUG=none TEST=existing test_shell_tests plus a new OFSFU test. Review URL: http://codereview.chromium.org/7608011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97522 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/fileapi/file_system_file_util_unittest.cc')
-rw-r--r--webkit/fileapi/file_system_file_util_unittest.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/webkit/fileapi/file_system_file_util_unittest.cc b/webkit/fileapi/file_system_file_util_unittest.cc
index afa742b..459a19c 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,