From 24f9b638ae0144d405954af652bdf1fbfeb6ce71 Mon Sep 17 00:00:00 2001 From: "dmikurube@chromium.org" Date: Tue, 14 Jun 2011 08:11:12 +0000 Subject: Integrated test with the actual QuotaManager and PathManager. BUG=86016 TEST=FileSystemQuotaTest.* Review URL: http://codereview.chromium.org/6905095 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@88965 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/fileapi/file_system_test_helper.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'webkit/fileapi/file_system_test_helper.cc') diff --git a/webkit/fileapi/file_system_test_helper.cc b/webkit/fileapi/file_system_test_helper.cc index c51fe7f..b7813fa 100644 --- a/webkit/fileapi/file_system_test_helper.cc +++ b/webkit/fileapi/file_system_test_helper.cc @@ -125,6 +125,8 @@ void FileSystemTestOriginHelper::SetUp( // how much the size of the origin directory has grown. initial_usage_size_ = file_util::ComputeDirectorySize( GetOriginRootPath()); + + FileSystemUsageCache::UpdateUsage(usage_cache_path, initial_usage_size_); } void FileSystemTestOriginHelper::TearDown() { @@ -162,7 +164,8 @@ FilePath FileSystemTestOriginHelper::GetUsageCachePath() const { } int64 FileSystemTestOriginHelper::GetCachedOriginUsage() const { - return FileSystemUsageCache::GetUsage(GetUsageCachePath()); + return FileSystemUsageCache::GetUsage(GetUsageCachePath()) - + initial_usage_size_; } int64 FileSystemTestOriginHelper::ComputeCurrentOriginUsage() const { -- cgit v1.1