#include "third_party/blink/renderer/platform/mhtml/mhtml_archive.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/time/time.h"
#include "build/build_config.h"
#include "services/network/public/cpp/is_potentially_trustworthy.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/mojom/loader/mhtml_load_result.mojom-blink.h"
#include "third_party/blink/renderer/platform/mhtml/mhtml_parser.h"
#include "third_party/blink/renderer/platform/mhtml/serialized_resource.h"
#include "third_party/blink/renderer/platform/testing/testing_platform_support.h"
#include "third_party/blink/renderer/platform/testing/unit_test_helpers.h"
#include "third_party/blink/renderer/platform/testing/url_test_helpers.h"
#include "third_party/blink/renderer/platform/text/date_components.h"
#include "third_party/blink/renderer/platform/weborigin/kurl.h"
#include "third_party/blink/renderer/platform/weborigin/scheme_registry.h"
#include "third_party/blink/renderer/platform/wtf/shared_buffer.h"
#include "third_party/blink/renderer/platform/wtf/text/string_builder.h"
MHTMLLoadResult;
ToKURL;
namespace blink {
namespace test {
namespace {
const char kEndOfPartBoundary[] = …;
const char kEndOfDocumentBoundary[] = …;
}
class MHTMLArchiveTest : public testing::Test { … };
TEST_F(MHTMLArchiveTest,
TestMHTMLHeadersWithTitleContainingAllPrintableCharacters) { … }
TEST_F(MHTMLArchiveTest,
TestMHTMLHeadersWithTitleContainingNonPrintableCharacters) { … }
TEST_F(MHTMLArchiveTest,
TestMHTMLHeadersWithLongTitleContainingNonPrintableCharacters) { … }
TEST_F(MHTMLArchiveTest, TestMHTMLPartsWithBinaryEncoding) { … }
TEST_F(MHTMLArchiveTest, TestMHTMLPartsWithDefaultEncoding) { … }
TEST_F(MHTMLArchiveTest, MHTMLFromScheme) { … }
TEST_F(MHTMLArchiveTest, MHTMLDate) { … }
TEST_F(MHTMLArchiveTest, EmptyArchive) { … }
TEST_F(MHTMLArchiveTest, NoMainResource) { … }
TEST_F(MHTMLArchiveTest, InvalidMHTML) { … }
}
}