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

Side by Side Diff: components/autofill/browser/android/test_auxiliary_profile_loader_android.h

Issue 12282004: Added personal_data_manager android implementation for auto-populating auto-fill on android builds … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Components Refactor + Nits Created 7 years, 9 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 #ifndef CHROME_BROWSER_AUTOFILL_ANDROID_TEST_AUXILIARY_PROFILE_LOADER_ANDROID_H_
Yaron 2013/03/13 21:23:23 Update header guard
apiccion 2013/03/15 00:59:13 Done.
6 #define CHROME_BROWSER_AUTOFILL_ANDROID_TEST_AUXILIARY_PROFILE_LOADER_ANDROID_H_
7
8 #include "base/compiler_specific.h"
9 #include "components/autofill/browser/android/auxiliary_profile_loader_android.h "
10
11 class TestAuxiliaryProfileLoader
12 : public autofill::AuxiliaryProfileLoaderAndroid {
13 // Mock object for unit testing |AuxiliaryProfilesAndroid|
14 public:
15 TestAuxiliaryProfileLoader();
16 ~TestAuxiliaryProfileLoader();
17
18 virtual string16 GetFirstName() const OVERRIDE;
19 virtual string16 GetMiddleName() const OVERRIDE;
20 virtual string16 GetLastName() const OVERRIDE;
21 virtual string16 GetSuffix() const OVERRIDE;
22
23 virtual string16 GetStreet() const OVERRIDE;
24 virtual string16 GetCity() const OVERRIDE;
25 virtual string16 GetNeighborhood() const OVERRIDE;
26 virtual string16 GetPostalCode() const OVERRIDE;
27 virtual string16 GetRegion() const OVERRIDE;
28 virtual string16 GetPostOfficeBox() const OVERRIDE;
29 virtual string16 GetCountry() const OVERRIDE;
30
31 virtual void GetEmailAddresses(
32 std::vector<string16>* email_addresses) const OVERRIDE;
33 virtual void GetPhoneNumbers(
34 std::vector<string16>* phone_numbers) const OVERRIDE;
35
36 void SetFirstName(const string16& first_name);
37 void SetMiddleName(const string16& middle_name);
38 void SetLastName(const string16& last_name);
39 void SetSuffix(const string16& suffix);
40
41 void SetStreet(const string16& street);
42 void SetPostOfficeBox(const string16& post_office_box);
43 void SetNeighborhood(const string16& neighborhood);
44 void SetRegion(const string16& region);
45 void SetCity(const string16& city);
46 void SetPostalCode(const string16& postal_code);
47 void SetCountry(const string16& country);
48
49 void SetEmailAddresses(const std::vector<string16>& email_addresses);
50 void SetPhoneNumbers(const std::vector<string16>& phone_numbers);
51
52 private:
53 string16 street_;
54 string16 post_office_box_;
55 string16 neighborhood_;
56 string16 region_;
57 string16 city_;
58 string16 postal_code_;
59 string16 country_;
60 string16 first_name_;
61 string16 middle_name_;
62 string16 last_name_;
63 string16 suffix_;
64 std::vector<string16> email_addresses_;
65 std::vector<string16> phone_numbers_;
66 };
67
68 #endif // CHROME_BROWSER_AUTOFILL_ANDROID_TEST_AUXILIARY_PROFILE_LOADER_ANDROID _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698