1*635a8641SAndroid Build Coastguard Worker // Copyright 2018 The Chromium Authors. All rights reserved. 2*635a8641SAndroid Build Coastguard Worker // Use of this source code is governed by a BSD-style license that can be 3*635a8641SAndroid Build Coastguard Worker // found in the LICENSE file. 4*635a8641SAndroid Build Coastguard Worker 5*635a8641SAndroid Build Coastguard Worker #include <string> 6*635a8641SAndroid Build Coastguard Worker 7*635a8641SAndroid Build Coastguard Worker #include "base/files/file_path.h" 8*635a8641SAndroid Build Coastguard Worker #include "base/files/file_util.h" 9*635a8641SAndroid Build Coastguard Worker #include "base/path_service.h" 10*635a8641SAndroid Build Coastguard Worker #include "base/test/fontconfig_util_linux.h" 11*635a8641SAndroid Build Coastguard Worker main(void)12*635a8641SAndroid Build Coastguard Workerint main(void) { 13*635a8641SAndroid Build Coastguard Worker base::SetUpFontconfig(); 14*635a8641SAndroid Build Coastguard Worker base::TearDownFontconfig(); 15*635a8641SAndroid Build Coastguard Worker 16*635a8641SAndroid Build Coastguard Worker base::FilePath dir_module; 17*635a8641SAndroid Build Coastguard Worker CHECK(base::PathService::Get(base::DIR_MODULE, &dir_module)); 18*635a8641SAndroid Build Coastguard Worker base::FilePath fontconfig_caches = dir_module.Append("fontconfig_caches"); 19*635a8641SAndroid Build Coastguard Worker CHECK(base::DirectoryExists(fontconfig_caches)); 20*635a8641SAndroid Build Coastguard Worker base::FilePath stamp = fontconfig_caches.Append("STAMP"); 21*635a8641SAndroid Build Coastguard Worker CHECK_EQ(0, base::WriteFile(stamp, "", 0)); 22*635a8641SAndroid Build Coastguard Worker 23*635a8641SAndroid Build Coastguard Worker return 0; 24*635a8641SAndroid Build Coastguard Worker } 25