chromium/net/base/filename_util_unittest.cc

// Copyright 2014 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/filename_util.h"

#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
#include "base/test/test_file_util.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "net/base/mime_util.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"

namespace net {

namespace {

struct FileCase {};

struct GenerateFilenameCase {};

// The expected filenames are coded as wchar_t for convenience.
// TODO(crbug.com/40605133): Make these char16_t once std::u16string is
// std::u16string.
std::wstring FilePathAsWString(const base::FilePath& path) {}
base::FilePath WStringAsFilePath(const std::wstring& str) {}

std::string GetLocaleWarningString() {}

void RunGenerateFileNameTestCase(const GenerateFilenameCase* test_case) {}

constexpr const base::FilePath::CharType* kSafePortableBasenames[] =;

constexpr const base::FilePath::CharType* kUnsafePortableBasenames[] =;

constexpr const base::FilePath::CharType* kUnsafePortableBasenamesForWin[] =;

constexpr const base::FilePath::CharType* kSafePortableRelativePaths[] =;

}  // namespace

TEST(FilenameUtilTest, IsSafePortablePathComponent) {}

TEST(FilenameUtilTest, IsSafePortableRelativePath) {}

TEST(FilenameUtilTest, FileURLConversion) {}

TEST(FilenameUtilTest, GenerateSafeFileName) {}

TEST(FilenameUtilTest, GenerateFileName_Assumptions) {}

TEST(FilenameUtilTest, GenerateFileName) {}

TEST(FilenameUtilTest, IsReservedNameOnWindows) {}

}  // namespace net