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

Side by Side Diff: components/autofill/content/renderer/test_password_autofill_agent.h

Issue 563313004: [Password Manager] Unfriend PasswordAutofillAgentTest from PasswordAutofillAgent (clean-up). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Unfriend PasswordAutofillAgentTest and RequestAutocompleteRendererTest from AutofillAgent. Created 6 years, 3 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 COMPONENTS_AUTOFILL_CONTENT_RENDERER_TEST_PASSWORD_AUTOFILL_AGENT_H_ 5 #ifndef COMPONENTS_AUTOFILL_CONTENT_RENDERER_TEST_PASSWORD_AUTOFILL_AGENT_H_
6 #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_TEST_PASSWORD_AUTOFILL_AGENT_H_ 6 #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_TEST_PASSWORD_AUTOFILL_AGENT_H_
7 7
8 #include "components/autofill/content/renderer/password_autofill_agent.h" 8 #include "components/autofill/content/renderer/password_autofill_agent.h"
9 9
10 namespace autofill { 10 namespace autofill {
11 11
12 class TestPasswordAutofillAgent : public PasswordAutofillAgent { 12 class TestPasswordAutofillAgent : public PasswordAutofillAgent {
13 public: 13 public:
14 explicit TestPasswordAutofillAgent(content::RenderView* render_view); 14 explicit TestPasswordAutofillAgent(content::RenderView* render_view);
15 virtual ~TestPasswordAutofillAgent(); 15 virtual ~TestPasswordAutofillAgent();
16 16
17 // PasswordAutofillAgent:
18 virtual void SendPasswordForms(blink::WebFrame* frame,
19 bool only_visible) OVERRIDE;
20 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
21 virtual void WillSubmitForm(blink::WebLocalFrame* frame,
22 const blink::WebFormElement& form) OVERRIDE;
23
17 private: 24 private:
18 // Always returns true. This allows browser tests with "data: " URL scheme to 25 // Always returns true. This allows browser tests with "data: " URL scheme to
19 // work with the password manager. 26 // work with the password manager.
20 // PasswordAutofillAgent: 27 // PasswordAutofillAgent:
21 virtual bool OriginCanAccessPasswordManager( 28 virtual bool OriginCanAccessPasswordManager(
22 const blink::WebSecurityOrigin& origin) OVERRIDE; 29 const blink::WebSecurityOrigin& origin) OVERRIDE;
23 }; 30 };
24 31
25 } // namespace autofill 32 } // namespace autofill
26 33
27 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_TEST_PASSWORD_AUTOFILL_AGENT_H_ 34 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_TEST_PASSWORD_AUTOFILL_AGENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698