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