| 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
|
|
|