#include <utility>
#include "base/test/metrics/histogram_tester.h"
#include "base/test/scoped_feature_list.h"
#include "components/safe_browsing/core/browser/db/util.h"
#include "components/safe_browsing/core/browser/db/v4_protocol_manager_util.h"
#include "components/subresource_filter/content/browser/content_activation_list_utils.h"
#include "components/subresource_filter/content/browser/content_subresource_filter_throttle_manager.h"
#include "components/subresource_filter/content/browser/fake_safe_browsing_database_manager.h"
#include "components/subresource_filter/content/browser/subresource_filter_content_settings_manager.h"
#include "components/subresource_filter/content/browser/subresource_filter_observer_test_utils.h"
#include "components/subresource_filter/content/browser/subresource_filter_test_harness.h"
#include "components/subresource_filter/core/browser/subresource_filter_features.h"
#include "components/subresource_filter/core/browser/subresource_filter_features_test_support.h"
#include "components/subresource_filter/core/common/activation_decision.h"
#include "components/subresource_filter/core/common/activation_list.h"
#include "components/subresource_filter/core/common/activation_scope.h"
#include "components/subresource_filter/core/common/load_policy.h"
#include "components/subresource_filter/core/mojom/subresource_filter.mojom.h"
#include "content/public/browser/devtools_agent_host.h"
#include "content/public/test/test_navigation_observer.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
namespace subresource_filter {
class SubresourceFilterTest : public SubresourceFilterTestHarness { … };
namespace {
const char kSubresourceFilterActionsHistogram[] = …;
}
TEST_F(SubresourceFilterTest, SimpleAllowedLoad) { … }
TEST_F(SubresourceFilterTest, SimpleDisallowedLoad) { … }
TEST_F(SubresourceFilterTest, DeactivateUrl_ChangeSiteActivationToFalse) { … }
TEST_F(SubresourceFilterTest, ActivationToDryRun_ChangeSiteActivationToFalse) { … }
TEST_F(SubresourceFilterTest,
ExplicitAllowlisting_ShouldNotChangeSiteActivation) { … }
TEST_F(SubresourceFilterTest, SimpleAllowedLoad_WithObserver) { … }
TEST_F(SubresourceFilterTest, SimpleDisallowedLoad_WithObserver) { … }
TEST_F(SubresourceFilterTest, RefreshMetadataOnActivation) { … }
enum class AdBlockOnAbusiveSitesTest { … };
TEST_F(SubresourceFilterTest, NotifySafeBrowsing) { … }
TEST_F(SubresourceFilterTest, WarningSite_NoMetadata) { … }
}