#include "components/subresource_filter/content/shared/browser/child_frame_navigation_filtering_throttle.h"
#include <string>
#include <utility>
#include <vector>
#include "base/containers/contains.h"
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/strings/stringprintf.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/scoped_feature_list.h"
#include "child_frame_navigation_filtering_throttle.h"
#include "components/subresource_filter/content/shared/browser/child_frame_navigation_test_utils.h"
#include "components/subresource_filter/core/browser/async_document_subresource_filter.h"
#include "components/subresource_filter/core/browser/subresource_filter_constants.h"
#include "components/subresource_filter/core/mojom/subresource_filter.mojom.h"
#include "content/public/browser/navigation_handle.h"
#include "content/public/test/test_renderer_host.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
namespace subresource_filter {
class TestChildFrameNavigationFilteringThrottle
: public ChildFrameNavigationFilteringThrottle { … };
class ChildFrameNavigationFilteringThrottleTest
: public ChildFrameNavigationFilteringThrottleTestHarness { … };
TEST_F(ChildFrameNavigationFilteringThrottleTest, FilterOnStart) { … }
TEST_F(ChildFrameNavigationFilteringThrottleTest, FilterOnRedirect) { … }
TEST_F(ChildFrameNavigationFilteringThrottleTest, DryRunOnStart) { … }
TEST_F(ChildFrameNavigationFilteringThrottleTest, DryRunOnRedirect) { … }
TEST_F(ChildFrameNavigationFilteringThrottleTest, FilterOnSecondRedirect) { … }
TEST_F(ChildFrameNavigationFilteringThrottleTest, NeverFilterNonMatchingRule) { … }
TEST_F(ChildFrameNavigationFilteringThrottleTest, FilterSubsubframe) { … }
class ChildFrameNavigationFilteringThrottleDnsAliasTest
: public ChildFrameNavigationFilteringThrottleTest { … };
TEST_F(ChildFrameNavigationFilteringThrottleDnsAliasTest,
FilterOnWillProcessResponse) { … }
TEST_F(ChildFrameNavigationFilteringThrottleDnsAliasTest,
DryRunOnWillProcessResponse) { … }
TEST_F(ChildFrameNavigationFilteringThrottleDnsAliasTest, EnabledNoAliases) { … }
}