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

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

Issue 645763003: Refactor GeofencingManager to have one instance per StoragePartition. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: have reference to service worker context in geofencing manager Created 6 years, 2 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
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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 } 155 }
156 virtual content::DOMStorageContext* GetDOMStorageContext() override { 156 virtual content::DOMStorageContext* GetDOMStorageContext() override {
157 return NULL; 157 return NULL;
158 } 158 }
159 virtual content::IndexedDBContext* GetIndexedDBContext() override { 159 virtual content::IndexedDBContext* GetIndexedDBContext() override {
160 return NULL; 160 return NULL;
161 } 161 }
162 virtual content::ServiceWorkerContext* GetServiceWorkerContext() override { 162 virtual content::ServiceWorkerContext* GetServiceWorkerContext() override {
163 return NULL; 163 return NULL;
164 } 164 }
165 virtual content::GeofencingManager* GetGeofencingManager() override {
166 return NULL;
167 }
165 168
166 virtual void ClearDataForOrigin(uint32 remove_mask, 169 virtual void ClearDataForOrigin(uint32 remove_mask,
167 uint32 quota_storage_remove_mask, 170 uint32 quota_storage_remove_mask,
168 const GURL& storage_origin, 171 const GURL& storage_origin,
169 net::URLRequestContextGetter* rq_context, 172 net::URLRequestContextGetter* rq_context,
170 const base::Closure& callback) override { 173 const base::Closure& callback) override {
171 BrowserThread::PostTask(BrowserThread::UI, 174 BrowserThread::PostTask(BrowserThread::UI,
172 FROM_HERE, 175 FROM_HERE,
173 base::Bind(&TestStoragePartition::AsyncRunCallback, 176 base::Bind(&TestStoragePartition::AsyncRunCallback,
174 base::Unretained(this), 177 base::Unretained(this),
(...skipping 1654 matching lines...) Expand 10 before | Expand all | Expand 10 after
1829 EXPECT_EQ(1u, tester.clear_count()); 1832 EXPECT_EQ(1u, tester.clear_count());
1830 EXPECT_EQ(CLEAR_CONTEXTS, tester.last_clear_mode()); 1833 EXPECT_EQ(CLEAR_CONTEXTS, tester.last_clear_mode());
1831 } 1834 }
1832 1835
1833 TEST_F(BrowsingDataRemoverTest, DomainReliability_NoMonitor) { 1836 TEST_F(BrowsingDataRemoverTest, DomainReliability_NoMonitor) {
1834 BlockUntilBrowsingDataRemoved( 1837 BlockUntilBrowsingDataRemoved(
1835 BrowsingDataRemover::EVERYTHING, 1838 BrowsingDataRemover::EVERYTHING,
1836 BrowsingDataRemover::REMOVE_HISTORY | 1839 BrowsingDataRemover::REMOVE_HISTORY |
1837 BrowsingDataRemover::REMOVE_COOKIES, false); 1840 BrowsingDataRemover::REMOVE_COOKIES, false);
1838 } 1841 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698