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

Unified Diff: chrome/browser/ui/passwords/password_manager_presenter_unittest.cc

Issue 34393007: [Win] Add option to reauthenticate the OS user before revealing passwords. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@password
Patch Set: remove GetNativeWindow from OS_ANDROID Created 7 years 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
Index: chrome/browser/ui/passwords/password_manager_presenter_unittest.cc
diff --git a/chrome/browser/ui/passwords/password_manager_presenter_unittest.cc b/chrome/browser/ui/passwords/password_manager_presenter_unittest.cc
index 6155909f6ceb40813ebd7075a1a53621acc2bcd1..eb77470daf2040df321941a18978e3356f797b90 100644
--- a/chrome/browser/ui/passwords/password_manager_presenter_unittest.cc
+++ b/chrome/browser/ui/passwords/password_manager_presenter_unittest.cc
@@ -23,6 +23,9 @@ class MockPasswordUIView : public PasswordUIView {
}
virtual ~MockPasswordUIView() {}
virtual Profile* GetProfile() OVERRIDE;
+#if !defined(OS_ANDROID)
+ virtual gfx::NativeWindow GetNativeWindow() OVERRIDE;
+#endif
MOCK_METHOD2(ShowPassword, void(size_t, const string16&));
MOCK_METHOD2(SetPasswordList,
void(const ScopedVector<autofill::PasswordForm>&, bool));
@@ -39,6 +42,9 @@ class MockPasswordUIView : public PasswordUIView {
DISALLOW_COPY_AND_ASSIGN(MockPasswordUIView);
};
+#if !defined(OS_ANDROID)
+gfx::NativeWindow MockPasswordUIView::GetNativeWindow() { return NULL; }
+#endif
Profile* MockPasswordUIView::GetProfile() { return profile_; }
class PasswordManagerPresenterTest : public testing::Test {
« no previous file with comments | « chrome/browser/ui/passwords/password_manager_presenter.cc ('k') | chrome/browser/ui/passwords/password_ui_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698