@@ -97,7 +97,7 @@ struct umfIpcTest : umf_test::test,
97
97
98
98
void TearDown () override { test::TearDown (); }
99
99
100
- umf ::pool_unique_handle_t makePool () {
100
+ umf_test ::pool_unique_handle_t makePool () {
101
101
// TODO: The function is similar to poolCreateExt function
102
102
// from memoryPool.hpp
103
103
umf_memory_provider_handle_t hProvider = NULL ;
@@ -147,7 +147,7 @@ struct umfIpcTest : umf_test::test,
147
147
poolParamsDestroy (poolParams);
148
148
}
149
149
150
- return umf ::pool_unique_handle_t (hPool, &umfPoolDestroy);
150
+ return umf_test ::pool_unique_handle_t (hPool, &umfPoolDestroy);
151
151
}
152
152
153
153
struct stats_type {
@@ -179,7 +179,7 @@ struct umfIpcTest : umf_test::test,
179
179
std::vector<void *> ptrs;
180
180
constexpr size_t ALLOC_SIZE = 100 ;
181
181
constexpr size_t NUM_POINTERS = 100 ;
182
- umf ::pool_unique_handle_t pool = makePool ();
182
+ umf_test ::pool_unique_handle_t pool = makePool ();
183
183
ASSERT_NE (pool.get (), nullptr );
184
184
185
185
for (size_t i = 0 ; i < NUM_POINTERS; ++i) {
@@ -237,7 +237,7 @@ struct umfIpcTest : umf_test::test,
237
237
std::vector<void *> ptrs;
238
238
constexpr size_t ALLOC_SIZE = 100 ;
239
239
constexpr size_t NUM_POINTERS = 100 ;
240
- umf ::pool_unique_handle_t pool = makePool ();
240
+ umf_test ::pool_unique_handle_t pool = makePool ();
241
241
ASSERT_NE (pool.get (), nullptr );
242
242
243
243
for (size_t i = 0 ; i < NUM_POINTERS; ++i) {
@@ -284,7 +284,7 @@ struct umfIpcTest : umf_test::test,
284
284
std::vector<void *> ptrs;
285
285
constexpr size_t ALLOC_SIZE = 100 ;
286
286
constexpr size_t NUM_POINTERS = 100 ;
287
- umf ::pool_unique_handle_t pool = makePool ();
287
+ umf_test ::pool_unique_handle_t pool = makePool ();
288
288
ASSERT_NE (pool.get (), nullptr );
289
289
290
290
for (size_t i = 0 ; i < NUM_POINTERS; ++i) {
@@ -363,7 +363,7 @@ struct umfIpcTest : umf_test::test,
363
363
std::vector<void *> ptrs;
364
364
constexpr size_t ALLOC_SIZE = 100 ;
365
365
constexpr size_t NUM_POINTERS = 100 ;
366
- umf ::pool_unique_handle_t pool = makePool ();
366
+ umf_test ::pool_unique_handle_t pool = makePool ();
367
367
ASSERT_NE (pool.get (), nullptr );
368
368
369
369
for (size_t i = 0 ; i < NUM_POINTERS; ++i) {
@@ -432,7 +432,7 @@ struct umfIpcTest : umf_test::test,
432
432
433
433
TEST_P (umfIpcTest, GetIPCHandleSize) {
434
434
size_t size = 0 ;
435
- umf ::pool_unique_handle_t pool = makePool ();
435
+ umf_test ::pool_unique_handle_t pool = makePool ();
436
436
ASSERT_NE (pool.get (), nullptr );
437
437
438
438
umf_result_t ret = umfPoolGetIPCHandleSize (pool.get (), &size);
@@ -445,7 +445,7 @@ TEST_P(umfIpcTest, GetIPCHandleSizeInvalidArgs) {
445
445
umf_result_t ret = umfPoolGetIPCHandleSize (nullptr , &size);
446
446
EXPECT_EQ (ret, UMF_RESULT_ERROR_INVALID_ARGUMENT);
447
447
448
- umf ::pool_unique_handle_t pool = makePool ();
448
+ umf_test ::pool_unique_handle_t pool = makePool ();
449
449
ASSERT_NE (pool.get (), nullptr );
450
450
451
451
ret = umfPoolGetIPCHandleSize (pool.get (), nullptr );
@@ -463,7 +463,7 @@ TEST_P(umfIpcTest, GetIPCHandleInvalidArgs) {
463
463
ret = umfGetIPCHandle (ptr, &ipcHandle, &handleSize);
464
464
EXPECT_EQ (ret, UMF_RESULT_ERROR_INVALID_ARGUMENT);
465
465
466
- umf ::pool_unique_handle_t pool = makePool ();
466
+ umf_test ::pool_unique_handle_t pool = makePool ();
467
467
ASSERT_NE (pool.get (), nullptr );
468
468
469
469
ptr = umfPoolMalloc (pool.get (), SIZE);
@@ -488,7 +488,7 @@ TEST_P(umfIpcTest, CloseIPCHandleInvalidPtr) {
488
488
TEST_P (umfIpcTest, BasicFlow) {
489
489
constexpr size_t SIZE = 100 ;
490
490
std::vector<int > expected_data (SIZE);
491
- umf ::pool_unique_handle_t pool = makePool ();
491
+ umf_test ::pool_unique_handle_t pool = makePool ();
492
492
ASSERT_NE (pool.get (), nullptr );
493
493
494
494
int *ptr = (int *)umfPoolMalloc (pool.get (), SIZE * sizeof (int ));
@@ -555,7 +555,7 @@ TEST_P(umfIpcTest, BasicFlow) {
555
555
556
556
TEST_P (umfIpcTest, AllocFreeAllocTest) {
557
557
constexpr size_t SIZE = 64 * 1024 ;
558
- umf ::pool_unique_handle_t pool = makePool ();
558
+ umf_test ::pool_unique_handle_t pool = makePool ();
559
559
ASSERT_NE (pool.get (), nullptr );
560
560
561
561
umf_ipc_handler_handle_t ipcHandler = nullptr ;
@@ -616,9 +616,9 @@ TEST_P(umfIpcTest, AllocFreeAllocTest) {
616
616
TEST_P (umfIpcTest, openInTwoIpcHandlers) {
617
617
constexpr size_t SIZE = 100 ;
618
618
std::vector<int > expected_data (SIZE);
619
- umf ::pool_unique_handle_t pool1 = makePool ();
619
+ umf_test ::pool_unique_handle_t pool1 = makePool ();
620
620
ASSERT_NE (pool1.get (), nullptr );
621
- umf ::pool_unique_handle_t pool2 = makePool ();
621
+ umf_test ::pool_unique_handle_t pool2 = makePool ();
622
622
ASSERT_NE (pool2.get (), nullptr );
623
623
umf_ipc_handler_handle_t ipcHandler1 = nullptr ;
624
624
umf_ipc_handler_handle_t ipcHandler2 = nullptr ;
@@ -715,8 +715,8 @@ TEST_P(umfIpcTest, ConcurrentDestroyIpcHandlers) {
715
715
constexpr size_t NUM_POOLS = 10 ;
716
716
void *ptrs[NUM_ALLOCS];
717
717
void *openedPtrs[NUM_POOLS][NUM_ALLOCS];
718
- std::vector<umf ::pool_unique_handle_t > consumerPools;
719
- umf ::pool_unique_handle_t producerPool = makePool ();
718
+ std::vector<umf_test ::pool_unique_handle_t > consumerPools;
719
+ umf_test ::pool_unique_handle_t producerPool = makePool ();
720
720
ASSERT_NE (producerPool.get (), nullptr );
721
721
722
722
for (size_t i = 0 ; i < NUM_POOLS; ++i) {
0 commit comments