mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-12 17:33:00 +08:00
Change-Id: If965c79d70392db26597aea4c2f3b7ae2820fe96 Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
32 lines
712 B
C++
32 lines
712 B
C++
/*
|
|
* Copyright (C) 2019 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include "runtime/os_interface/linux/drm_allocation.h"
|
|
#include "runtime/os_interface/linux/drm_buffer_object.h"
|
|
|
|
namespace NEO {
|
|
|
|
class MockBufferObject : public BufferObject {
|
|
public:
|
|
using BufferObject::handle;
|
|
|
|
MockBufferObject() : BufferObject(nullptr, 0, false) {
|
|
}
|
|
};
|
|
|
|
class MockDrmAllocation : public DrmAllocation {
|
|
public:
|
|
using DrmAllocation::bo;
|
|
using DrmAllocation::memoryPool;
|
|
|
|
MockDrmAllocation(AllocationType allocationType, MemoryPool::Type pool) : DrmAllocation(allocationType, nullptr, nullptr, 0, static_cast<size_t>(0), pool, false) {
|
|
}
|
|
};
|
|
|
|
} // namespace NEO
|