#include "components/autofill/core/browser/test_autofill_external_delegate.h"
#include "base/format_macros.h"
#include "base/strings/stringprintf.h"
#include "components/autofill/core/browser/metrics/suggestions_list_metrics.h"
#include "components/autofill/core/browser/ui/suggestion.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/geometry/rect_f.h"
namespace autofill {
TestAutofillExternalDelegate::TestAutofillExternalDelegate(
BrowserAutofillManager* autofill_manager,
bool call_parent_methods)
: … { … }
TestAutofillExternalDelegate::~TestAutofillExternalDelegate() = default;
void TestAutofillExternalDelegate::OnSuggestionsShown() { … }
void TestAutofillExternalDelegate::OnSuggestionsHidden() { … }
void TestAutofillExternalDelegate::OnQuery(
const FormData& form,
const FormFieldData& field,
const gfx::Rect& caret_bounds,
AutofillSuggestionTriggerSource trigger_source) { … }
void TestAutofillExternalDelegate::OnSuggestionsReturned(
FieldGlobalId field_id,
const std::vector<Suggestion>& suggestions,
std::optional<autofill_metrics::SuggestionRankingContext>
suggestion_ranking_context) { … }
bool TestAutofillExternalDelegate::HasActiveScreenReader() const { … }
void TestAutofillExternalDelegate::OnAutofillAvailabilityEvent(
mojom::AutofillSuggestionAvailability suggestion_availability) { … }
void TestAutofillExternalDelegate::WaitForPopupHidden() { … }
void TestAutofillExternalDelegate::CheckSuggestions(
FieldGlobalId field_id,
const std::vector<Suggestion>& expected_suggestions) { … }
void TestAutofillExternalDelegate::CheckSuggestionsNotReturned(
FieldGlobalId field_id) { … }
void TestAutofillExternalDelegate::CheckNoSuggestions(FieldGlobalId field_id) { … }
void TestAutofillExternalDelegate::CheckSuggestionCount(
FieldGlobalId field_id,
size_t expected_num_suggestions) { … }
const std::vector<Suggestion>& TestAutofillExternalDelegate::suggestions()
const { … }
bool TestAutofillExternalDelegate::on_query_seen() const { … }
bool TestAutofillExternalDelegate::on_suggestions_returned_seen() const { … }
AutofillSuggestionTriggerSource TestAutofillExternalDelegate::trigger_source()
const { … }
bool TestAutofillExternalDelegate::popup_hidden() const { … }
void TestAutofillExternalDelegate::set_has_active_screen_reader(
bool has_active_screen_reader) { … }
bool TestAutofillExternalDelegate::has_suggestions_available_on_field_focus()
const { … }
}