summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autofill/autofill_manager_unittest.cc
diff options
context:
space:
mode:
authorisherman@chromium.org <isherman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-15 04:45:20 +0000
committerisherman@chromium.org <isherman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-15 04:45:20 +0000
commit608132378d0ca25d11e5aa96c17e7b51769716fd (patch)
tree705b51068e11e249858fdd512153ff2955b5e11e /chrome/browser/autofill/autofill_manager_unittest.cc
parent7a0ba51c75001b30803574f5894256ae883993b8 (diff)
downloadchromium_src-608132378d0ca25d11e5aa96c17e7b51769716fd.zip
chromium_src-608132378d0ca25d11e5aa96c17e7b51769716fd.tar.gz
chromium_src-608132378d0ca25d11e5aa96c17e7b51769716fd.tar.bz2
Add some basic success/failure UMA logging for autofill.
BUG=none TEST=unit_tests --gtest_filter=AutoFillMetricsTest.* Review URL: http://codereview.chromium.org/5703002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69232 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autofill/autofill_manager_unittest.cc')
-rw-r--r--chrome/browser/autofill/autofill_manager_unittest.cc12
1 files changed, 4 insertions, 8 deletions
diff --git a/chrome/browser/autofill/autofill_manager_unittest.cc b/chrome/browser/autofill/autofill_manager_unittest.cc
index ffaa536..bf6877f 100644
--- a/chrome/browser/autofill/autofill_manager_unittest.cc
+++ b/chrome/browser/autofill/autofill_manager_unittest.cc
@@ -183,7 +183,7 @@ void CreateTestAddressFormData(FormData* form) {
form->fields.push_back(field);
}
-// Populates |form| with data corresponding to a simple credit card form, with.
+// Populates |form| with data corresponding to a simple credit card form.
// Note that this actually appends fields to the form data, which can be useful
// for building up more complex test forms.
void CreateTestCreditCardFormData(FormData* form, bool is_https) {
@@ -364,19 +364,13 @@ void ExpectFilledCreditCardFormElvis(int page_id,
has_address_fields, true);
}
-} // namespace
-
class TestAutoFillManager : public AutoFillManager {
public:
TestAutoFillManager(TabContents* tab_contents,
TestPersonalDataManager* personal_manager)
- : AutoFillManager(tab_contents, NULL),
+ : AutoFillManager(tab_contents, personal_manager),
autofill_enabled_(true) {
test_personal_data_ = personal_manager;
- set_personal_data_manager(personal_manager);
- // Download manager requests are disabled for purposes of this unit test.
- // These requests are tested in autofill_download_unittest.cc.
- set_disable_download_manager_requests(true);
}
virtual bool IsAutoFillEnabled() const { return autofill_enabled_; }
@@ -425,6 +419,8 @@ class TestAutoFillManager : public AutoFillManager {
DISALLOW_COPY_AND_ASSIGN(TestAutoFillManager);
};
+} // namespace
+
class AutoFillManagerTest : public RenderViewHostTestHarness {
public:
AutoFillManagerTest() {}