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

Unified Diff: content/browser/appcache/appcache_storage_impl_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 3 years, 10 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/appcache/appcache_storage_impl_unittest.cc
diff --git a/content/browser/appcache/appcache_storage_impl_unittest.cc b/content/browser/appcache/appcache_storage_impl_unittest.cc
index b754546fd7228d0b7a043939d8bb3e3d452af082..d1ed641172ca88cc71df4405aebffc6dacdcb0cc 100644
--- a/content/browser/appcache/appcache_storage_impl_unittest.cc
+++ b/content/browser/appcache/appcache_storage_impl_unittest.cc
@@ -277,12 +277,13 @@ class AppCacheStorageImplTest : public testing::Test {
base::FilePath(),
io_thread->task_runner().get(),
db_thread->task_runner().get(),
- NULL),
+ nullptr,
+ storage::GetQuotaSettingsFunc()),
async_(false) {}
void GetUsageAndQuota(const GURL& origin,
storage::StorageType type,
- const GetUsageAndQuotaCallback& callback) override {
+ const UsageAndQuotaCallback& callback) override {
EXPECT_EQ(storage::kStorageTypeTemporary, type);
if (async_) {
base::ThreadTaskRunnerHandle::Get()->PostTask(
@@ -293,7 +294,7 @@ class AppCacheStorageImplTest : public testing::Test {
CallCallback(callback);
}
- void CallCallback(const GetUsageAndQuotaCallback& callback) {
+ void CallCallback(const UsageAndQuotaCallback& callback) {
callback.Run(storage::kQuotaStatusOk, 0, kMockQuota);
}
@@ -345,7 +346,7 @@ class AppCacheStorageImplTest : public testing::Test {
void GetUsageAndQuota(base::SequencedTaskRunner* original_task_runner,
const GURL& origin,
storage::StorageType type,
- const GetUsageAndQuotaCallback& callback) override {}
+ const UsageAndQuotaCallback& callback) override {}
int notify_storage_accessed_count_;
int notify_storage_modified_count_;

Powered by Google App Engine
This is Rietveld 408576698