compute-runtime/unit_tests/mocks/mock_platform.h

26 lines
597 B
C
Raw Normal View History

/*
* Copyright (C) 2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "core/execution_environment/execution_environment.h"
#include "platform/platform.h"
namespace NEO {
class MockPlatform : public Platform {
public:
using Platform::fillGlobalDispatchTable;
using Platform::initializationLoopHelper;
MockPlatform() : MockPlatform(*(new ExecutionEnvironment())) {}
MockPlatform(ExecutionEnvironment &executionEnvironment) : Platform(executionEnvironment) {}
bool initializeWithNewDevices();
};
bool initPlatform();
} // namespace NEO