2019-02-14 18:38:04 +08:00
|
|
|
/*
|
|
|
|
* 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"
|
|
|
|
|
2019-03-26 18:59:46 +08:00
|
|
|
namespace NEO {
|
2019-02-14 18:38:04 +08:00
|
|
|
|
|
|
|
class MockBufferObject : public BufferObject {
|
|
|
|
public:
|
|
|
|
using BufferObject::handle;
|
|
|
|
|
2019-10-22 16:26:23 +08:00
|
|
|
MockBufferObject() : BufferObject(nullptr, 0, 0) {
|
2019-02-14 18:38:04 +08:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
class MockDrmAllocation : public DrmAllocation {
|
|
|
|
public:
|
2019-09-02 03:36:15 +08:00
|
|
|
using DrmAllocation::bufferObjects;
|
2019-02-14 18:38:04 +08:00
|
|
|
using DrmAllocation::memoryPool;
|
|
|
|
|
2019-10-22 16:26:23 +08:00
|
|
|
MockDrmAllocation(AllocationType allocationType, MemoryPool::Type pool) : DrmAllocation(allocationType, nullptr, nullptr, 0, static_cast<size_t>(0), pool, 0) {
|
2019-02-14 18:38:04 +08:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2019-03-26 18:59:46 +08:00
|
|
|
} // namespace NEO
|