#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "third_party/blink/renderer/core/html/parser/text_resource_decoder.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/platform/testing/task_environment.h"
namespace blink {
namespace {
String DecodeByteByByte(TextResourceDecoder& decoder,
base::span<const uint8_t> data) { … }
}
TEST(TextResourceDecoderTest, UTF8Decode) { … }
TEST(TextResourceDecoderTest, UTF8DecodeWithoutBOM) { … }
TEST(TextResourceDecoderTest, BasicUTF16) { … }
TEST(TextResourceDecoderTest, BrokenBOMs) { … }
TEST(TextResourceDecoderTest, UTF8DecodePieces) { … }
TEST(TextResourceDecoderTest, UTF16Pieces) { … }
TEST(TextResourceDecoderTest, XMLDeclPieces) { … }
TEST(TextResourceDecoderTest, CSSCharsetPieces) { … }
TEST(TextResourceDecoderTest, ContentSniffingStopsAfterSuccess) { … }
}