Include net test data in the binary distribution (see issue #3348)

This commit is contained in:
Marshall Greenblatt
2022-08-02 20:51:02 -04:00
parent 46e1c4f177
commit dcd4a0077c
16 changed files with 220 additions and 44 deletions

View File

@ -0,0 +1,14 @@
// 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 "include/test/cef_test_helpers.h"
#include "base/files/file_path.h"
#include "base/path_service.h"
void CefSetDataDirectoryForTests(const CefString& dir) {
base::PathService::OverrideAndCreateIfNeeded(
base::DIR_SRC_TEST_DATA_ROOT, base::FilePath(dir), /*is_absolute=*/true,
/*create=*/false);
}