chromium/components/autofill/core/browser/strike_databases/simple_autofill_strike_database_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/strike_databases/simple_autofill_strike_database.h"

#include <memory>
#include <string>

#include "base/files/scoped_temp_dir.h"
#include "base/strings/to_string.h"
#include "base/test/task_environment.h"
#include "components/autofill/core/browser/proto/strike_data.pb.h"
#include "components/autofill/core/browser/strike_databases/strike_database_integrator_test_strike_database.h"
#include "components/leveldb_proto/public/proto_database_provider.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace autofill {

namespace {

struct TestStrikeDatabaseTraits {};

TestStrikeDatabase;

class SimpleAutofillStrikeDatabaseTest : public ::testing::Test {};

// Tests that strikes can be added and removed, and that depending on the
// `kMaxStrikeLimit`, the feature is considered blocked.
TEST_F(SimpleAutofillStrikeDatabaseTest, AddAndRemoveStrikes) {}

// Tests that when too many strikes are added, the oldest strikes are cleared.
TEST_F(SimpleAutofillStrikeDatabaseTest, MaxEntries) {}

}  // namespace

}  // namespace autofill