1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef COMPONENTS_AUTOFILL_CONTENT_RENDERER_TEST_PASSWORD_GENERATION_AGENT_H_
6 #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_TEST_PASSWORD_GENERATION_AGENT_H_
10 #include "base/memory/scoped_vector.h"
11 #include "components/autofill/content/renderer/password_generation_agent.h"
12 #include "ipc/ipc_message.h"
16 class TestPasswordGenerationAgent
: public PasswordGenerationAgent
{
18 TestPasswordGenerationAgent(content::RenderFrame
* render_frame
,
19 PasswordAutofillAgent
* password_agent
);
20 ~TestPasswordGenerationAgent() override
;
22 // content::RenderFrameObserver implementation:
23 bool OnMessageReceived(const IPC::Message
& message
) override
;
25 // PasswordGenreationAgent implementation:
26 // Always return true to allow loading of data URLs.
27 bool ShouldAnalyzeDocument() const override
;
30 DISALLOW_COPY_AND_ASSIGN(TestPasswordGenerationAgent
);
33 } // namespace autofill
35 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_TEST_PASSWORD_AUTOFILL_AGENT_H_