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

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

Issue 393133002: Migrate HostZoomMap to live in StoragePartition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments. 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 <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 virtual content::DOMStorageContext* GetDOMStorageContext() OVERRIDE { 158 virtual content::DOMStorageContext* GetDOMStorageContext() OVERRIDE {
159 return NULL; 159 return NULL;
160 } 160 }
161 virtual content::IndexedDBContext* GetIndexedDBContext() OVERRIDE { 161 virtual content::IndexedDBContext* GetIndexedDBContext() OVERRIDE {
162 return NULL; 162 return NULL;
163 } 163 }
164 virtual content::ServiceWorkerContext* GetServiceWorkerContext() OVERRIDE { 164 virtual content::ServiceWorkerContext* GetServiceWorkerContext() OVERRIDE {
165 return NULL; 165 return NULL;
166 } 166 }
167 167
168 virtual content::HostZoomMap* GetHostZoomMap() OVERRIDE {
169 return NULL;
170 }
171
172 virtual PrefService* GetZoomLevelPrefs() OVERRIDE {
173 return NULL;
174 }
175
168 virtual void ClearDataForOrigin(uint32 remove_mask, 176 virtual void ClearDataForOrigin(uint32 remove_mask,
169 uint32 quota_storage_remove_mask, 177 uint32 quota_storage_remove_mask,
170 const GURL& storage_origin, 178 const GURL& storage_origin,
171 net::URLRequestContextGetter* rq_context, 179 net::URLRequestContextGetter* rq_context,
172 const base::Closure& callback) OVERRIDE { 180 const base::Closure& callback) OVERRIDE {
173 BrowserThread::PostTask(BrowserThread::UI, 181 BrowserThread::PostTask(BrowserThread::UI,
174 FROM_HERE, 182 FROM_HERE,
175 base::Bind(&TestStoragePartition::AsyncRunCallback, 183 base::Bind(&TestStoragePartition::AsyncRunCallback,
176 base::Unretained(this), 184 base::Unretained(this),
177 callback)); 185 callback));
178 } 186 }
179
180 virtual void ClearData(uint32 remove_mask, 187 virtual void ClearData(uint32 remove_mask,
181 uint32 quota_storage_remove_mask, 188 uint32 quota_storage_remove_mask,
182 const GURL& storage_origin, 189 const GURL& storage_origin,
183 const OriginMatcherFunction& origin_matcher, 190 const OriginMatcherFunction& origin_matcher,
184 const base::Time begin, 191 const base::Time begin,
185 const base::Time end, 192 const base::Time end,
186 const base::Closure& callback) OVERRIDE { 193 const base::Closure& callback) OVERRIDE {
187 // Store stuff to verify parameters' correctness later. 194 // Store stuff to verify parameters' correctness later.
188 storage_partition_removal_data_.remove_mask = remove_mask; 195 storage_partition_removal_data_.remove_mask = remove_mask;
189 storage_partition_removal_data_.quota_storage_remove_mask = 196 storage_partition_removal_data_.quota_storage_remove_mask =
(...skipping 1641 matching lines...) Expand 10 before | Expand all | Expand 10 after
1831 EXPECT_EQ(1u, tester.clear_count()); 1838 EXPECT_EQ(1u, tester.clear_count());
1832 EXPECT_EQ(CLEAR_CONTEXTS, tester.last_clear_mode()); 1839 EXPECT_EQ(CLEAR_CONTEXTS, tester.last_clear_mode());
1833 } 1840 }
1834 1841
1835 TEST_F(BrowsingDataRemoverTest, DomainReliability_NoMonitor) { 1842 TEST_F(BrowsingDataRemoverTest, DomainReliability_NoMonitor) {
1836 BlockUntilBrowsingDataRemoved( 1843 BlockUntilBrowsingDataRemoved(
1837 BrowsingDataRemover::EVERYTHING, 1844 BrowsingDataRemover::EVERYTHING,
1838 BrowsingDataRemover::REMOVE_HISTORY | 1845 BrowsingDataRemover::REMOVE_HISTORY |
1839 BrowsingDataRemover::REMOVE_COOKIES, false); 1846 BrowsingDataRemover::REMOVE_COOKIES, false);
1840 } 1847 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/profiles/host_zoom_map_browsertest.cc » ('j') | chrome/browser/profiles/profile.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698