Add diagnostics_writer.cc to the list of files allowed to printf.
[chromium-blink-merge.git] / components / autofill / content / renderer / test_password_generation_agent.cc
blob2e4adb9b270d78611bcf3a3b12ce2aecc1b36731
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::RenderView* render_view)
11 : PasswordGenerationAgent(render_view) {
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(
24 const blink::WebDocument& document) const {
25 return true;
28 bool TestPasswordGenerationAgent::Send(IPC::Message* message) {
29 messages_.push_back(message);
30 return true;
33 } // namespace autofill