chromium/third_party/blink/renderer/core/fetch/multipart_parser_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.

#include "third_party/blink/renderer/core/fetch/multipart_parser.h"

#include <string.h>

#include <algorithm>

#include "base/numerics/safe_conversions.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/platform/network/http_names.h"
#include "third_party/blink/renderer/platform/testing/task_environment.h"

namespace blink {

namespace {

String toString(const Vector<char>& data) {}

class MockMultipartParserClient final
    : public GarbageCollected<MockMultipartParserClient>,
      public MultipartParser::Client {};

constexpr char kBytes[] =;

TEST(MultipartParserTest, AppendDataInChunks) {}

TEST(MultipartParserTest, Epilogue) {}

TEST(MultipartParserTest, NoEndBoundary) {}

TEST(MultipartParserTest, NoStartBoundary) {}

TEST(MultipartParserTest, NoStartNorEndBoundary) {}

constexpr size_t kStarts[] =;

TEST(MultipartParserTest, Preamble) {}

TEST(MultipartParserTest, PreambleWithMalformedBoundary) {}

}  // namespace

}  // namespace blink