chromium/chrome/browser/component_updater/afp_blocked_domain_list_component_installer_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 "chrome/browser/component_updater/afp_blocked_domain_list_component_installer.h"

#include "base/check.h"
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/memory/raw_ptr.h"
#include "base/test/scoped_feature_list.h"
#include "base/version.h"
#include "chrome/common/chrome_features.h"
#include "chrome/test/base/testing_browser_process.h"
#include "components/component_updater/mock_component_updater_service.h"
#include "components/fingerprinting_protection_filter/browser/fingerprinting_protection_ruleset_publisher.h"
#include "components/fingerprinting_protection_filter/common/fingerprinting_protection_filter_constants.h"
#include "components/fingerprinting_protection_filter/common/fingerprinting_protection_filter_features.h"
#include "components/prefs/testing_pref_service.h"
#include "components/subresource_filter/content/browser/safe_browsing_ruleset_publisher.h"
#include "components/subresource_filter/content/shared/browser/ruleset_publisher.h"
#include "components/subresource_filter/content/shared/browser/ruleset_service.h"
#include "components/subresource_filter/core/browser/ruleset_version.h"
#include "components/subresource_filter/core/browser/subresource_filter_constants.h"
#include "content/public/test/browser_task_environment.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/platform_test.h"

namespace {

_;

constexpr char kTestRulesetVersion[] =;

class TestRulesetService : public subresource_filter::RulesetService {};

}  // namespace

namespace component_updater {

class AntiFingerprintingBlockedDomainListComponentInstallerTest
    : public PlatformTest {};

TEST_F(AntiFingerprintingBlockedDomainListComponentInstallerTest,
       ComponentRegistration_FeatureEnabled) {}

TEST_F(AntiFingerprintingBlockedDomainListComponentInstallerTest,
       ComponentRegistration_FeatureDisabled) {}

TEST_F(AntiFingerprintingBlockedDomainListComponentInstallerTest,
       LoadRuleset_Empty) {}

TEST_F(AntiFingerprintingBlockedDomainListComponentInstallerTest,
       LoadRuleset_WithData) {}

}  // namespace component_updater