29 lines
629 B
C++
29 lines
629 B
C++
/*
|
|
* Copyright (C) 2020 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include "shared/source/execution_environment/execution_environment.h"
|
|
|
|
#include "opencl/source/platform/platform.h"
|
|
|
|
namespace NEO {
|
|
|
|
class MockPlatform : public Platform {
|
|
public:
|
|
using Platform::fillGlobalDispatchTable;
|
|
MockPlatform() : MockPlatform(*(new ExecutionEnvironment())) {}
|
|
MockPlatform(ExecutionEnvironment &executionEnvironment) : Platform(executionEnvironment) {}
|
|
bool initializeWithNewDevices();
|
|
};
|
|
|
|
Platform *platform();
|
|
|
|
Platform *constructPlatform();
|
|
|
|
bool initPlatform();
|
|
} // namespace NEO
|