2018-10-24 14:46:54 +08:00
|
|
|
/*
|
2019-03-26 18:59:46 +08:00
|
|
|
* Copyright (C) 2017-2019 Intel Corporation
|
2018-10-24 14:46:54 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
#include "runtime/memory_manager/host_ptr_manager.h"
|
|
|
|
|
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
|