chromium/chrome/renderer/autofill/autofill_renderer_browsertest.cc

// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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) {}

// Regression test for [ http://crbug.com/346010 ].
// Shouldn't crash.
TEST_F(AutofillRendererTest, DontCrashWhileAssociatingForms) {}

TEST_F(AutofillRendererTest, DynamicallyAddedUnownedFormElements) {}

TEST_F(AutofillRendererTest, IgnoreNonUserGestureTextFieldChanges) {}

}  // namespace

}  // namespace autofill