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

Unified Diff: components/autofill/content/renderer/password_autofill_agent.h

Issue 258473005: Add a unittest for PasswordAutofillAgent (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 6 years, 8 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 | components/autofill/content/renderer/password_autofill_agent.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autofill/content/renderer/password_autofill_agent.h
diff --git a/components/autofill/content/renderer/password_autofill_agent.h b/components/autofill/content/renderer/password_autofill_agent.h
index 24a7aa9099f7f7e37200b66cc1db11d9f4b64e14..0436b270ad022c058343a23415c6bb0793b95050 100644
--- a/components/autofill/content/renderer/password_autofill_agent.h
+++ b/components/autofill/content/renderer/password_autofill_agent.h
@@ -27,6 +27,7 @@ namespace autofill {
// There is one PasswordAutofillAgent per RenderView.
class PasswordAutofillAgent : public content::RenderViewObserver {
public:
+ // In unit tests, |render_view| can be NULL.
explicit PasswordAutofillAgent(content::RenderView* render_view);
virtual ~PasswordAutofillAgent();
@@ -64,6 +65,9 @@ class PasswordAutofillAgent : public content::RenderViewObserver {
virtual bool OriginCanAccessPasswordManager(
const blink::WebSecurityOrigin& origin);
+ // Only for tests.
+ bool logging_state_active() { return logging_state_active_; }
+
private:
friend class PasswordAutofillAgentTest;
« no previous file with comments | « no previous file | components/autofill/content/renderer/password_autofill_agent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698