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

Unified Diff: content/browser/quota/storage_monitor_unittest.cc

Issue 2592793002: Revert of Change how the quota system computes the total poolsize for temporary storage (Closed)
Patch Set: Created 4 years 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/quota/storage_monitor_unittest.cc
diff --git a/content/browser/quota/storage_monitor_unittest.cc b/content/browser/quota/storage_monitor_unittest.cc
index 12512cf2bd644ed474ccd5c6a1fa61b79e31d4ff..7cbeb9140ee282a0040c544ad2f01b833b833845 100644
--- a/content/browser/quota/storage_monitor_unittest.cc
+++ b/content/browser/quota/storage_monitor_unittest.cc
@@ -68,8 +68,7 @@ class UsageMockQuotaManager : public QuotaManager {
base::FilePath(),
base::ThreadTaskRunnerHandle::Get().get(),
base::ThreadTaskRunnerHandle::Get().get(),
- special_storage_policy,
- storage::GetQuotaSettingsFunc()),
+ special_storage_policy),
callback_usage_(0),
callback_quota_(0),
callback_status_(kQuotaStatusOk),
@@ -89,7 +88,7 @@ class UsageMockQuotaManager : public QuotaManager {
void GetUsageAndQuotaForWebApps(
const GURL& origin,
StorageType type,
- const UsageAndQuotaCallback& callback) override {
+ const GetUsageAndQuotaCallback& callback) override {
if (initialized_)
callback.Run(callback_status_, callback_usage_, callback_quota_);
else
@@ -104,7 +103,7 @@ class UsageMockQuotaManager : public QuotaManager {
int64_t callback_quota_;
QuotaStatusCode callback_status_;
bool initialized_;
- UsageAndQuotaCallback delayed_callback_;
+ GetUsageAndQuotaCallback delayed_callback_;
};
} // namespace
@@ -650,8 +649,7 @@ class StorageMonitorIntegrationTest : public testing::Test {
storage_policy_ = new MockSpecialStoragePolicy();
quota_manager_ = new QuotaManager(
false, data_dir_.GetPath(), base::ThreadTaskRunnerHandle::Get().get(),
- base::ThreadTaskRunnerHandle::Get().get(), storage_policy_.get(),
- storage::GetQuotaSettingsFunc());
+ base::ThreadTaskRunnerHandle::Get().get(), storage_policy_.get());
client_ = new MockStorageClient(quota_manager_->proxy(),
NULL,
« no previous file with comments | « content/browser/quota/quota_temporary_storage_evictor_unittest.cc ('k') | content/browser/storage_partition_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698