chromium/ui/base/resource/data_pack_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.

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/40285824): Remove this and convert code to safer constructs.
#pragma allow_unsafe_buffers
#endif

#include "ui/base/resource/data_pack.h"

#include <stddef.h>
#include <stdint.h>

#include <map>
#include <string>
#include <string_view>
#include <utility>

#include "base/files/file.h"
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/path_service.h"
#include "build/build_config.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/zlib/google/compression_utils.h"
#include "ui/base/resource/data_pack_literal.h"
#include "ui/base/ui_base_paths.h"

namespace ui {

class DataPackTest
    : public testing::TestWithParam<DataPack::TextEncodingType> {};

TEST(DataPackTest, LoadFromPath) {}

TEST(DataPackTest, LoadFromPathCompressed) {}

TEST(DataPackTest, LoadFromFile) {}

TEST(DataPackTest, LoadFromFileRegion) {}

TEST(DataPackTest, LoadFromBufferV4) {}

TEST(DataPackTest, LoadFromBufferV5) {}

INSTANTIATE_TEST_SUITE_P();
INSTANTIATE_TEST_SUITE_P();
INSTANTIATE_TEST_SUITE_P();

TEST(DataPackTest, LoadFileWithTruncatedHeader) {}

TEST_P(DataPackTest, Write) {}

TEST_P(DataPackTest, WriteWithAliases) {}

#if BUILDFLAG(IS_POSIX)
TEST(DataPackTest, ModifiedWhileUsed) {}
#endif

TEST(DataPackTest, Misordered) {}

}  // namespace ui