Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Unified Diff: components/autofill/content/renderer/test_password_generation_agent.cc

Issue 151503006: Re-land r248110 with ASAN error fixed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Punctuation Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/autofill/content/renderer/test_password_generation_agent.cc
diff --git a/components/autofill/content/renderer/test_password_generation_agent.cc b/components/autofill/content/renderer/test_password_generation_agent.cc
new file mode 100644
index 0000000000000000000000000000000000000000..2e4adb9b270d78611bcf3a3b12ce2aecc1b36731
--- /dev/null
+++ b/components/autofill/content/renderer/test_password_generation_agent.cc
@@ -0,0 +1,33 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "components/autofill/content/renderer/test_password_generation_agent.h"
+
+namespace autofill {
+
+TestPasswordGenerationAgent::TestPasswordGenerationAgent(
+ content::RenderView* render_view)
+ : PasswordGenerationAgent(render_view) {
+ // Always enable when testing.
+ set_enabled(true);
+}
+
+TestPasswordGenerationAgent::~TestPasswordGenerationAgent() {}
+
+bool TestPasswordGenerationAgent::OnMessageReceived(
+ const IPC::Message& message) {
+ return PasswordGenerationAgent::OnMessageReceived(message);
+}
+
+bool TestPasswordGenerationAgent::ShouldAnalyzeDocument(
+ const blink::WebDocument& document) const {
+ return true;
+}
+
+bool TestPasswordGenerationAgent::Send(IPC::Message* message) {
+ messages_.push_back(message);
+ return true;
+}
+
+} // namespace autofill

Powered by Google App Engine
This is Rietveld 408576698