2020-02-07 19:15:46 +08:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2020 Intel Corporation
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
#include "core/execution_environment/execution_environment.h"
|
2020-02-22 16:28:27 +08:00
|
|
|
|
|
|
|
#include "platform/platform.h"
|
2020-02-15 00:36:30 +08:00
|
|
|
|
2020-02-07 19:15:46 +08:00
|
|
|
namespace NEO {
|
|
|
|
|
|
|
|
class MockPlatform : public Platform {
|
|
|
|
public:
|
|
|
|
using Platform::fillGlobalDispatchTable;
|
|
|
|
using Platform::initializationLoopHelper;
|
2020-02-11 18:39:25 +08:00
|
|
|
MockPlatform() : MockPlatform(*(new ExecutionEnvironment())) {}
|
|
|
|
MockPlatform(ExecutionEnvironment &executionEnvironment) : Platform(executionEnvironment) {}
|
2020-02-15 00:36:30 +08:00
|
|
|
bool initializeWithNewDevices();
|
2020-02-07 19:15:46 +08:00
|
|
|
};
|
|
|
|
|
2020-02-11 18:39:25 +08:00
|
|
|
bool initPlatform();
|
2020-02-07 19:15:46 +08:00
|
|
|
} // namespace NEO
|