#include "base/base_paths.h"
#include "base/files/file_util.h"
#include "base/path_service.h"
#include "base/strings/utf_string_conversions.h"
#include "components/autofill/content/renderer/autofill_renderer_test.h"
#include "components/autofill/core/common/form_data.h"
#include "components/autofill/core/common/form_field_data.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/web/web_input_element.h"
#include "third_party/blink/public/web/web_view.h"
_;
AllOf;
AtLeast;
ElementsAre;
Field;
IsEmpty;
Property;
ResultOf;
SizeIs;
Truly;
namespace autofill {
namespace {
auto FormField(
const std::string& name,
const std::string& value = "",
FormControlType form_control_type = FormControlType::kInputText) { … }
auto FormWithFields(auto matcher) {
return ElementsAre(Property(&FormData::fields, matcher));
}
auto Nth(int index, auto matcher) {
return ResultOf(
base::StringPrintf("array[%d]", index),
[index](auto& container) { return container[index]; }, matcher);
}
AutofillRendererTest;
TEST_F(AutofillRendererTest, SendForms) { … }
TEST_F(AutofillRendererTest, DontCrashWhileAssociatingForms) { … }
TEST_F(AutofillRendererTest, DynamicallyAddedUnownedFormElements) { … }
TEST_F(AutofillRendererTest, IgnoreNonUserGestureTextFieldChanges) { … }
}
}