#ifdef UNSAFE_BUFFERS_BUILD
#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) { … }
}