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

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 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/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 9d815d54d7c78c71373ef56f68078bd6c2d8a8ab..228e01974c2d0564a2e6778de7b0068c32196df5 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::GetTemporaryStorageConfigurationFunc()),
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