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

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

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
Index: content/public/test/mock_special_storage_policy.cc
diff --git a/content/public/test/mock_special_storage_policy.cc b/content/public/test/mock_special_storage_policy.cc
deleted file mode 100644
index 0226b98e030ce1b1287dd87fcc21e319adf7d674..0000000000000000000000000000000000000000
--- a/content/public/test/mock_special_storage_policy.cc
+++ /dev/null
@@ -1,43 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "content/public/test/mock_special_storage_policy.h"
-
-#include "base/stl_util.h"
-
-namespace content {
-
-MockSpecialStoragePolicy::MockSpecialStoragePolicy()
- : all_unlimited_(false) {
-}
-
-bool MockSpecialStoragePolicy::IsStorageProtected(const GURL& origin) {
- return base::ContainsKey(protected_, origin);
-}
-
-bool MockSpecialStoragePolicy::IsStorageUnlimited(const GURL& origin) {
- if (all_unlimited_)
- return true;
- return base::ContainsKey(unlimited_, origin);
-}
-
-bool MockSpecialStoragePolicy::IsStorageSessionOnly(const GURL& origin) {
- return base::ContainsKey(session_only_, origin);
-}
-
-bool MockSpecialStoragePolicy::HasIsolatedStorage(const GURL& origin) {
- return base::ContainsKey(isolated_, origin);
-}
-
-bool MockSpecialStoragePolicy::HasSessionOnlyOrigins() {
- return !session_only_.empty();
-}
-
-bool MockSpecialStoragePolicy::IsStorageDurable(const GURL& origin) {
- return base::ContainsKey(durable_, origin);
-}
-
-MockSpecialStoragePolicy::~MockSpecialStoragePolicy() {}
-
-} // namespace content
« no previous file with comments | « content/public/test/mock_special_storage_policy.h ('k') | content/public/test/sandbox_file_system_test_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698