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

Unified Diff: ios/chrome/browser/browsing_data/cache_counter_unittest.cc

Issue 2671743002: Separate state of basic and advanced tab in CBD dialog (Closed)
Patch Set: fix .classpath file 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 side-by-side diff with in-line comments
Download patch
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();

Powered by Google App Engine
This is Rietveld 408576698