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

Unified Diff: chrome/browser/browsing_data/autofill_counter_browsertest.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: chrome/browser/browsing_data/autofill_counter_browsertest.cc
diff --git a/chrome/browser/browsing_data/autofill_counter_browsertest.cc b/chrome/browser/browsing_data/autofill_counter_browsertest.cc
index 6e3e1c685efb916ed2e794a2ff32c35e95a332d1..913c763b9218139d4ea95680dc5a339beb5185d2 100644
--- a/chrome/browser/browsing_data/autofill_counter_browsertest.cc
+++ b/chrome/browser/browsing_data/autofill_counter_browsertest.cc
@@ -205,8 +205,10 @@ class AutofillCounterTest : public InProcessBrowserTest {
IN_PROC_BROWSER_TEST_F(AutofillCounterTest, AutocompleteSuggestions) {
Profile* profile = browser()->profile();
browsing_data::AutofillCounter counter(GetWebDataService());
- counter.Init(profile->GetPrefs(), base::Bind(&AutofillCounterTest::Callback,
- base::Unretained(this)));
+ counter.Init(
+ profile->GetPrefs(),
+ browsing_data::ClearBrowsingDataPreferenceType::DEFAULT,
+ base::Bind(&AutofillCounterTest::Callback, base::Unretained(this)));
counter.Restart();
WaitForCounting();
EXPECT_EQ(0, GetNumSuggestions());
@@ -241,8 +243,10 @@ IN_PROC_BROWSER_TEST_F(AutofillCounterTest, AutocompleteSuggestions) {
IN_PROC_BROWSER_TEST_F(AutofillCounterTest, CreditCards) {
Profile* profile = browser()->profile();
browsing_data::AutofillCounter counter(GetWebDataService());
- counter.Init(profile->GetPrefs(), base::Bind(&AutofillCounterTest::Callback,
- base::Unretained(this)));
+ counter.Init(
+ profile->GetPrefs(),
+ browsing_data::ClearBrowsingDataPreferenceType::DEFAULT,
+ base::Bind(&AutofillCounterTest::Callback, base::Unretained(this)));
counter.Restart();
WaitForCounting();
EXPECT_EQ(0, GetNumCreditCards());
@@ -277,8 +281,10 @@ IN_PROC_BROWSER_TEST_F(AutofillCounterTest, CreditCards) {
IN_PROC_BROWSER_TEST_F(AutofillCounterTest, Addresses) {
Profile* profile = browser()->profile();
browsing_data::AutofillCounter counter(GetWebDataService());
- counter.Init(profile->GetPrefs(), base::Bind(&AutofillCounterTest::Callback,
- base::Unretained(this)));
+ counter.Init(
+ profile->GetPrefs(),
+ browsing_data::ClearBrowsingDataPreferenceType::DEFAULT,
+ base::Bind(&AutofillCounterTest::Callback, base::Unretained(this)));
counter.Restart();
WaitForCounting();
EXPECT_EQ(0, GetNumAddresses());
@@ -327,8 +333,10 @@ IN_PROC_BROWSER_TEST_F(AutofillCounterTest, ComplexResult) {
Profile* profile = browser()->profile();
browsing_data::AutofillCounter counter(GetWebDataService());
- counter.Init(profile->GetPrefs(), base::Bind(&AutofillCounterTest::Callback,
- base::Unretained(this)));
+ counter.Init(
+ profile->GetPrefs(),
+ browsing_data::ClearBrowsingDataPreferenceType::DEFAULT,
+ base::Bind(&AutofillCounterTest::Callback, base::Unretained(this)));
counter.Restart();
WaitForCounting();
EXPECT_EQ(5, GetNumSuggestions());
@@ -382,8 +390,10 @@ IN_PROC_BROWSER_TEST_F(AutofillCounterTest, TimeRanges) {
Profile* profile = browser()->profile();
browsing_data::AutofillCounter counter(GetWebDataService());
- counter.Init(profile->GetPrefs(), base::Bind(&AutofillCounterTest::Callback,
- base::Unretained(this)));
+ counter.Init(
+ profile->GetPrefs(),
+ browsing_data::ClearBrowsingDataPreferenceType::DEFAULT,
+ base::Bind(&AutofillCounterTest::Callback, base::Unretained(this)));
for (const TestCase& test_case : test_cases) {
counter.SetPeriodStartForTesting(test_case.period_start);

Powered by Google App Engine
This is Rietveld 408576698