compute-runtime/shared/test/common/mocks/mock_host_ptr_manager.h

21 lines
561 B
C
Raw Normal View History

/*
* Copyright (C) 2018-2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "shared/source/memory_manager/host_ptr_manager.h"
namespace NEO {
class MockHostPtrManager : public HostPtrManager {
public:
using HostPtrManager::checkAllocationsForOverlapping;
using HostPtrManager::getAllocationRequirements;
using HostPtrManager::getFragmentAndCheckForOverlaps;
using HostPtrManager::populateAlreadyAllocatedFragments;
size_t getFragmentCount() { return partialAllocations.size(); }
};
} // namespace NEO