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

Unified Diff: chrome/browser/autofill/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: Fixed assortment of nits 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/android/test_auxiliary_profile_loader_android.h
diff --git a/chrome/browser/autofill/android/test_auxiliary_profile_loader_android.h b/chrome/browser/autofill/android/test_auxiliary_profile_loader_android.h
new file mode 100644
index 0000000000000000000000000000000000000000..65aee984d0d4e43cec355c5b74ce45366e7faf50
--- /dev/null
+++ b/chrome/browser/autofill/android/test_auxiliary_profile_loader_android.h
@@ -0,0 +1,65 @@
+// 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_ANDROID_TEST_AUXILIARY_PROFILE_LOADER_ANDROID_H_
+#define CHROME_BROWSER_AUTOFILL_ANDROID_TEST_AUXILIARY_PROFILE_LOADER_ANDROID_H_
+
+#include "base/compiler_specific.h"
+#include "chrome/browser/autofill/android/auxiliary_profile_loader_android.h"
+
+class TestAuxiliaryProfileLoader : public autofill::AuxiliaryProfileLoader {
+ // Mock object for unit testing |AuxiliaryProfilesAndroid|
+ public:
+ TestAuxiliaryProfileLoader();
+ ~TestAuxiliaryProfileLoader();
+
+ virtual string16 GetFirstName() const OVERRIDE;
+ virtual string16 GetMiddleName() const OVERRIDE;
+ virtual string16 GetLastName() const OVERRIDE;
+ virtual string16 GetSuffix() const OVERRIDE;
+
+ virtual string16 GetStreet() const OVERRIDE;
+ virtual string16 GetCity() const OVERRIDE;
+ virtual string16 GetNeighborhood() const OVERRIDE;
+ virtual string16 GetPostalCode() const OVERRIDE;
+ virtual string16 GetRegion() const OVERRIDE;
+ virtual string16 GetPostOfficeBox() const OVERRIDE;
+ virtual string16 GetCountry() const OVERRIDE;
+
+ virtual void GetEmailAddresses(std::vector<string16>*) const OVERRIDE;
+ virtual void GetPhoneNumbers(std::vector<string16>*) const OVERRIDE;
+
+ void SetFirstName(string16);
+ void SetMiddleName(string16);
+ void SetLastName(string16);
+ void SetSuffix(string16);
+
+ void SetStreet(string16);
+ void SetPobox(string16);
+ void SetNeighborhood(string16);
+ void SetRegion(string16);
+ void SetCity(string16);
+ void SetPostalCode(string16);
+ void SetCountry(string16);
+
+ void SetEmailAddresses(std::vector<string16>);
+ 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_;
Ilya Sherman 2013/03/05 00:42:38 nit: hacker_case for all of these.
+};
+
+#endif // CHROME_BROWSER_AUTOFILL_ANDROID_TEST_AUXILIARY_PROFILE_LOADER_ANDROID_H_

Powered by Google App Engine
This is Rietveld 408576698