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

Side by Side Diff: content/public/test/mock_special_storage_policy.cc

Issue 259083002: Move mock_special_storage_policy from webkit/ to content/public/test/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "webkit/browser/quota/mock_special_storage_policy.h" 5 #include "content/public/test/mock_special_storage_policy.h"
6 6
7 #include "base/stl_util.h" 7 #include "base/stl_util.h"
8 8
9 namespace quota { 9 namespace content {
10 10
11 MockSpecialStoragePolicy::MockSpecialStoragePolicy() 11 MockSpecialStoragePolicy::MockSpecialStoragePolicy()
12 : all_unlimited_(false) { 12 : all_unlimited_(false) {
13 } 13 }
14 14
15 bool MockSpecialStoragePolicy::IsStorageProtected(const GURL& origin) { 15 bool MockSpecialStoragePolicy::IsStorageProtected(const GURL& origin) {
16 return ContainsKey(protected_, origin); 16 return ContainsKey(protected_, origin);
17 } 17 }
18 18
19 bool MockSpecialStoragePolicy::IsStorageUnlimited(const GURL& origin) { 19 bool MockSpecialStoragePolicy::IsStorageUnlimited(const GURL& origin) {
(...skipping 17 matching lines...) Expand all
37 bool MockSpecialStoragePolicy::HasIsolatedStorage(const GURL& origin) { 37 bool MockSpecialStoragePolicy::HasIsolatedStorage(const GURL& origin) {
38 return ContainsKey(isolated_, origin); 38 return ContainsKey(isolated_, origin);
39 } 39 }
40 40
41 bool MockSpecialStoragePolicy::HasSessionOnlyOrigins() { 41 bool MockSpecialStoragePolicy::HasSessionOnlyOrigins() {
42 return !session_only_.empty(); 42 return !session_only_.empty();
43 } 43 }
44 44
45 MockSpecialStoragePolicy::~MockSpecialStoragePolicy() {} 45 MockSpecialStoragePolicy::~MockSpecialStoragePolicy() {}
46 46
47 } // namespace quota 47 } // namespace content
OLDNEW
« 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