#include "components/subresource_filter/core/common/document_subresource_filter.h"
#include <string_view>
#include "base/files/file.h"
#include "components/subresource_filter/core/common/memory_mapped_ruleset.h"
#include "components/subresource_filter/core/common/test_ruleset_creator.h"
#include "components/subresource_filter/core/common/test_ruleset_utils.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
#include "url/origin.h"
namespace subresource_filter {
proto;
namespace {
constexpr auto kDryRun = …;
constexpr auto kEnabled = …;
constexpr auto kImageType = …;
constexpr auto kSubdocumentType = …;
constexpr const char kTestAlphaURL[] = …;
constexpr const char kTestAlphaDataURI[] = …;
constexpr const char kTestAlphaWSURI[] = …;
constexpr const char kTestBetaURL[] = …;
constexpr const char kTestAlphaURLPathSuffix[] = …;
}
class DocumentSubresourceFilterTest : public ::testing::Test { … };
TEST_F(DocumentSubresourceFilterTest, DryRun) { … }
TEST_F(DocumentSubresourceFilterTest, MatchingRuleDryRun) { … }
TEST_F(DocumentSubresourceFilterTest, Enabled) { … }
TEST_F(DocumentSubresourceFilterTest, MatchingRuleEnabled) { … }
}