#include "components/blocklist/opt_out_blocklist/sql/opt_out_store_sql.h"
#include <map>
#include <memory>
#include <string>
#include "base/command_line.h"
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/functional/bind.h"
#include "base/run_loop.h"
#include "base/strings/string_number_conversions.h"
#include "base/task/single_thread_task_runner.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/simple_test_clock.h"
#include "base/test/task_environment.h"
#include "base/time/time.h"
#include "components/blocklist/opt_out_blocklist/opt_out_blocklist_data.h"
#include "components/blocklist/opt_out_blocklist/opt_out_blocklist_item.h"
#include "components/blocklist/opt_out_blocklist/opt_out_store.h"
#include "sql/test/test_helpers.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace blocklist {
namespace {
const base::FilePath::CharType kOptOutFilename[] = …);
}
class OptOutStoreSQLTest : public testing::Test { … };
TEST_F(OptOutStoreSQLTest, TestErrorRecovery) { … }
TEST_F(OptOutStoreSQLTest, TestPersistance) { … }
TEST_F(OptOutStoreSQLTest, TestMaxRows) { … }
TEST_F(OptOutStoreSQLTest, TestMaxRowsPerHost) { … }
TEST_F(OptOutStoreSQLTest, TestTypesVersionUpdateClearsBlocklistEntry) { … }
}