chromium/components/subresource_filter/content/browser/subresource_filter_unittest.cc

// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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[] =;

}  // namespace

TEST_F(SubresourceFilterTest, SimpleAllowedLoad) {}

TEST_F(SubresourceFilterTest, SimpleDisallowedLoad) {}

TEST_F(SubresourceFilterTest, DeactivateUrl_ChangeSiteActivationToFalse) {}

// If the underlying configuration changes and a site only activates to DRYRUN,
// we should clear the metadata.
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) {}

}  // namespace subresource_filter