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

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

Issue 23882013: [rAc] Persist selection of newly added cards and addresses. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix tests, add a test Created 7 years, 3 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 | Annotate | Revision Log
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/test_personal_data_manager.h" 5 #include "components/autofill/core/browser/test_personal_data_manager.h"
6 6
7 #include "components/autofill/core/browser/personal_data_manager_observer.h" 7 #include "components/autofill/core/browser/personal_data_manager_observer.h"
8 8
9 namespace autofill { 9 namespace autofill {
10 10
(...skipping 16 matching lines...) Expand all
27 27
28 const std::vector<AutofillProfile*>& TestPersonalDataManager::GetProfiles() { 28 const std::vector<AutofillProfile*>& TestPersonalDataManager::GetProfiles() {
29 return profiles_; 29 return profiles_;
30 } 30 }
31 31
32 const std::vector<CreditCard*>& TestPersonalDataManager:: 32 const std::vector<CreditCard*>& TestPersonalDataManager::
33 GetCreditCards() const { 33 GetCreditCards() const {
34 return credit_cards_; 34 return credit_cards_;
35 } 35 }
36 36
37 void TestPersonalDataManager::SaveImportedProfile( 37 std::string TestPersonalDataManager::SaveImportedProfile(
38 const AutofillProfile& imported_profile) { 38 const AutofillProfile& imported_profile) {
39 imported_profile_ = imported_profile; 39 imported_profile_ = imported_profile;
40 return imported_profile.guid();
41 }
42
43 std::string TestPersonalDataManager::SaveImportedCreditCard(
44 const CreditCard& imported_credit_card) {
45 imported_credit_card_ = imported_credit_card;
46 return imported_credit_card.guid();
40 } 47 }
41 48
42 } // namespace autofill 49 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698