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::RenderView
* render_view
)
11 : PasswordGenerationAgent(render_view
) {
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(
24 const blink::WebDocument
& document
) const {
28 bool TestPasswordGenerationAgent::Send(IPC::Message
* message
) {
29 messages_
.push_back(message
);
33 } // namespace autofill