chromium/third_party/crashpad/crashpad/util/net/http_multipart_builder_test.cc

// Copyright 2014 The Crashpad Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#include "util/net/http_multipart_builder.h"

#include <sys/types.h>

#include <vector>

#include "gtest/gtest.h"
#include "test/gtest_death.h"
#include "test/test_paths.h"
#include "util/net/http_body.h"
#include "util/net/http_body_test_util.h"

namespace crashpad {
namespace test {
namespace {

std::vector<std::string> SplitCRLF(const std::string& string) {}

// In the tests below, the form data pairs don’t appear in the order they were
// added. The current implementation uses a std::map which sorts keys, so the
// entires appear in alphabetical order. However, this is an implementation
// detail, and it’s OK if the writer stops sorting in this order. Testing for
// a specific order is just the easiest way to write this test while the writer
// will output things in a known order.

TEST(HTTPMultipartBuilder, ThreeStringFields) {}

TEST(HTTPMultipartBuilder, ThreeFileAttachments) {}

TEST(HTTPMultipartBuilder, OverwriteFormDataWithEscapedKey) {}

TEST(HTTPMultipartBuilder, OverwriteFileAttachment) {}

TEST(HTTPMultipartBuilder, SharedFormDataAndAttachmentKeyNamespace) {}

TEST(HTTPMultipartBuilderDeathTest, AssertUnsafeMIMEType) {}

}  // namespace
}  // namespace test
}  // namespace crashpad