Index: ios/chrome/browser/browsing_data/cache_counter_unittest.cc |
diff --git a/ios/chrome/browser/browsing_data/cache_counter_unittest.cc b/ios/chrome/browser/browsing_data/cache_counter_unittest.cc |
index bf6b87ccda2d63d258525e1eb458ea9fb567ebf1..1c682e492891920250b3ba0aa00aed94c5abf3a4 100644 |
--- a/ios/chrome/browser/browsing_data/cache_counter_unittest.cc |
+++ b/ios/chrome/browser/browsing_data/cache_counter_unittest.cc |
@@ -236,8 +236,9 @@ class CacheCounterTest : public testing::Test { |
// Tests that for the empty cache, the result is zero. |
TEST_F(CacheCounterTest, Empty) { |
CacheCounter counter(browser_state()); |
- counter.Init(prefs(), base::Bind(&CacheCounterTest::CountingCallback, |
- base::Unretained(this))); |
+ counter.Init( |
+ prefs(), browsing_data::ClearBrowsingDataPreferenceType::DEFAULT, |
+ base::Bind(&CacheCounterTest::CountingCallback, base::Unretained(this))); |
counter.Restart(); |
WaitForIOThread(); |
@@ -251,8 +252,9 @@ TEST_F(CacheCounterTest, BeforeAndAfterClearing) { |
CreateCacheEntry(); |
CacheCounter counter(browser_state()); |
- counter.Init(prefs(), base::Bind(&CacheCounterTest::CountingCallback, |
- base::Unretained(this))); |
+ counter.Init( |
+ prefs(), browsing_data::ClearBrowsingDataPreferenceType::DEFAULT, |
+ base::Bind(&CacheCounterTest::CountingCallback, base::Unretained(this))); |
counter.Restart(); |
WaitForIOThread(); |
@@ -271,8 +273,9 @@ TEST_F(CacheCounterTest, PrefChanged) { |
SetCacheDeletionPref(false); |
CacheCounter counter(browser_state()); |
- counter.Init(prefs(), base::Bind(&CacheCounterTest::CountingCallback, |
- base::Unretained(this))); |
+ counter.Init( |
+ prefs(), browsing_data::ClearBrowsingDataPreferenceType::DEFAULT, |
+ base::Bind(&CacheCounterTest::CountingCallback, base::Unretained(this))); |
SetCacheDeletionPref(true); |
WaitForIOThread(); |
@@ -287,8 +290,9 @@ TEST_F(CacheCounterTest, PeriodChanged) { |
CreateCacheEntry(); |
CacheCounter counter(browser_state()); |
- counter.Init(prefs(), base::Bind(&CacheCounterTest::CountingCallback, |
- base::Unretained(this))); |
+ counter.Init( |
+ prefs(), browsing_data::ClearBrowsingDataPreferenceType::DEFAULT, |
+ base::Bind(&CacheCounterTest::CountingCallback, base::Unretained(this))); |
SetDeletionPeriodPref(browsing_data::LAST_HOUR); |
WaitForIOThread(); |