mirror of
				https://bitbucket.org/chromiumembedded/cef
				synced 2025-06-05 21:39:12 +02:00 
			
		
		
		
	Include net test data in the binary distribution (see issue #3348)
This commit is contained in:
		
							
								
								
									
										14
									
								
								libcef/browser/test/test_helpers_impl.cc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								libcef/browser/test/test_helpers_impl.cc
									
									
									
									
									
										Normal 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);
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user