#include "third_party/blink/renderer/platform/mhtml/mhtml_parser.h"
#include <string>
#include "base/time/time.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/platform/mhtml/archive_resource.h"
#include "third_party/blink/renderer/platform/wtf/shared_buffer.h"
namespace blink {
namespace {
std::string GetResourceData(
const HeapVector<Member<ArchiveResource>>& resources,
size_t index) { … }
}
class MHTMLParserTest : public testing::Test { … };
TEST_F(MHTMLParserTest, MHTMLPartHeaders) { … }
TEST_F(MHTMLParserTest, QuotedPrintableContentTransferEncoding) { … }
TEST_F(MHTMLParserTest, Base64ContentTransferEncoding) { … }
TEST_F(MHTMLParserTest, EightBitContentTransferEncoding) { … }
TEST_F(MHTMLParserTest, SevenBitContentTransferEncoding) { … }
TEST_F(MHTMLParserTest, SpaceAsHeaderContinuation) { … }
TEST_F(MHTMLParserTest, BinaryContentTransferEncoding) { … }
TEST_F(MHTMLParserTest, UnknownContentTransferEncoding) { … }
TEST_F(MHTMLParserTest, NoContentTransferEncoding) { … }
TEST_F(MHTMLParserTest, DateParsing_EmptyDate) { … }
TEST_F(MHTMLParserTest, DateParsing_InvalidDate) { … }
TEST_F(MHTMLParserTest, DateParsing_ValidDate) { … }
TEST_F(MHTMLParserTest, MissingBoundary) { … }
TEST_F(MHTMLParserTest, OverflowedDate) { … }
TEST_F(MHTMLParserTest, OverflowedDay) { … }
}