// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_ANDROID_AUTOFILL_BROWSER_TEST_AUTOFILL_PROVIDER_H_
#define COMPONENTS_ANDROID_AUTOFILL_BROWSER_TEST_AUTOFILL_PROVIDER_H_
#include "components/android_autofill/browser/autofill_provider.h"
#include "content/public/browser/web_contents.h"
namespace autofill {
class TestAutofillProvider : public AutofillProvider {
public:
explicit TestAutofillProvider(content::WebContents* web_contents)
: AutofillProvider(web_contents) {}
~TestAutofillProvider() override = default;
// AutofillProvider:
void OnAskForValuesToFill(
AndroidAutofillManager* manager,
const FormData& form,
const FormFieldData& field,
AutofillSuggestionTriggerSource trigger_source) override {}
void OnTextFieldDidChange(AndroidAutofillManager* manager,
const FormData& form,
const FormFieldData& field,
const base::TimeTicks timestamp) override {}
void OnTextFieldDidScroll(AndroidAutofillManager* manager,
const FormData& form,
const FormFieldData& field) override {}
void OnSelectControlDidChange(AndroidAutofillManager* manager,
const FormData& form,
const FormFieldData& field) override {}
void OnFormSubmitted(AndroidAutofillManager* manager,
const FormData& form,
bool known_success,
mojom::SubmissionSource source) override {}
void OnFocusOnNonFormField(AndroidAutofillManager* manager) override {}
void OnFocusOnFormField(AndroidAutofillManager* manager,
const FormData& form,
const FormFieldData& field) override {}
void OnDidFillAutofillFormData(AndroidAutofillManager* manager,
const FormData& form,
base::TimeTicks timestamp) override {}
void OnHidePopup(AndroidAutofillManager* manager) override {}
void OnServerPredictionsAvailable(AndroidAutofillManager&,
FormGlobalId form) override {}
void OnManagerResetOrDestroyed(AndroidAutofillManager* manager) override {}
bool GetCachedIsAutofilled(const FormFieldData& field) const override;
};
} // namespace autofill
#endif // COMPONENTS_ANDROID_AUTOFILL_BROWSER_TEST_AUTOFILL_PROVIDER_H_