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

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

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

Powered by Google App Engine
This is Rietveld 408576698