Clean up extension confirmation prompts and make them consistent between Views and...
[chromium-blink-merge.git] / components / autofill / content / renderer / test_password_generation_agent.cc
blob36e33863fc41c50085d9d388885b00b305c3ff28
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"
7 namespace autofill {
9 TestPasswordGenerationAgent::TestPasswordGenerationAgent(
10 content::RenderFrame* render_frame, PasswordAutofillAgent* password_agent)
11 : PasswordGenerationAgent(render_frame, password_agent) {
12 // Always enable when testing.
13 set_enabled(true);
16 TestPasswordGenerationAgent::~TestPasswordGenerationAgent() {}
18 bool TestPasswordGenerationAgent::OnMessageReceived(
19 const IPC::Message& message) {
20 return PasswordGenerationAgent::OnMessageReceived(message);
23 bool TestPasswordGenerationAgent::ShouldAnalyzeDocument() const {
24 return true;
27 bool TestPasswordGenerationAgent::Send(IPC::Message* message) {
28 messages_.push_back(message);
29 return true;
32 } // namespace autofill