Let PasswordFormManagerTest have an instance of the TestPasswordManager as a member
commitcf72bba9dd47c126d45598ae1c01f4eecefbe1f3
authorlucinka.brozkova <lucinka.brozkova@gmail.com>
Mon, 17 Aug 2015 13:12:14 +0000 (17 06:12 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 17 Aug 2015 13:12:51 +0000 (17 13:12 +0000)
tree0205e9eeb5d02ce19c716564c67c9157c9c7cd38
parentde8a19786344c9eaf75a3a8afe7c97c0d0a66e40
Let PasswordFormManagerTest have an instance of the TestPasswordManager as a member

Replace the repeated local creation of the same class over again.
Also provide a non-null PasswordManager to every PasswordFormManager. This will be important in the coming CLs where calling SimulateMatchingPhase on a PasswordFormManager will be replaced with calling OnGetPasswordStoreResults, which dereferences the passed PasswordManager.

BUG=520831

Review URL: https://codereview.chromium.org/1296823002

Cr-Commit-Position: refs/heads/master@{#343671}
components/password_manager/core/browser/password_form_manager_unittest.cc