mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-07 12:42:54 +08:00
Change-Id: I31ca317d10697ab884e04f443c8ccfdd6ca9d2ae Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
27 lines
678 B
C++
27 lines
678 B
C++
/*
|
|
* Copyright (C) 2018-2019 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "core/gmm_helper/gmm_helper.h"
|
|
#include "runtime/helpers/options.h"
|
|
#include "runtime/platform/platform.h"
|
|
|
|
#include "gmm_client_context.h"
|
|
#include "gmm_memory.h"
|
|
#include "gtest/gtest.h"
|
|
|
|
using namespace NEO;
|
|
class PublicGmmMemory : public GmmMemory {
|
|
public:
|
|
using GmmMemory::clientContext;
|
|
};
|
|
|
|
TEST(GmmMemoryTest, givenGmmHelperWhenCreateGmmMemoryThenItHasClientContextFromGmmHelper) {
|
|
ASSERT_NE(nullptr, platform()->peekGmmClientContext());
|
|
PublicGmmMemory gmmMemory;
|
|
EXPECT_EQ(gmmMemory.clientContext, platform()->peekGmmClientContext()->getHandle());
|
|
}
|