mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-10 12:53:42 +08:00

Change-Id: If3a4ea2bb3f47bcb8176516977a626517f25a49f Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
33 lines
1.1 KiB
C++
33 lines
1.1 KiB
C++
/*
|
|
* Copyright (C) 2019-2020 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include "shared/source/os_interface/os_context.h"
|
|
#include "shared/test/unit_test/helpers/debug_manager_state_restore.h"
|
|
#include "shared/test/unit_test/mocks/mock_device.h"
|
|
|
|
#include "opencl/test/unit_test/mocks/mock_cl_device.h"
|
|
#include "opencl/test/unit_test/mocks/mock_context.h"
|
|
#include "opencl/test/unit_test/mocks/mock_csr.h"
|
|
#include "opencl/test/unit_test/mocks/mock_execution_environment.h"
|
|
|
|
namespace NEO {
|
|
struct DispatchFlagsTests : public ::testing::Test {
|
|
template <typename CsrType>
|
|
void SetUpImpl() {
|
|
environmentWrapper.setCsrType<CsrType>();
|
|
device = std::make_unique<MockClDevice>(MockDevice::createWithNewExecutionEnvironment<MockDevice>(defaultHwInfo.get()));
|
|
context = std::make_unique<MockContext>(device.get());
|
|
}
|
|
|
|
EnvironmentWithCsrWrapper environmentWrapper;
|
|
std::unique_ptr<MockClDevice> device;
|
|
std::unique_ptr<MockContext> context;
|
|
DebugManagerStateRestore restore;
|
|
};
|
|
} // namespace NEO
|