#include "third_party/blink/renderer/core/html/parser/text_resource_decoder_builder.h"
#include <memory>
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/core/dom/document.h"
#include "third_party/blink/renderer/core/testing/dummy_page_holder.h"
#include "third_party/blink/renderer/platform/testing/task_environment.h"
namespace blink {
static const WTF::TextEncoding DefaultEncodingForUrlAndContentType(
const char* url,
const char* content_type) { … }
static const WTF::TextEncoding DefaultEncodingForURL(const char* url) { … }
TEST(TextResourceDecoderBuilderTest, defaultEncodingForJsonIsUTF8) { … }
TEST(TextResourceDecoderBuilderTest, defaultEncodingComesFromTopLevelDomain) { … }
TEST(TextResourceDecoderBuilderTest,
NoCountryDomainURLDefaultsToLatin1Encoding) { … }
}