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

Unified Diff: storage/browser/test/mock_special_storage_policy.h

Issue 2815743002: Move a couple of blob tests next to the files they cover. (Closed)
Patch Set: Fix gn check, take 2. Created 3 years, 8 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 | « storage/browser/test/async_file_test_helper.cc ('k') | storage/browser/test/mock_special_storage_policy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: storage/browser/test/mock_special_storage_policy.h
diff --git a/content/public/test/mock_special_storage_policy.h b/storage/browser/test/mock_special_storage_policy.h
similarity index 63%
rename from content/public/test/mock_special_storage_policy.h
rename to storage/browser/test/mock_special_storage_policy.h
index b4a2a6c1829fb411f50c6b2e0e88c010144a45b9..64528b6577ec65b06c05cb136df8937ffc453974 100644
--- a/content/public/test/mock_special_storage_policy.h
+++ b/storage/browser/test/mock_special_storage_policy.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CONTENT_PUBLIC_TEST_MOCK_SPECIAL_STORAGE_POLICY_H_
-#define CONTENT_PUBLIC_TEST_MOCK_SPECIAL_STORAGE_POLICY_H_
+#ifndef STORAGE_BROWSER_TEST_MOCK_SPECIAL_STORAGE_POLICY_H_
+#define STORAGE_BROWSER_TEST_MOCK_SPECIAL_STORAGE_POLICY_H_
#include <set>
#include <string>
@@ -26,37 +26,21 @@ class MockSpecialStoragePolicy : public storage::SpecialStoragePolicy {
bool HasSessionOnlyOrigins() override;
bool IsStorageDurable(const GURL& origin) override;
- void AddProtected(const GURL& origin) {
- protected_.insert(origin);
- }
+ void AddProtected(const GURL& origin) { protected_.insert(origin); }
- void AddUnlimited(const GURL& origin) {
- unlimited_.insert(origin);
- }
+ void AddUnlimited(const GURL& origin) { unlimited_.insert(origin); }
- void RemoveUnlimited(const GURL& origin) {
- unlimited_.erase(origin);
- }
+ void RemoveUnlimited(const GURL& origin) { unlimited_.erase(origin); }
- void AddSessionOnly(const GURL& origin) {
- session_only_.insert(origin);
- }
+ void AddSessionOnly(const GURL& origin) { session_only_.insert(origin); }
- void AddIsolated(const GURL& origin) {
- isolated_.insert(origin);
- }
+ void AddIsolated(const GURL& origin) { isolated_.insert(origin); }
- void RemoveIsolated(const GURL& origin) {
- isolated_.erase(origin);
- }
+ void RemoveIsolated(const GURL& origin) { isolated_.erase(origin); }
- void SetAllUnlimited(bool all_unlimited) {
- all_unlimited_ = all_unlimited;
- }
+ void SetAllUnlimited(bool all_unlimited) { all_unlimited_ = all_unlimited; }
- void AddDurable(const GURL& origin) {
- durable_.insert(origin);
- }
+ void AddDurable(const GURL& origin) { durable_.insert(origin); }
void Reset() {
protected_.clear();
@@ -75,9 +59,7 @@ class MockSpecialStoragePolicy : public storage::SpecialStoragePolicy {
SpecialStoragePolicy::NotifyRevoked(origin, change_flags);
}
- void NotifyCleared() {
- SpecialStoragePolicy::NotifyCleared();
- }
+ void NotifyCleared() { SpecialStoragePolicy::NotifyCleared(); }
protected:
~MockSpecialStoragePolicy() override;
@@ -94,4 +76,4 @@ class MockSpecialStoragePolicy : public storage::SpecialStoragePolicy {
};
} // namespace content
-#endif // CONTENT_PUBLIC_TEST_MOCK_SPECIAL_STORAGE_POLICY_H_
+#endif // STORAGE_BROWSER_TEST_MOCK_SPECIAL_STORAGE_POLICY_H_
« no previous file with comments | « storage/browser/test/async_file_test_helper.cc ('k') | storage/browser/test/mock_special_storage_policy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698