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

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

Issue 563313004: [Password Manager] Unfriend PasswordAutofillAgentTest from PasswordAutofillAgent (clean-up). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Unfriend PasswordAutofillAgentTest and RequestAutocompleteRendererTest from AutofillAgent. Created 6 years, 3 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_autofill_agent.cc
diff --git a/components/autofill/content/renderer/test_autofill_agent.cc b/components/autofill/content/renderer/test_autofill_agent.cc
new file mode 100644
index 0000000000000000000000000000000000000000..ca76185a4853fb71aacbf61f5ce98bd1ba08f9fa
--- /dev/null
+++ b/components/autofill/content/renderer/test_autofill_agent.cc
@@ -0,0 +1,65 @@
+// Copyright 2013 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_autofill_agent.h"
+
+#include "components/autofill/content/renderer/password_autofill_agent.h"
+#include "components/autofill/content/renderer/password_generation_agent.h"
+#include "content/public/renderer/render_view.h"
+
+namespace autofill {
+
+TestAutofillAgent::TestAutofillAgent(
+ content::RenderView* render_view,
+ PasswordAutofillAgent* password_autofill_manager,
+ PasswordGenerationAgent* password_generation_agent)
+ : AutofillAgent(render_view,
+ password_autofill_manager,
+ password_generation_agent) {
+}
+
+TestAutofillAgent::~TestAutofillAgent() {
+}
+
+void TestAutofillAgent::textFieldDidEndEditing(
+ const blink::WebInputElement& element) {
+ AutofillAgent::textFieldDidEndEditing(element);
+}
+
+void TestAutofillAgent::textFieldDidChange(
+ const blink::WebFormControlElement& element) {
+ AutofillAgent::textFieldDidChange(element);
+}
+
+void TestAutofillAgent::FormControlElementClicked(
+ const blink::WebFormControlElement& element,
+ bool was_focused) {
+ AutofillAgent::FormControlElementClicked(element, was_focused);
+}
+
+void TestAutofillAgent::textFieldDidReceiveKeyDown(
+ const blink::WebInputElement& element,
+ const blink::WebKeyboardEvent& event) {
+ AutofillAgent::textFieldDidReceiveKeyDown(element, event);
+}
+
+void TestAutofillAgent::didRequestAutocomplete(
+ const blink::WebFormElement& form) {
+ AutofillAgent::didRequestAutocomplete(form);
+}
+
+void TestAutofillAgent::OnFillPasswordSuggestion(
+ const base::string16& username,
+ const base::string16& password) {
+ AutofillAgent::OnFillPasswordSuggestion(username, password);
+}
+
+void TestAutofillAgent::OnRequestAutocompleteResult(
+ blink::WebFormElement::AutocompleteResult result,
+ const base::string16& message,
+ const FormData& form_data) {
+ AutofillAgent::OnRequestAutocompleteResult(result, message, form_data);
+}
+
+} // namespace autofill

Powered by Google App Engine
This is Rietveld 408576698