Pass execution environment to memory manager

Change-Id: If43cf9d1353b4cbc02ea269fb9105c01cc4e0876
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2018-10-01 16:10:54 +02:00
committed by sys_ocldev
parent 84865512cd
commit b602cd2bb8
59 changed files with 479 additions and 399 deletions

View File

@ -5,6 +5,7 @@
*
*/
#include "runtime/execution_environment/execution_environment.h"
#include "runtime/os_interface/linux/drm_memory_manager.h"
#include "unit_tests/mocks/linux/mock_drm_memory_manager.h"
#include "unit_tests/os_interface/linux/device_command_stream_fixture.h"
@ -30,9 +31,9 @@ TEST(DrmMemoryManagerTest, givenDrmMemoryManagerWhenSharedAllocationIsCreatedFro
return 0;
}
};
ExecutionEnvironment executionEnvironment;
auto mock = make_unique<MockDrm>(0);
auto memoryManager = make_unique<TestedDrmMemoryManager>(mock.get());
auto memoryManager = make_unique<TestedDrmMemoryManager>(mock.get(), executionEnvironment);
osHandle handle = 3;
constexpr size_t maxThreads = 10;
@ -92,8 +93,9 @@ TEST(DrmMemoryManagerTest, givenMultipleThreadsWhenSharedAllocationIsCreatedThen
}
};
ExecutionEnvironment executionEnvironment;
auto mock = make_unique<MockDrm>(0);
auto memoryManager = make_unique<TestedDrmMemoryManager>(mock.get());
auto memoryManager = make_unique<TestedDrmMemoryManager>(mock.get(), executionEnvironment);
osHandle handle = 3;
constexpr size_t maxThreads = 10;