Files
compute-runtime/opencl/test/unit_test/mocks/mock_platform.h
Sebastian Luzynski fd195f0967 LoopAtPlatformInitialize renamed to LoopAtDriverInit and triggers earlier
Related-To: NEO-4526
Change-Id: I13067badfbaf9f46c993b08126fb35e53d68f6d3
2020-04-28 13:47:04 +02:00

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