2018-10-24 14:46:54 +08:00
|
|
|
/*
|
2021-05-17 02:51:16 +08:00
|
|
|
* Copyright (C) 2018-2021 Intel Corporation
|
2018-10-24 14:46:54 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
2020-02-24 05:44:01 +08:00
|
|
|
#include "shared/source/memory_manager/host_ptr_manager.h"
|
2018-10-24 14:46:54 +08:00
|
|
|
|
2019-03-26 18:59:46 +08:00
|
|
|
namespace NEO {
|
2018-10-24 14:46:54 +08:00
|
|
|
class MockHostPtrManager : public HostPtrManager {
|
|
|
|
public:
|
|
|
|
using HostPtrManager::checkAllocationsForOverlapping;
|
|
|
|
using HostPtrManager::getAllocationRequirements;
|
|
|
|
using HostPtrManager::getFragmentAndCheckForOverlaps;
|
|
|
|
using HostPtrManager::populateAlreadyAllocatedFragments;
|
|
|
|
size_t getFragmentCount() { return partialAllocations.size(); }
|
|
|
|
};
|
2019-03-26 18:59:46 +08:00
|
|
|
} // namespace NEO
|