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

Unified Diff: content/browser/storage_partition_impl_unittest.cc

Issue 385443002: Fixes for re-enabling more MSVC level 4 warnings: misc edition #1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Restore missing code Created 6 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
« no previous file with comments | « content/browser/storage_partition_impl_map.cc ('k') | content/public/browser/storage_partition.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/storage_partition_impl_unittest.cc
diff --git a/content/browser/storage_partition_impl_unittest.cc b/content/browser/storage_partition_impl_unittest.cc
index 5fbdfbbab8877f7d7d5efba0e3f44aae73cc5931..8d5d45cfa2090c3c803082055dc342dd3108baec 100644
--- a/content/browser/storage_partition_impl_unittest.cc
+++ b/content/browser/storage_partition_impl_unittest.cc
@@ -55,10 +55,10 @@ const quota::StorageType kPersistent = quota::kStorageTypePersistent;
const quota::QuotaClient::ID kClientFile = quota::QuotaClient::kFileSystem;
const uint32 kAllQuotaRemoveMask =
- StoragePartition::REMOVE_DATA_MASK_INDEXEDDB |
- StoragePartition::REMOVE_DATA_MASK_WEBSQL |
+ StoragePartition::REMOVE_DATA_MASK_APPCACHE |
StoragePartition::REMOVE_DATA_MASK_FILE_SYSTEMS |
- StoragePartition::REMOVE_DATA_MASK_APPCACHE;
+ StoragePartition::REMOVE_DATA_MASK_INDEXEDDB |
+ StoragePartition::REMOVE_DATA_MASK_WEBSQL;
Peter Kasting 2014/07/09 21:33:23 This change is just to keep the order the same as
class AwaitCompletionHelper {
public:
@@ -246,11 +246,10 @@ bool DoesOriginMatchUnprotected(
void ClearQuotaData(content::StoragePartition* partition,
base::RunLoop* loop_to_quit) {
- partition->ClearData(
- kAllQuotaRemoveMask,
- StoragePartition::QUOTA_MANAGED_STORAGE_MASK_ALL,
- GURL(), StoragePartition::OriginMatcherFunction(),
- base::Time(), base::Time::Max(), loop_to_quit->QuitClosure());
+ partition->ClearData(kAllQuotaRemoveMask,
+ StoragePartition::QUOTA_MANAGED_STORAGE_MASK_ALL, GURL(),
+ StoragePartition::OriginMatcherFunction(), base::Time(),
+ base::Time::Max(), loop_to_quit->QuitClosure());
}
void ClearQuotaDataWithOriginMatcher(
@@ -259,9 +258,9 @@ void ClearQuotaDataWithOriginMatcher(
const StoragePartition::OriginMatcherFunction& origin_matcher,
const base::Time delete_begin,
base::RunLoop* loop_to_quit) {
- partition->ClearData(kAllQuotaRemoveMask,
- StoragePartition::QUOTA_MANAGED_STORAGE_MASK_ALL,
- remove_origin, origin_matcher, delete_begin,
+ partition->ClearData(kAllQuotaRemoveMask,
+ StoragePartition::QUOTA_MANAGED_STORAGE_MASK_ALL,
+ remove_origin, origin_matcher, delete_begin,
base::Time::Max(), loop_to_quit->QuitClosure());
}
@@ -280,13 +279,11 @@ void ClearQuotaDataForNonPersistent(
content::StoragePartition* partition,
const base::Time delete_begin,
base::RunLoop* loop_to_quit) {
- uint32 quota_storage_remove_mask_no_persistent =
- StoragePartition::QUOTA_MANAGED_STORAGE_MASK_ALL &
- ~StoragePartition::QUOTA_MANAGED_STORAGE_MASK_PERSISTENT;
partition->ClearData(
- kAllQuotaRemoveMask, quota_storage_remove_mask_no_persistent,
- GURL(), StoragePartition::OriginMatcherFunction(),
- delete_begin, base::Time::Max(), loop_to_quit->QuitClosure());
+ kAllQuotaRemoveMask,
+ ~StoragePartition::QUOTA_MANAGED_STORAGE_MASK_PERSISTENT,
+ GURL(), StoragePartition::OriginMatcherFunction(), delete_begin,
+ base::Time::Max(), loop_to_quit->QuitClosure());
}
void ClearCookies(content::StoragePartition* partition,
@@ -432,11 +429,7 @@ TEST_F(StoragePartitionImplTest, QuotaClientMaskGeneration) {
quota::QuotaClient::kDatabase |
quota::QuotaClient::kAppcache |
quota::QuotaClient::kIndexedDatabase,
- StoragePartitionImpl::GenerateQuotaClientMask(
- StoragePartition::REMOVE_DATA_MASK_FILE_SYSTEMS |
- StoragePartition::REMOVE_DATA_MASK_WEBSQL |
- StoragePartition::REMOVE_DATA_MASK_APPCACHE |
- StoragePartition::REMOVE_DATA_MASK_INDEXEDDB));
+ StoragePartitionImpl::GenerateQuotaClientMask(kAllQuotaRemoveMask));
}
void PopulateTestQuotaManagedPersistentData(MockQuotaManager* manager) {
« no previous file with comments | « content/browser/storage_partition_impl_map.cc ('k') | content/public/browser/storage_partition.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698