forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace MockPasswordManagerDriver with StubPasswordManagerDriver.
Currently, there is a global MockPasswordManagerDriver, which mocks all virtual methods of the PasswordManagerDriver interface. There is also a locally (in a unit test) defined TestPasswordManagerDriver, which inherits from the pure interface and provides stubs, a number of them trivial. That leads to code duplication and clutter. This CL establishes the following structure: It introduces StubPasswordManagerDriver, which is available to all tests, and stubs all pure virtual methods of the driver interface. Within the tests, mock or test drivers can inherit from the stub, and only mock/modify methods interesting in that test. See also http://crbug.com/352566#c2 for a description of this refactoring. BUG=352566 Review URL: https://codereview.chromium.org/313113003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@275104 0039d316-1c4b-4281-b951-d872f2087c98
- Loading branch information
vabr@chromium.org
committed
Jun 5, 2014
1 parent
d3a7434
commit e437cb9
Showing
12 changed files
with
146 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 0 additions & 19 deletions
19
components/password_manager/core/browser/mock_password_manager_driver.cc
This file was deleted.
Oops, something went wrong.
44 changes: 0 additions & 44 deletions
44
components/password_manager/core/browser/mock_password_manager_driver.h
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.