chromium/components/autofill/core/browser/form_autofill_history_unittest.cc

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

#include "components/autofill/core/browser/form_autofill_history.h"

#include <optional>
#include <string_view>
#include <vector>

#include "base/uuid.h"
#include "components/autofill/core/browser/autofill_field.h"
#include "components/autofill/core/browser/autofill_test_utils.h"
#include "components/autofill/core/browser/filling_product.h"
#include "components/autofill/core/common/autofill_constants.h"
#include "components/autofill/core/common/form_field_data.h"
#include "components/autofill/core/common/unique_ids.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace autofill {

namespace {

// ID of the dummy profile used for filling in tests.
const std::string kGuid =;

class FormAutofillHistoryTest : public testing::Test {};

// Tests the function FormAutofillHistory::AddFormFillEntry upon a normal fill.
TEST_F(FormAutofillHistoryTest, AddFormFillEntry_NormalFill) {}

// Tests the function FormAutofillHistory::AddFormFillEntry upon a refill.
TEST_F(FormAutofillHistoryTest, AddFormFillEntry_Refill) {}

// Tests how the function FormAutofillHistory::AddFormFillEntry clears values to
// remain within the size limit.
TEST_F(FormAutofillHistoryTest, AddFormFillEntry_HistoryLimit) {}

// Tests how the function FormAutofillHistory::AddFormFillEntry handles a form
// entry bigger than the history size limit.
TEST_F(FormAutofillHistoryTest, AddFormFillEntry_FormBiggerThanLimit) {}

// Tests how the function FormAutofillHistory::AddFormFillEntry reuses space
// after adding an empty form fill entry.
TEST_F(FormAutofillHistoryTest, AddFormFillEntry_ReuseEmptyFillEntries) {}

// Tests how the function FormAutofillHistory::AddFormFillEntry reuses space
// after adding an empty form fill entry.
TEST_F(FormAutofillHistoryTest, AddFormFillEntry_RefillOnEmptyHistory) {}

}  // namespace

}  // namespace autofill