1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "components/autofill/core/browser/test_autofill_external_delegate.h"
7 #include "ui/gfx/geometry/rect.h"
11 void GenerateTestAutofillPopup(
12 AutofillExternalDelegate
* autofill_external_delegate
) {
16 field
.is_focusable
= true;
17 field
.should_autocomplete
= true;
18 gfx::RectF
bounds(100.f
, 100.f
);
19 autofill_external_delegate
->OnQuery(query_id
, form
, field
, bounds
, false);
21 std::vector
<Suggestion
> suggestions
;
22 suggestions
.push_back(Suggestion());
23 autofill_external_delegate
->OnSuggestionsReturned(query_id
, suggestions
);
26 } // namespace autofill