summaryrefslogtreecommitdiffstats
path: root/components/password_manager/core
diff options
context:
space:
mode:
authorestade <estade@chromium.org>2014-12-17 17:35:32 -0800
committerCommit bot <commit-bot@chromium.org>2014-12-18 01:35:56 +0000
commitd92bda37560350486049df6aab4567eb4f4c8ec0 (patch)
tree9e76e77011f61fb84d530ff262417daaff629b92 /components/password_manager/core
parent461f93fb6561c9d6df54fbcf07d038cc203161b0 (diff)
downloadchromium_src-d92bda37560350486049df6aab4567eb4f4c8ec0.zip
chromium_src-d92bda37560350486049df6aab4567eb4f4c8ec0.tar.gz
chromium_src-d92bda37560350486049df6aab4567eb4f4c8ec0.tar.bz2
Make AutofillMetrics a static-only class.
BUG=439620 TBR=aurimas@chromium.org Review URL: https://codereview.chromium.org/794733003 Cr-Commit-Position: refs/heads/master@{#308913}
Diffstat (limited to 'components/password_manager/core')
-rw-r--r--components/password_manager/core/browser/password_generation_manager_unittest.cc12
1 files changed, 1 insertions, 11 deletions
diff --git a/components/password_manager/core/browser/password_generation_manager_unittest.cc b/components/password_manager/core/browser/password_generation_manager_unittest.cc
index 4969752..d951968 100644
--- a/components/password_manager/core/browser/password_generation_manager_unittest.cc
+++ b/components/password_manager/core/browser/password_generation_manager_unittest.cc
@@ -97,15 +97,6 @@ class TestPasswordManagerClient : public StubPasswordManagerClient {
bool is_off_the_record_;
};
-// Unlike the base AutofillMetrics, exposes copy and assignment constructors,
-// which are handy for briefer test code. The AutofillMetrics class is
-// stateless, so this is safe.
-class TestAutofillMetrics : public autofill::AutofillMetrics {
- public:
- TestAutofillMetrics() {}
- ~TestAutofillMetrics() override {}
-};
-
} // anonymous namespace
class PasswordGenerationManagerTest : public testing::Test {
@@ -201,8 +192,7 @@ TEST_F(PasswordGenerationManagerTest, DetectAccountCreationForms) {
"<field autofilltype=\"76\" />"
"<field autofilltype=\"75\" />"
"</autofillqueryresponse>";
- autofill::FormStructure::ParseQueryResponse(
- kServerResponse, forms, TestAutofillMetrics());
+ autofill::FormStructure::ParseQueryResponse(kServerResponse, forms);
DetectAccountCreationForms(forms);
EXPECT_EQ(1u, GetTestDriver()->GetFoundAccountCreationForms().size());