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

Side by Side Diff: chrome/browser/password_manager/password_manager_test_base.h

Issue 2900983002: Ignore form action URL when determine if a credential should be autofilled. (Closed)
Patch Set: comments and tests Created 3 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_TEST_BASE_H_ 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_TEST_BASE_H_
6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_TEST_BASE_H_ 6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_TEST_BASE_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 // |web_contents| must be the custom one returned by 87 // |web_contents| must be the custom one returned by
88 // PasswordManagerBrowserTestBase. 88 // PasswordManagerBrowserTestBase.
89 void WaitForAccountChooser() const; 89 void WaitForAccountChooser() const;
90 90
91 // Returns once the UI controller is in the management state due to matching 91 // Returns once the UI controller is in the management state due to matching
92 // credentials autofilled. 92 // credentials autofilled.
93 // |web_contents| must be the custom one returned by 93 // |web_contents| must be the custom one returned by
94 // PasswordManagerBrowserTestBase. 94 // PasswordManagerBrowserTestBase.
95 void WaitForManagementState() const; 95 void WaitForManagementState() const;
96 96
97 // Returns once the save prompt pops up or it's already shown.
98 // |web_contents| must be the custom one returned by
99 // PasswordManagerBrowserTestBase.
100 void WaitForSavePrompt() const;
101
97 private: 102 private:
98 ManagePasswordsUIController* const passwords_ui_controller_; 103 ManagePasswordsUIController* const passwords_ui_controller_;
99 104
100 DISALLOW_COPY_AND_ASSIGN(BubbleObserver); 105 DISALLOW_COPY_AND_ASSIGN(BubbleObserver);
101 }; 106 };
102 107
103 class PasswordManagerBrowserTestBase : public InProcessBrowserTest { 108 class PasswordManagerBrowserTestBase : public InProcessBrowserTest {
104 public: 109 public:
105 PasswordManagerBrowserTestBase(); 110 PasswordManagerBrowserTestBase();
106 ~PasswordManagerBrowserTestBase() override; 111 ~PasswordManagerBrowserTestBase() override;
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 168
164 private: 169 private:
165 net::EmbeddedTestServer https_test_server_; 170 net::EmbeddedTestServer https_test_server_;
166 net::MockCertVerifier mock_cert_verifier_; 171 net::MockCertVerifier mock_cert_verifier_;
167 // A tab with some hooks injected. 172 // A tab with some hooks injected.
168 content::WebContents* web_contents_; 173 content::WebContents* web_contents_;
169 DISALLOW_COPY_AND_ASSIGN(PasswordManagerBrowserTestBase); 174 DISALLOW_COPY_AND_ASSIGN(PasswordManagerBrowserTestBase);
170 }; 175 };
171 176
172 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_TEST_BASE_H_ 177 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_TEST_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698