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

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: rebase Created 4 years, 2 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
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..55262ba9f81497f90958272c53cf0e2c0edc0e3a 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::GetTemporaryStorageConfigurationFunc());
+ storage::TemporaryStorageConfiguration config;
+ config.per_host_quota = 25 * 1024 * 1024;
+ config.pool_size = config.per_host_quota * 5;
+ config.must_remain_available = 10 * 1024 * 1024;
+ config.refresh_interval = base::TimeDelta::Max();
+ quota_manager_->SetTemporaryStorageConfiguration(config);
// 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