2022-08-02 20:51:02 -04:00
|
|
|
// 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"
|
2024-04-30 11:45:07 -04:00
|
|
|
#include "cef/include/test/cef_test_helpers.h"
|
2022-08-02 20:51:02 -04:00
|
|
|
|
|
|
|
void CefSetDataDirectoryForTests(const CefString& dir) {
|
|
|
|
base::PathService::OverrideAndCreateIfNeeded(
|
|
|
|
base::DIR_SRC_TEST_DATA_ROOT, base::FilePath(dir), /*is_absolute=*/true,
|
|
|
|
/*create=*/false);
|
|
|
|
}
|