summaryrefslogtreecommitdiffstats
path: root/webkit/fileapi/file_system_test_helper.cc
diff options
context:
space:
mode:
authordmikurube@chromium.org <dmikurube@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-14 08:11:12 +0000
committerdmikurube@chromium.org <dmikurube@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-14 08:11:12 +0000
commit24f9b638ae0144d405954af652bdf1fbfeb6ce71 (patch)
treeb313de1ef662c9a39d55e7d001f92565a10e574a /webkit/fileapi/file_system_test_helper.cc
parent0e62d292568ba8ba5a58233a3dc1b06cb7c2ed7d (diff)
downloadchromium_src-24f9b638ae0144d405954af652bdf1fbfeb6ce71.zip
chromium_src-24f9b638ae0144d405954af652bdf1fbfeb6ce71.tar.gz
chromium_src-24f9b638ae0144d405954af652bdf1fbfeb6ce71.tar.bz2
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
Diffstat (limited to 'webkit/fileapi/file_system_test_helper.cc')
-rw-r--r--webkit/fileapi/file_system_test_helper.cc5
1 files changed, 4 insertions, 1 deletions
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 {