1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
/*
* Copyright (C) 2020-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "shared/source/gmm_helper/gmm.h"
#include "shared/source/gmm_helper/gmm_helper.h"
#include "shared/source/helpers/aligned_memory.h"
#include "shared/source/helpers/basic_math.h"
#include "shared/source/image/image_surface_state.h"
#include "shared/source/memory_manager/graphics_allocation.h"
#include "shared/source/memory_manager/surface.h"
#include "shared/test/common/fixtures/device_fixture.h"
#include "shared/test/common/mocks/mock_gmm.h"
#include <memory>
namespace NEO {
class ImageSurfaceStateTests : public DeviceFixture,
public testing::Test {
public:
ImageSurfaceStateTests() = default;
void SetUp() override {
DeviceFixture::setUp();
gmmHelper = pDevice->getGmmHelper();
mockGmm = std::make_unique<MockGmm>(gmmHelper);
}
void TearDown() override {
DeviceFixture::tearDown();
}
std::unique_ptr<MockGmm> mockGmm;
GmmHelper *gmmHelper = nullptr;
NEO::ImageInfo imageInfo{};
};
} // namespace NEO
|