/* * Copyright (C) 2019 Intel Corporation * * SPDX-License-Identifier: MIT * */ #include "runtime/memory_manager/gfx_partition.h" using namespace NEO; class MockGfxPartition : public GfxPartition { public: uint64_t getHeapSize(HeapIndex heapIndex) { return getHeap(heapIndex).getSize(); } bool heapInitialized(HeapIndex heapIndex) { return getHeapSize(heapIndex) > 0; } static std::array(HeapIndex::TOTAL_HEAPS)> allHeapNames; };