#include "third_party/blink/public/web/web_frame_serializer.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/platform/web_string.h"
#include "third_party/blink/public/platform/web_url.h"
#include "third_party/blink/renderer/core/dom/shadow_root.h"
#include "third_party/blink/renderer/core/exported/web_frame_serializer_test_helper.h"
#include "third_party/blink/renderer/core/exported/web_view_impl.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/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"
#include "third_party/blink/renderer/platform/weborigin/kurl.h"
namespace blink {
namespace {
int MatchSubstring(const String& str, const char* pattern, wtf_size_t size) { … }
}
class WebFrameSerializerSanitizationTest : public testing::Test { … };
TEST_F(WebFrameSerializerSanitizationTest, RemoveInlineScriptInAttributes) { … }
TEST_F(WebFrameSerializerSanitizationTest, RemoveOtherAttributes) { … }
TEST_F(WebFrameSerializerSanitizationTest, RemoveHiddenElements) { … }
TEST_F(WebFrameSerializerSanitizationTest, RemoveIframeInHead) { … }
TEST_F(WebFrameSerializerSanitizationTest, FromBrokenImageDocument) { … }
TEST_F(WebFrameSerializerSanitizationTest, ImageLoadedFromSrcsetForHiDPI) { … }
TEST_F(WebFrameSerializerSanitizationTest, ImageLoadedFromSrcForNormalDPI) { … }
TEST_F(WebFrameSerializerSanitizationTest, RemovePopupOverlayIfRequested) { … }
TEST_F(WebFrameSerializerSanitizationTest, PopupOverlayNotFound) { … }
TEST_F(WebFrameSerializerSanitizationTest, KeepPopupOverlayIfNotRequested) { … }
TEST_F(WebFrameSerializerSanitizationTest, LinkIntegrity) { … }
TEST_F(WebFrameSerializerSanitizationTest, RemoveElements) { … }
TEST_F(WebFrameSerializerSanitizationTest, ShadowDOM) { … }
TEST_F(WebFrameSerializerSanitizationTest, StyleElementsWithDynamicCSS) { … }
TEST_F(WebFrameSerializerSanitizationTest, PictureElement) { … }
TEST_F(WebFrameSerializerSanitizationTest, ImageInPluginElement) { … }
}