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

Unified Diff: content/public/test/mock_special_storage_policy.h

Issue 1229933007: Make quota logic obey durable storage permission (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@3_top_durable
Patch Set: fix extensions_browsertests compile Created 5 years, 5 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/public/test/mock_special_storage_policy.h
diff --git a/content/public/test/mock_special_storage_policy.h b/content/public/test/mock_special_storage_policy.h
index 1220f6543e4359c8ff8d9f2c7305fa0a56faf3b7..96003e8c12f8517c457927e9a288645d3e918738 100644
--- a/content/public/test/mock_special_storage_policy.h
+++ b/content/public/test/mock_special_storage_policy.h
@@ -25,6 +25,7 @@ class MockSpecialStoragePolicy : public storage::SpecialStoragePolicy {
bool CanQueryDiskSize(const GURL& origin) override;
bool HasIsolatedStorage(const GURL& origin) override;
bool HasSessionOnlyOrigins() override;
+ bool IsStorageDurable(const GURL& origin) override;
void AddProtected(const GURL& origin) {
protected_.insert(origin);
@@ -58,6 +59,10 @@ class MockSpecialStoragePolicy : public storage::SpecialStoragePolicy {
all_unlimited_ = all_unlimited;
}
+ void AddDurable(const GURL& origin) {
+ durable_.insert(origin);
+ }
+
void Reset() {
protected_.clear();
unlimited_.clear();
@@ -89,6 +94,7 @@ class MockSpecialStoragePolicy : public storage::SpecialStoragePolicy {
std::set<GURL> session_only_;
std::set<GURL> can_query_disk_size_;
std::set<GURL> isolated_;
+ std::set<GURL> durable_;
std::set<std::string> file_handlers_;
bool all_unlimited_;
« no previous file with comments | « content/browser/quota/quota_database_unittest.cc ('k') | content/public/test/mock_special_storage_policy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698