chromium/net/base/mime_util_unittest.cc

// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "net/base/mime_util.h"

#include <vector>

#include "base/containers/contains.h"
#include "base/files/file_path.h"
#include "base/strings/string_split.h"
#include "base/strings/utf_string_conversions.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace net {

Contains;

TEST(MimeUtilTest, GetWellKnownMimeTypeFromExtension) {}

TEST(MimeUtilTest, ExtensionTest) {}

// Behavior of GetPreferredExtensionForMimeType() is dependent on the host
// platform since the latter can override the mapping from file extensions to
// MIME types. The tests below would only work if the platform MIME mappings
// don't have mappings for or has an agreeing mapping for each MIME type
// mentioned.
TEST(MimeUtilTest, GetPreferredExtensionForMimeType) {}

TEST(MimeUtilTest, FileTest) {}

TEST(MimeUtilTest, MatchesMimeType) {}

TEST(MimeUtilTest, TestParseMimeType) {}

TEST(MimeUtilTest, TestParseMimeTypeWithoutParameter) {}

class ExtractMIMETypeTestInvalid : public testing::TestWithParam<std::string> {};

INSTANTIATE_TEST_SUITE_P();

TEST_P(ExtractMIMETypeTestInvalid, MustFail) {}

class ExtractMIMETypeTestValid : public testing::TestWithParam<std::string> {};

INSTANTIATE_TEST_SUITE_P();

TEST_P(ExtractMIMETypeTestValid, MustSucceed) {}

TEST(MimeUtilTest, TestIsValidTopLevelMimeType) {}

TEST(MimeUtilTest, TestGetExtensionsForMimeType) {}

TEST(MimeUtilTest, TestGenerateMimeMultipartBoundary) {}

TEST(MimeUtilTest, TestAddMultipartValueForUpload) {}

TEST(MimeUtilTest, TestAddMultipartValueForUploadWithFileName) {}
}  // namespace net