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

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: address comments 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
« no previous file with comments | « no previous file | content/browser/geofencing/geofencing_dispatcher_host.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 } 143 }
144 storage::QuotaManager* GetQuotaManager() override { return NULL; } 144 storage::QuotaManager* GetQuotaManager() override { return NULL; }
145 content::AppCacheService* GetAppCacheService() override { return NULL; } 145 content::AppCacheService* GetAppCacheService() override { return NULL; }
146 storage::FileSystemContext* GetFileSystemContext() override { return NULL; } 146 storage::FileSystemContext* GetFileSystemContext() override { return NULL; }
147 storage::DatabaseTracker* GetDatabaseTracker() override { return NULL; } 147 storage::DatabaseTracker* GetDatabaseTracker() override { return NULL; }
148 content::DOMStorageContext* GetDOMStorageContext() override { return NULL; } 148 content::DOMStorageContext* GetDOMStorageContext() override { return NULL; }
149 content::IndexedDBContext* GetIndexedDBContext() override { return NULL; } 149 content::IndexedDBContext* GetIndexedDBContext() override { return NULL; }
150 content::ServiceWorkerContext* GetServiceWorkerContext() override { 150 content::ServiceWorkerContext* GetServiceWorkerContext() override {
151 return NULL; 151 return NULL;
152 } 152 }
153 content::GeofencingManager* GetGeofencingManager() override { return NULL; }
153 154
154 void ClearDataForOrigin(uint32 remove_mask, 155 void ClearDataForOrigin(uint32 remove_mask,
155 uint32 quota_storage_remove_mask, 156 uint32 quota_storage_remove_mask,
156 const GURL& storage_origin, 157 const GURL& storage_origin,
157 net::URLRequestContextGetter* rq_context, 158 net::URLRequestContextGetter* rq_context,
158 const base::Closure& callback) override { 159 const base::Closure& callback) override {
159 BrowserThread::PostTask(BrowserThread::UI, 160 BrowserThread::PostTask(BrowserThread::UI,
160 FROM_HERE, 161 FROM_HERE,
161 base::Bind(&TestStoragePartition::AsyncRunCallback, 162 base::Bind(&TestStoragePartition::AsyncRunCallback,
162 base::Unretained(this), 163 base::Unretained(this),
(...skipping 1651 matching lines...) Expand 10 before | Expand all | Expand 10 after
1814 EXPECT_EQ(1u, tester.clear_count()); 1815 EXPECT_EQ(1u, tester.clear_count());
1815 EXPECT_EQ(CLEAR_CONTEXTS, tester.last_clear_mode()); 1816 EXPECT_EQ(CLEAR_CONTEXTS, tester.last_clear_mode());
1816 } 1817 }
1817 1818
1818 TEST_F(BrowsingDataRemoverTest, DomainReliability_NoMonitor) { 1819 TEST_F(BrowsingDataRemoverTest, DomainReliability_NoMonitor) {
1819 BlockUntilBrowsingDataRemoved( 1820 BlockUntilBrowsingDataRemoved(
1820 BrowsingDataRemover::EVERYTHING, 1821 BrowsingDataRemover::EVERYTHING,
1821 BrowsingDataRemover::REMOVE_HISTORY | 1822 BrowsingDataRemover::REMOVE_HISTORY |
1822 BrowsingDataRemover::REMOVE_COOKIES, false); 1823 BrowsingDataRemover::REMOVE_COOKIES, false);
1823 } 1824 }
OLDNEW
« no previous file with comments | « no previous file | content/browser/geofencing/geofencing_dispatcher_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698