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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: components/autofill/browser/android/test_auxiliary_profile_loader_android.h
diff --git a/components/autofill/browser/android/test_auxiliary_profile_loader_android.h b/components/autofill/browser/android/test_auxiliary_profile_loader_android.h
new file mode 100644
index 0000000000000000000000000000000000000000..d7d4d9bacdc4f30b1cc1ab6a2d5689549ede7415
--- /dev/null
+++ b/components/autofill/browser/android/test_auxiliary_profile_loader_android.h
@@ -0,0 +1,68 @@
+// 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 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.
+#define CHROME_BROWSER_AUTOFILL_ANDROID_TEST_AUXILIARY_PROFILE_LOADER_ANDROID_H_
+
+#include "base/compiler_specific.h"
+#include "components/autofill/browser/android/auxiliary_profile_loader_android.h"
+
+class TestAuxiliaryProfileLoader
+ : public autofill::AuxiliaryProfileLoaderAndroid {
+ // 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>* email_addresses) const OVERRIDE;
+ virtual void GetPhoneNumbers(
+ std::vector<string16>* phone_numbers) const OVERRIDE;
+
+ void SetFirstName(const string16& first_name);
+ void SetMiddleName(const string16& middle_name);
+ void SetLastName(const string16& last_name);
+ void SetSuffix(const string16& suffix);
+
+ void SetStreet(const string16& street);
+ void SetPostOfficeBox(const string16& post_office_box);
+ void SetNeighborhood(const string16& neighborhood);
+ void SetRegion(const string16& region);
+ void SetCity(const string16& city);
+ void SetPostalCode(const string16& postal_code);
+ void SetCountry(const string16& country);
+
+ void SetEmailAddresses(const std::vector<string16>& email_addresses);
+ void SetPhoneNumbers(const std::vector<string16>& phone_numbers);
+
+ private:
+ string16 street_;
+ string16 post_office_box_;
+ string16 neighborhood_;
+ string16 region_;
+ string16 city_;
+ string16 postal_code_;
+ string16 country_;
+ string16 first_name_;
+ string16 middle_name_;
+ string16 last_name_;
+ string16 suffix_;
+ std::vector<string16> email_addresses_;
+ std::vector<string16> phone_numbers_;
+};
+
+#endif // CHROME_BROWSER_AUTOFILL_ANDROID_TEST_AUXILIARY_PROFILE_LOADER_ANDROID_H_

Powered by Google App Engine
This is Rietveld 408576698