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

Side by Side Diff: components/autofill/core/browser/autofill_test_utils.cc

Issue 1042353003: Create syncable metadata table for Wallet credit cards and addresses. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: docs Created 5 years, 8 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "components/autofill/core/browser/autofill_test_utils.h" 5 #include "components/autofill/core/browser/autofill_test_utils.h"
6 6
7 #include "base/guid.h" 7 #include "base/guid.h"
8 #include "base/prefs/pref_service.h" 8 #include "base/prefs/pref_service.h"
9 #include "base/prefs/pref_service_factory.h" 9 #include "base/prefs/pref_service_factory.h"
10 #include "base/prefs/testing_pref_store.h" 10 #include "base/prefs/testing_pref_store.h"
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 std::string type = card.type(); 292 std::string type = card.type();
293 card.SetNumber(card.LastFourDigits()); 293 card.SetNumber(card.LastFourDigits());
294 card.SetTypeForMaskedCard(type.c_str()); 294 card.SetTypeForMaskedCard(type.c_str());
295 } 295 }
296 table->SetServerCreditCards(as_masked_cards); 296 table->SetServerCreditCards(as_masked_cards);
297 297
298 for (const CreditCard& card : cards) { 298 for (const CreditCard& card : cards) {
299 if (card.record_type() != CreditCard::FULL_SERVER_CARD) 299 if (card.record_type() != CreditCard::FULL_SERVER_CARD)
300 continue; 300 continue;
301 301
302 table->UnmaskServerCreditCard(card.server_id(), card.number()); 302 table->UnmaskServerCreditCard(card, card.number());
303 } 303 }
304 } 304 }
305 305
306 } // namespace test 306 } // namespace test
307 } // namespace autofill 307 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698