blob: f9e40b1ab59ab5efe0e5db6ad1abe06b13567d09 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_AUTOFILL_BROWSER_ANDROID_TEST_AUXILIARY_PROFILE_LOADER_ANDROID_H_
#define COMPONENTS_AUTOFILL_BROWSER_ANDROID_TEST_AUXILIARY_PROFILE_LOADER_ANDROID_H_
#include "base/compiler_specific.h"
#include "components/autofill/browser/android/auxiliary_profile_loader_android.h"
namespace autofill {
class TestAuxiliaryProfileLoader
: public autofill::AuxiliaryProfileLoaderAndroid {
// Mock object for unit testing |AuxiliaryProfilesAndroid|
public:
TestAuxiliaryProfileLoader();
virtual ~TestAuxiliaryProfileLoader();
virtual bool GetHasPermissions() const OVERRIDE;
virtual base::string16 GetFirstName() const OVERRIDE;
virtual base::string16 GetMiddleName() const OVERRIDE;
virtual base::string16 GetLastName() const OVERRIDE;
virtual base::string16 GetSuffix() const OVERRIDE;
virtual base::string16 GetStreet() const OVERRIDE;
virtual base::string16 GetCity() const OVERRIDE;
virtual base::string16 GetNeighborhood() const OVERRIDE;
virtual base::string16 GetPostalCode() const OVERRIDE;
virtual base::string16 GetRegion() const OVERRIDE;
virtual base::string16 GetPostOfficeBox() const OVERRIDE;
virtual base::string16 GetCountry() const OVERRIDE;
virtual void GetEmailAddresses(
std::vector<base::string16>* email_addresses) const OVERRIDE;
virtual void GetPhoneNumbers(
std::vector<base::string16>* phone_numbers) const OVERRIDE;
void SetFirstName(const base::string16& first_name);
void SetMiddleName(const base::string16& middle_name);
void SetLastName(const base::string16& last_name);
void SetSuffix(const base::string16& suffix);
void SetStreet(const base::string16& street);
void SetPostOfficeBox(const base::string16& post_office_box);
void SetNeighborhood(const base::string16& neighborhood);
void SetRegion(const base::string16& region);
void SetCity(const base::string16& city);
void SetPostalCode(const base::string16& postal_code);
void SetCountry(const base::string16& country);
void SetEmailAddresses(const std::vector<base::string16>& email_addresses);
void SetPhoneNumbers(const std::vector<base::string16>& phone_numbers);
private:
base::string16 street_;
base::string16 post_office_box_;
base::string16 neighborhood_;
base::string16 region_;
base::string16 city_;
base::string16 postal_code_;
base::string16 country_;
base::string16 first_name_;
base::string16 middle_name_;
base::string16 last_name_;
base::string16 suffix_;
std::vector<base::string16> email_addresses_;
std::vector<base::string16> phone_numbers_;
};
} // namespace autofill
#endif // COMPONENTS_AUTOFILL_BROWSER_ANDROID_TEST_AUXILIARY_PROFILE_LOADER_ANDROID_H_
|