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

Unified Diff: webkit/fileapi/file_system_test_helper.cc

Issue 6905095: Integrated test with the actual QuotaManager and PathManager. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Reflected the comments. Created 9 years, 6 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_quota_unittest.cc ('k') | webkit/tools/test_shell/test_shell.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: 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 c51fe7f9607e3f05f1934e59d46891da54657a49..b7813fae530275694dbdee49999acde2492b7167 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 {
« no previous file with comments | « webkit/fileapi/file_system_quota_unittest.cc ('k') | webkit/tools/test_shell/test_shell.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698