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

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

Issue 17392006: In components/autofill, move browser/ to core/browser/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to fix conflicts Created 7 years, 6 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "components/autofill/browser/test_personal_data_manager.h"
6
7 #include "components/autofill/browser/personal_data_manager_observer.h"
8
9 namespace autofill {
10
11 TestPersonalDataManager::TestPersonalDataManager()
12 : PersonalDataManager("en-US") {}
13
14 TestPersonalDataManager::~TestPersonalDataManager() {}
15
16 void TestPersonalDataManager::AddTestingProfile(AutofillProfile* profile) {
17 profiles_.push_back(profile);
18 FOR_EACH_OBSERVER(PersonalDataManagerObserver, observers_,
19 OnPersonalDataChanged());
20 }
21
22 void TestPersonalDataManager::AddTestingCreditCard(CreditCard* credit_card) {
23 credit_cards_.push_back(credit_card);
24 FOR_EACH_OBSERVER(PersonalDataManagerObserver, observers_,
25 OnPersonalDataChanged());
26 }
27
28 const std::vector<AutofillProfile*>& TestPersonalDataManager::GetProfiles() {
29 return profiles_;
30 }
31
32 const std::vector<CreditCard*>& TestPersonalDataManager::
33 GetCreditCards() const {
34 return credit_cards_;
35 }
36
37 void TestPersonalDataManager::SaveImportedProfile(
38 const AutofillProfile& imported_profile) {
39 imported_profile_ = imported_profile;
40 }
41
42 } // namespace autofill
OLDNEW
« no previous file with comments | « components/autofill/browser/test_personal_data_manager.h ('k') | components/autofill/browser/validation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698