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

Unified Diff: content/browser/fileapi/obfuscated_file_util_unittest.cc

Issue 1782053004: Change how the quota system computes the total poolsize for temporary storage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments Created 4 years, 1 month 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
Index: content/browser/fileapi/obfuscated_file_util_unittest.cc
diff --git a/content/browser/fileapi/obfuscated_file_util_unittest.cc b/content/browser/fileapi/obfuscated_file_util_unittest.cc
index 6afd9a78356f138d36e4c5600ba9d215e984534c..c7d79f776ef3cf93a509dd892daee65f4fad0599 100644
--- a/content/browser/fileapi/obfuscated_file_util_unittest.cc
+++ b/content/browser/fileapi/obfuscated_file_util_unittest.cc
@@ -167,7 +167,14 @@ class ObfuscatedFileUtilTest : public testing::Test {
quota_manager_ = new storage::QuotaManager(
false /* is_incognito */, data_dir_.GetPath(),
base::ThreadTaskRunnerHandle::Get().get(),
- base::ThreadTaskRunnerHandle::Get().get(), storage_policy_.get());
+ base::ThreadTaskRunnerHandle::Get().get(), storage_policy_.get(),
+ storage::GetQuotaSettingsFunc());
+ storage::QuotaSettings settings;
+ settings.per_host_quota = 25 * 1024 * 1024;
+ settings.pool_size = settings.per_host_quota * 5;
+ settings.must_remain_available = 10 * 1024 * 1024;
+ settings.refresh_interval = base::TimeDelta::Max();
+ quota_manager_->SetQuotaSettings(settings);
// Every time we create a new sandbox_file_system helper,
// it creates another context, which creates another path manager,

Powered by Google App Engine
This is Rietveld 408576698