2017-12-21 07:45:38 +08:00
|
|
|
/*
|
2018-09-18 15:11:08 +08:00
|
|
|
* Copyright (C) 2017-2018 Intel Corporation
|
2017-12-21 07:45:38 +08:00
|
|
|
*
|
2018-09-18 15:11:08 +08:00
|
|
|
* SPDX-License-Identifier: MIT
|
2017-12-21 07:45:38 +08:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "unit_tests/fixtures/memory_manager_fixture.h"
|
|
|
|
#include "unit_tests/mocks/mock_csr.h"
|
|
|
|
#include "unit_tests/mocks/mock_memory_manager.h"
|
|
|
|
|
|
|
|
using namespace OCLRT;
|
|
|
|
|
|
|
|
void MemoryManagerWithCsrFixture::SetUp() {
|
2018-10-01 22:10:54 +08:00
|
|
|
csr = new MockCommandStreamReceiver(this->executionEnvironment);
|
2018-10-26 19:05:31 +08:00
|
|
|
memoryManager = new MockMemoryManager(executionEnvironment);
|
2018-10-09 17:50:58 +08:00
|
|
|
executionEnvironment.memoryManager.reset(memoryManager);
|
2018-08-08 19:49:09 +08:00
|
|
|
csr->tagAddress = ¤tGpuTag;
|
2018-10-01 22:10:54 +08:00
|
|
|
executionEnvironment.commandStreamReceivers.push_back(std::unique_ptr<CommandStreamReceiver>(csr));
|
2017-12-21 07:45:38 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
void MemoryManagerWithCsrFixture::TearDown() {
|
|
|
|
}
|