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

Unified Diff: chrome/browser/autofill/auxiliary_profile_loader_mock.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: Android Autofill Populator Created 7 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/autofill/auxiliary_profile_loader_mock.h
diff --git a/chrome/browser/autofill/auxiliary_profile_loader_mock.h b/chrome/browser/autofill/auxiliary_profile_loader_mock.h
new file mode 100644
index 0000000000000000000000000000000000000000..4b8e2aa7b54eccd83dfe0d3d044ddb03bcf030d1
--- /dev/null
+++ b/chrome/browser/autofill/auxiliary_profile_loader_mock.h
@@ -0,0 +1,64 @@
+// Copyright (c) 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 CHROME_BROWSER_AUTOFILL_AUXILIARY_PROFILE_LOADER_MOCK_H_
+#define CHROME_BROWSER_AUTOFILL_AUXILIARY_PROFILE_LOADER_MOCK_H_
+
+#include "chrome/browser/autofill/i_auxiliary_profile_loader.h"
+
+class AuxiliaryProfileLoaderMock : public IAuxiliaryProfileLoader {
+ public:
+ explicit AuxiliaryProfileLoaderMock();
+
+ // Address info
+ virtual string16 GetStreet();
+ void SetStreet(string16);
aurimas (slooooooooow) 2013/02/27 01:56:00 This should be called set_street() since it is a s
apiccion 2013/02/28 01:31:04 Think this violates separation of interface from u
+ virtual string16 GetPobox();
+ void SetPobox(string16);
aurimas (slooooooooow) 2013/02/27 01:56:00 Same for all the Set... functions below.
apiccion 2013/02/28 01:31:04 See comment above.
+ virtual string16 GetNeighborhood();
+ void SetNeighborhood(string16);
+ virtual string16 GetRegion();
+ void SetRegion(string16);
+ virtual string16 GetCity();
+ void SetCity(string16);
+ virtual string16 GetPostalCode();
+ void SetPostalCode(string16);
+ virtual string16 GetCountry();
+ void SetCountry(string16);
+
+ // Name info
+ virtual string16 GetFirstName();
+ void SetFirstName(string16);
+ virtual string16 GetMiddleName();
+ void SetMiddleName(string16);
+ virtual string16 GetLastName();
+ void SetLastName(string16);
+ virtual string16 GetSuffix();
+ void SetSuffix(string16);
+
+ // Email info
+ virtual std::vector<string16> GetEmailAddresses();
+ void SetEmailAddresses(std::vector<string16>);
+
+ // Phone info
+ virtual std::vector<string16> GetPhoneNumbers();
+ void SetPhoneNumbers(std::vector<string16>);
+
+ private:
+ string16 street_;
+ string16 pobox_;
+ string16 neighborhood_;
+ string16 region_;
+ string16 city_;
+ string16 postalCode_;
+ string16 country_;
+ string16 firstName_;
+ string16 middleName_;
+ string16 lastName_;
+ string16 suffix_;
+ std::vector<string16> emailAddresses_;
+ std::vector<string16> phoneNumbers_;
+};
+
+#endif // CHROME_BROWSER_AUTOFILL_AUXILIARY_PROFILE_LOADER_MOCK_H_

Powered by Google App Engine
This is Rietveld 408576698