#ifndef COMPONENTS_AUTOFILL_CONTENT_RENDERER_TEST_UTILS_H_
#define COMPONENTS_AUTOFILL_CONTENT_RENDERER_TEST_UTILS_H_
#include <concepts>
#include <string_view>
#include "base/types/strong_alias.h"
#include "components/autofill/core/common/unique_ids.h"
#include "third_party/blink/public/web/web_element.h"
#include "third_party/blink/public/web/web_form_control_element.h"
#include "third_party/blink/public/web/web_form_element.h"
namespace blink {
class WebDocument;
class WebNode;
}
namespace content {
class RenderFrame;
}
namespace autofill {
namespace internal {
SupportsLookupById;
}
AllowNull;
blink::WebElement GetElementById(const blink::WebDocument& doc,
std::string_view id,
AllowNull allow_null = AllowNull(false));
blink::WebElement GetElementById(const blink::WebNode& node,
std::string_view id,
AllowNull allow_null = AllowNull(false));
template <typename T>
requires(internal::SupportsLookupById<T>)
blink::WebFormControlElement GetFormControlElementById(
const T& t,
std::string_view id,
AllowNull allow_null = AllowNull(false)) { … }
template <typename T>
requires(internal::SupportsLookupById<T>)
blink::WebFormElement GetFormElementById(
const T& t,
std::string_view id,
AllowNull allow_null = AllowNull(false)) { … }
content::RenderFrame* GetIframeById(const blink::WebDocument& doc,
std::string_view id,
AllowNull allow_null = AllowNull(false));
FrameToken GetFrameToken(const blink::WebDocument& doc,
std::string_view id,
AllowNull allow_null = AllowNull(false));
int AskForValuesToFillCallsOnFocusChangeByClickOrTap();
}
#endif