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

Side by Side Diff: chrome/browser/browsing_data/browsing_data_remover_unittest.cc

Issue 492873002: Collapse fileapi, webkit_blob, webkit_database, quota, and webkit_common namespaces into single sto… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix chromeos build Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/browser/browsing_data/browsing_data_remover.h" 5 #include "chrome/browser/browsing_data/browsing_data_remover.h"
6 6
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 virtual ~TestStoragePartition() {} 137 virtual ~TestStoragePartition() {}
138 138
139 // content::StoragePartition implementation. 139 // content::StoragePartition implementation.
140 virtual base::FilePath GetPath() OVERRIDE { return base::FilePath(); } 140 virtual base::FilePath GetPath() OVERRIDE { return base::FilePath(); }
141 virtual net::URLRequestContextGetter* GetURLRequestContext() OVERRIDE { 141 virtual net::URLRequestContextGetter* GetURLRequestContext() OVERRIDE {
142 return NULL; 142 return NULL;
143 } 143 }
144 virtual net::URLRequestContextGetter* GetMediaURLRequestContext() OVERRIDE { 144 virtual net::URLRequestContextGetter* GetMediaURLRequestContext() OVERRIDE {
145 return NULL; 145 return NULL;
146 } 146 }
147 virtual quota::QuotaManager* GetQuotaManager() OVERRIDE { 147 virtual storage::QuotaManager* GetQuotaManager() OVERRIDE { return NULL; }
148 return NULL;
149 }
150 virtual content::AppCacheService* GetAppCacheService() OVERRIDE { 148 virtual content::AppCacheService* GetAppCacheService() OVERRIDE {
151 return NULL; 149 return NULL;
152 } 150 }
153 virtual fileapi::FileSystemContext* GetFileSystemContext() OVERRIDE { 151 virtual storage::FileSystemContext* GetFileSystemContext() OVERRIDE {
154 return NULL; 152 return NULL;
155 } 153 }
156 virtual webkit_database::DatabaseTracker* GetDatabaseTracker() OVERRIDE { 154 virtual storage::DatabaseTracker* GetDatabaseTracker() OVERRIDE {
157 return NULL; 155 return NULL;
158 } 156 }
159 virtual content::DOMStorageContext* GetDOMStorageContext() OVERRIDE { 157 virtual content::DOMStorageContext* GetDOMStorageContext() OVERRIDE {
160 return NULL; 158 return NULL;
161 } 159 }
162 virtual content::IndexedDBContext* GetIndexedDBContext() OVERRIDE { 160 virtual content::IndexedDBContext* GetIndexedDBContext() OVERRIDE {
163 return NULL; 161 return NULL;
164 } 162 }
165 virtual content::ServiceWorkerContext* GetServiceWorkerContext() OVERRIDE { 163 virtual content::ServiceWorkerContext* GetServiceWorkerContext() OVERRIDE {
166 return NULL; 164 return NULL;
(...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after
820 MockExtensionSpecialStoragePolicy* CreateMockPolicy() { 818 MockExtensionSpecialStoragePolicy* CreateMockPolicy() {
821 #if defined(ENABLE_EXTENSIONS) 819 #if defined(ENABLE_EXTENSIONS)
822 mock_policy_ = new MockExtensionSpecialStoragePolicy; 820 mock_policy_ = new MockExtensionSpecialStoragePolicy;
823 return mock_policy_; 821 return mock_policy_;
824 #else 822 #else
825 NOTREACHED(); 823 NOTREACHED();
826 return NULL; 824 return NULL;
827 #endif 825 #endif
828 } 826 }
829 827
830 quota::SpecialStoragePolicy* mock_policy() { 828 storage::SpecialStoragePolicy* mock_policy() {
831 #if defined(ENABLE_EXTENSIONS) 829 #if defined(ENABLE_EXTENSIONS)
832 return mock_policy_; 830 return mock_policy_;
833 #else 831 #else
834 return NULL; 832 return NULL;
835 #endif 833 #endif
836 } 834 }
837 835
838 // If |kOrigin1| is protected when extensions are enabled, the expected 836 // If |kOrigin1| is protected when extensions are enabled, the expected
839 // result for tests where the OriginMatcherFunction result is variable. 837 // result for tests where the OriginMatcherFunction result is variable.
840 bool ShouldRemoveForProtectedOriginOne() const { 838 bool ShouldRemoveForProtectedOriginOne() const {
(...skipping 991 matching lines...) Expand 10 before | Expand all | Expand 10 after
1832 EXPECT_EQ(1u, tester.clear_count()); 1830 EXPECT_EQ(1u, tester.clear_count());
1833 EXPECT_EQ(CLEAR_CONTEXTS, tester.last_clear_mode()); 1831 EXPECT_EQ(CLEAR_CONTEXTS, tester.last_clear_mode());
1834 } 1832 }
1835 1833
1836 TEST_F(BrowsingDataRemoverTest, DomainReliability_NoMonitor) { 1834 TEST_F(BrowsingDataRemoverTest, DomainReliability_NoMonitor) {
1837 BlockUntilBrowsingDataRemoved( 1835 BlockUntilBrowsingDataRemoved(
1838 BrowsingDataRemover::EVERYTHING, 1836 BrowsingDataRemover::EVERYTHING,
1839 BrowsingDataRemover::REMOVE_HISTORY | 1837 BrowsingDataRemover::REMOVE_HISTORY |
1840 BrowsingDataRemover::REMOVE_COOKIES, false); 1838 BrowsingDataRemover::REMOVE_COOKIES, false);
1841 } 1839 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698