#include "third_party/blink/public/platform/web_document_subresource_filter.h"
#include "base/containers/contains.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/mojom/fetch/fetch_api_request.mojom-blink.h"
#include "third_party/blink/public/platform/web_cache.h"
#include "third_party/blink/public/web/web_document.h"
#include "third_party/blink/public/web/web_element.h"
#include "third_party/blink/public/web/web_local_frame.h"
#include "third_party/blink/renderer/core/dom/element.h"
#include "third_party/blink/renderer/core/frame/frame_test_helpers.h"
#include "third_party/blink/renderer/core/frame/web_local_frame_impl.h"
#include "third_party/blink/renderer/core/html/html_image_element.h"
#include "third_party/blink/renderer/platform/testing/task_environment.h"
#include "third_party/blink/renderer/platform/testing/unit_test_helpers.h"
#include "third_party/blink/renderer/platform/testing/url_loader_mock_factory.h"
#include "third_party/blink/renderer/platform/testing/url_test_helpers.h"
namespace blink {
namespace {
class TestDocumentSubresourceFilter : public WebDocumentSubresourceFilter { … };
class SubresourceFilteringWebFrameClient
: public frame_test_helpers::TestWebFrameClient { … };
}
class WebDocumentSubresourceFilterTest : public testing::Test { … };
TEST_F(WebDocumentSubresourceFilterTest, AllowedSubresource) { … }
TEST_F(WebDocumentSubresourceFilterTest, DisallowedSubresource) { … }
TEST_F(WebDocumentSubresourceFilterTest, FilteringDecisionIsMadeLoadByLoad) { … }
}