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 #include "components/autofill/content/renderer/test_password_generation_agent.h"
9 TestPasswordGenerationAgent::TestPasswordGenerationAgent(
10 content::RenderFrame
* render_frame
, PasswordAutofillAgent
* password_agent
)
11 : PasswordGenerationAgent(render_frame
, password_agent
) {
12 // Always enable when testing.
16 TestPasswordGenerationAgent::~TestPasswordGenerationAgent() {}
18 bool TestPasswordGenerationAgent::OnMessageReceived(
19 const IPC::Message
& message
) {
20 return PasswordGenerationAgent::OnMessageReceived(message
);
23 bool TestPasswordGenerationAgent::ShouldAnalyzeDocument() const {
27 bool TestPasswordGenerationAgent::Send(IPC::Message
* message
) {
28 messages_
.push_back(message
);
32 } // namespace autofill