chromium/third_party/test_fonts/fontconfig/generate_fontconfig_caches.cc

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

#include <fontconfig/fontconfig.h>
#include <ftw.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <utime.h>

#include <cassert>
#include <string>

#include "third_party/test_fonts/fontconfig/fontconfig_util_linux.h"

// GIANT WARNING: The point of this file is to front-load construction of the
// font cache [which takes 600ms] from test run time to compile time. This saves
// 600ms on each test shard which uses the font cache into compile time. The
// problem is that fontconfig cache construction is not intended to be
// deterministic. This executable tries to set some external state to ensure
// determinism. We have no way of guaranteeing that this produces correct
// results, or even has the intended effect.
int main() {}