Files
rk35xx-android14/external/libchrome/base/test/generate_fontconfig_caches.cc
T
hmz007 36ed224bac Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a)
Signed-off-by: hmz007 <hmz007@gmail.com>
Change-Id: Ib87fdbe7a0be7dc961af3500fe9ea4589a127f9f
2024-10-29 18:12:02 +08:00

25 lines
747 B
C++

// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <string>
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/path_service.h"
#include "base/test/fontconfig_util_linux.h"
int main(void) {
base::SetUpFontconfig();
base::TearDownFontconfig();
base::FilePath dir_module;
CHECK(base::PathService::Get(base::DIR_MODULE, &dir_module));
base::FilePath fontconfig_caches = dir_module.Append("fontconfig_caches");
CHECK(base::DirectoryExists(fontconfig_caches));
base::FilePath stamp = fontconfig_caches.Append("STAMP");
CHECK_EQ(0, base::WriteFile(stamp, "", 0));
return 0;
}