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

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

Issue 2658473002: Refactor BluetoothAllowedDevicesMap (Closed)
Patch Set: clean up code Created 3 years, 10 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 <stddef.h> 5 #include <stddef.h>
6 #include <stdint.h> 6 #include <stdint.h>
7 7
8 #include <list> 8 #include <list>
9 #include <memory> 9 #include <memory>
10 #include <set> 10 #include <set>
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 storage_partition_removal_data_.origin_matcher = origin_matcher; 226 storage_partition_removal_data_.origin_matcher = origin_matcher;
227 storage_partition_removal_data_.cookie_matcher = cookie_matcher; 227 storage_partition_removal_data_.cookie_matcher = cookie_matcher;
228 228
229 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, 229 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE,
230 base::Bind(&TestStoragePartition::AsyncRunCallback, 230 base::Bind(&TestStoragePartition::AsyncRunCallback,
231 base::Unretained(this), callback)); 231 base::Unretained(this), callback));
232 } 232 }
233 233
234 void Flush() override {} 234 void Flush() override {}
235 235
236 void ClearBluetoothAllowedDevicesMap() override {}
237
236 StoragePartitionRemovalData GetStoragePartitionRemovalData() { 238 StoragePartitionRemovalData GetStoragePartitionRemovalData() {
237 return storage_partition_removal_data_; 239 return storage_partition_removal_data_;
238 } 240 }
239 241
240 private: 242 private:
241 void AsyncRunCallback(const base::Closure& callback) { 243 void AsyncRunCallback(const base::Closure& callback) {
242 callback.Run(); 244 callback.Run();
243 } 245 }
244 246
245 StoragePartitionRemovalData storage_partition_removal_data_; 247 StoragePartitionRemovalData storage_partition_removal_data_;
(...skipping 1465 matching lines...) Expand 10 before | Expand all | Expand 10 after
1711 EXPECT_TRUE(remover->is_removing()); 1713 EXPECT_TRUE(remover->is_removing());
1712 1714
1713 // Add one more deletion and wait for it. 1715 // Add one more deletion and wait for it.
1714 BlockUntilBrowsingDataRemoved( 1716 BlockUntilBrowsingDataRemoved(
1715 base::Time(), base::Time::Max(), 1717 base::Time(), base::Time::Max(),
1716 BrowsingDataRemover::REMOVE_COOKIES, 1718 BrowsingDataRemover::REMOVE_COOKIES,
1717 BrowsingDataHelper::UNPROTECTED_WEB); 1719 BrowsingDataHelper::UNPROTECTED_WEB);
1718 1720
1719 EXPECT_FALSE(remover->is_removing()); 1721 EXPECT_FALSE(remover->is_removing());
1720 } 1722 }
OLDNEW
« no previous file with comments | « no previous file | content/browser/BUILD.gn » ('j') | content/browser/bluetooth/web_bluetooth_service_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698