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

Unified Diff: webkit/quota/mock_special_storage_policy.cc

Issue 7633016: Test cleanup: Using MockSpecialStoragePolicy instead of local subclasses of SpecialStoragePolicy. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Keeping up to date with trunk. Created 9 years, 4 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
« no previous file with comments | « webkit/quota/mock_special_storage_policy.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/quota/mock_special_storage_policy.cc
diff --git a/webkit/quota/mock_special_storage_policy.cc b/webkit/quota/mock_special_storage_policy.cc
index 0de3dd0630818fe62f298c207c207f6a9361bb7a..8b750730c049881db67aa5fc5f9fe1862f77b561 100644
--- a/webkit/quota/mock_special_storage_policy.cc
+++ b/webkit/quota/mock_special_storage_policy.cc
@@ -6,7 +6,9 @@
namespace quota {
-MockSpecialStoragePolicy::MockSpecialStoragePolicy() {}
+MockSpecialStoragePolicy::MockSpecialStoragePolicy()
+ : all_unlimited_(false) {}
+
MockSpecialStoragePolicy::~MockSpecialStoragePolicy() {}
bool MockSpecialStoragePolicy::IsStorageProtected(const GURL& origin) {
@@ -14,6 +16,8 @@ bool MockSpecialStoragePolicy::IsStorageProtected(const GURL& origin) {
}
bool MockSpecialStoragePolicy::IsStorageUnlimited(const GURL& origin) {
+ if (all_unlimited_)
+ return true;
return unlimited_.find(origin) != unlimited_.end();
}
« no previous file with comments | « webkit/quota/mock_special_storage_policy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698