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

Unified Diff: chrome/browser/browsing_data/autofill_counter_browsertest.cc

Issue 2254983002: Remove test-only constructor from CreditCard. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 5b123e2160fb4fcde2c7561ae2bb5824a61e1ec9..fb4e9759aeae56c1b3f4a35793c8042fa8f04582 100644
--- a/chrome/browser/browsing_data/autofill_counter_browsertest.cc
+++ b/chrome/browser/browsing_data/autofill_counter_browsertest.cc
@@ -69,11 +69,11 @@ class AutofillCounterTest : public InProcessBrowserTest {
void AddCreditCard(const std::string& card_number,
int exp_month,
int exp_year) {
- autofill::CreditCard card(
- base::ASCIIToUTF16(card_number), exp_month, exp_year);
- std::string id = base::GenerateGUID();
- credit_card_ids_.push_back(id);
- card.set_guid(id);
+ autofill::CreditCard card(base::GenerateGUID(), std::string());
+ card.SetNumber(base::ASCIIToUTF16(card_number));
+ card.SetExpirationMonth(exp_month);
+ card.SetExpirationYear(exp_year);
+ credit_card_ids_.push_back(card.guid());
web_data_service_->AddCreditCard(card);
}

Powered by Google App Engine
This is Rietveld 408576698