mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
test: Add mock for cpu page fault manager
Related-To: NEO-8015 Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
9ee6e5bf19
commit
7fe3ca010e
17
shared/test/common/mocks/mock_cpu_page_fault_manager.cpp
Normal file
17
shared/test/common/mocks/mock_cpu_page_fault_manager.cpp
Normal file
@@ -0,0 +1,17 @@
|
||||
/*
|
||||
* Copyright (C) 2023 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#include "shared/test/common/mocks/mock_cpu_page_fault_manager.h"
|
||||
|
||||
namespace NEO {
|
||||
std::unique_ptr<PageFaultManager> PageFaultManager::create() {
|
||||
auto pageFaultManager = std::make_unique<MockPageFaultManager>();
|
||||
|
||||
pageFaultManager->selectGpuDomainHandler();
|
||||
return pageFaultManager;
|
||||
}
|
||||
} // namespace NEO
|
||||
Reference in New Issue
Block a user