// Copyright (c) 2022 The Chromium Embedded Framework 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 "base/files/file_path.h" #include "base/path_service.h" #include "cef/include/test/cef_test_helpers.h" void CefSetDataDirectoryForTests(const CefString& dir) { base::PathService::OverrideAndCreateIfNeeded( base::DIR_SRC_TEST_DATA_ROOT, base::FilePath(dir), /*is_absolute=*/true, /*create=*/false); }