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

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

Issue 2658473002: Refactor BluetoothAllowedDevicesMap (Closed)
Patch Set: cleaned up layout test 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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 storage_partition_removal_data_.origin_matcher = origin_matcher; 227 storage_partition_removal_data_.origin_matcher = origin_matcher;
228 storage_partition_removal_data_.cookie_matcher = cookie_matcher; 228 storage_partition_removal_data_.cookie_matcher = cookie_matcher;
229 229
230 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, 230 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE,
231 base::Bind(&TestStoragePartition::AsyncRunCallback, 231 base::Bind(&TestStoragePartition::AsyncRunCallback,
232 base::Unretained(this), callback)); 232 base::Unretained(this), callback));
233 } 233 }
234 234
235 void Flush() override {} 235 void Flush() override {}
236 236
237 void ClearBluetoothAllowedDevicesMapForTesting() override {}
238
237 StoragePartitionRemovalData GetStoragePartitionRemovalData() { 239 StoragePartitionRemovalData GetStoragePartitionRemovalData() {
238 return storage_partition_removal_data_; 240 return storage_partition_removal_data_;
239 } 241 }
240 242
241 private: 243 private:
242 void AsyncRunCallback(const base::Closure& callback) { 244 void AsyncRunCallback(const base::Closure& callback) {
243 callback.Run(); 245 callback.Run();
244 } 246 }
245 247
246 StoragePartitionRemovalData storage_partition_removal_data_; 248 StoragePartitionRemovalData storage_partition_removal_data_;
(...skipping 1465 matching lines...) Expand 10 before | Expand all | Expand 10 after
1712 EXPECT_TRUE(remover->is_removing()); 1714 EXPECT_TRUE(remover->is_removing());
1713 1715
1714 // Add one more deletion and wait for it. 1716 // Add one more deletion and wait for it.
1715 BlockUntilBrowsingDataRemoved( 1717 BlockUntilBrowsingDataRemoved(
1716 base::Time(), base::Time::Max(), 1718 base::Time(), base::Time::Max(),
1717 BrowsingDataRemover::REMOVE_COOKIES, 1719 BrowsingDataRemover::REMOVE_COOKIES,
1718 BrowsingDataHelper::UNPROTECTED_WEB); 1720 BrowsingDataHelper::UNPROTECTED_WEB);
1719 1721
1720 EXPECT_FALSE(remover->is_removing()); 1722 EXPECT_FALSE(remover->is_removing());
1721 } 1723 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698