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

Unified Diff: chrome/browser/password_manager/password_form_manager_unittest.cc

Issue 152693003: Expose PasswordManagerDriver as a public interface to core Password code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Response to review Created 6 years, 11 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
« no previous file with comments | « no previous file | chrome/browser/password_manager/password_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/password_manager/password_form_manager_unittest.cc
diff --git a/chrome/browser/password_manager/password_form_manager_unittest.cc b/chrome/browser/password_manager/password_form_manager_unittest.cc
index 998e84a54fa208b2eb758ea9693b84fbad45982d..d1c7680fb5ed89efabef6bb827f0f925f4fdf7dc 100644
--- a/chrome/browser/password_manager/password_form_manager_unittest.cc
+++ b/chrome/browser/password_manager/password_form_manager_unittest.cc
@@ -11,6 +11,7 @@
#include "chrome/browser/password_manager/password_form_manager.h"
#include "chrome/browser/password_manager/password_manager.h"
#include "chrome/browser/password_manager/password_manager_delegate.h"
+#include "chrome/browser/password_manager/password_manager_driver.h"
#include "chrome/browser/password_manager/password_store.h"
#include "chrome/browser/password_manager/password_store_factory.h"
#include "chrome/browser/password_manager/test_password_store.h"
@@ -26,19 +27,27 @@ using ::testing::Eq;
namespace {
-class TestPasswordManagerDelegate : public PasswordManagerDelegate {
+class TestPasswordManagerDriver : public PasswordManagerDriver {
public:
- explicit TestPasswordManagerDelegate(Profile* profile) : profile_(profile) {}
+ TestPasswordManagerDriver() {}
virtual void FillPasswordForm(
const autofill::PasswordFormFillData& form_data) OVERRIDE {}
+ virtual bool DidLastPageLoadEncounterSSLErrors() OVERRIDE { return false; }
+};
+
+class TestPasswordManagerDelegate : public PasswordManagerDelegate {
+ public:
+ explicit TestPasswordManagerDelegate(Profile* profile) : profile_(profile) {}
+
virtual void AddSavePasswordInfoBarIfPermitted(
PasswordFormManager* form_to_save) OVERRIDE {}
virtual Profile* GetProfile() OVERRIDE { return profile_; }
- virtual bool DidLastPageLoadEncounterSSLErrors() OVERRIDE { return false; }
+ virtual PasswordManagerDriver* GetDriver() OVERRIDE { return &driver_; }
private:
Profile* profile_;
+ TestPasswordManagerDriver driver_;
};
class TestPasswordManager : public PasswordManager {
« no previous file with comments | « no previous file | chrome/browser/password_manager/password_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698