chromium/third_party/blink/renderer/core/html/parser/text_resource_decoder_test.cc

// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/351564777): Remove this and convert code to safer constructs.
#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) {}

}  // namespace

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) {}

}  // namespace blink