@@ -97,7 +97,7 @@ struct umfIpcTest : umf_test::test,
9797
9898 void TearDown () override { test::TearDown (); }
9999
100- umf ::pool_unique_handle_t makePool () {
100+ umf_test ::pool_unique_handle_t makePool () {
101101 // TODO: The function is similar to poolCreateExt function
102102 // from memoryPool.hpp
103103 umf_memory_provider_handle_t hProvider = NULL ;
@@ -147,7 +147,7 @@ struct umfIpcTest : umf_test::test,
147147 poolParamsDestroy (poolParams);
148148 }
149149
150- return umf ::pool_unique_handle_t (hPool, &umfPoolDestroy);
150+ return umf_test ::pool_unique_handle_t (hPool, &umfPoolDestroy);
151151 }
152152
153153 struct stats_type {
@@ -179,7 +179,7 @@ struct umfIpcTest : umf_test::test,
179179 std::vector<void *> ptrs;
180180 constexpr size_t ALLOC_SIZE = 100 ;
181181 constexpr size_t NUM_POINTERS = 100 ;
182- umf ::pool_unique_handle_t pool = makePool ();
182+ umf_test ::pool_unique_handle_t pool = makePool ();
183183 ASSERT_NE (pool.get (), nullptr );
184184
185185 for (size_t i = 0 ; i < NUM_POINTERS; ++i) {
@@ -237,7 +237,7 @@ struct umfIpcTest : umf_test::test,
237237 std::vector<void *> ptrs;
238238 constexpr size_t ALLOC_SIZE = 100 ;
239239 constexpr size_t NUM_POINTERS = 100 ;
240- umf ::pool_unique_handle_t pool = makePool ();
240+ umf_test ::pool_unique_handle_t pool = makePool ();
241241 ASSERT_NE (pool.get (), nullptr );
242242
243243 for (size_t i = 0 ; i < NUM_POINTERS; ++i) {
@@ -284,7 +284,7 @@ struct umfIpcTest : umf_test::test,
284284 std::vector<void *> ptrs;
285285 constexpr size_t ALLOC_SIZE = 100 ;
286286 constexpr size_t NUM_POINTERS = 100 ;
287- umf ::pool_unique_handle_t pool = makePool ();
287+ umf_test ::pool_unique_handle_t pool = makePool ();
288288 ASSERT_NE (pool.get (), nullptr );
289289
290290 for (size_t i = 0 ; i < NUM_POINTERS; ++i) {
@@ -363,7 +363,7 @@ struct umfIpcTest : umf_test::test,
363363 std::vector<void *> ptrs;
364364 constexpr size_t ALLOC_SIZE = 100 ;
365365 constexpr size_t NUM_POINTERS = 100 ;
366- umf ::pool_unique_handle_t pool = makePool ();
366+ umf_test ::pool_unique_handle_t pool = makePool ();
367367 ASSERT_NE (pool.get (), nullptr );
368368
369369 for (size_t i = 0 ; i < NUM_POINTERS; ++i) {
@@ -432,7 +432,7 @@ struct umfIpcTest : umf_test::test,
432432
433433TEST_P (umfIpcTest, GetIPCHandleSize) {
434434 size_t size = 0 ;
435- umf ::pool_unique_handle_t pool = makePool ();
435+ umf_test ::pool_unique_handle_t pool = makePool ();
436436 ASSERT_NE (pool.get (), nullptr );
437437
438438 umf_result_t ret = umfPoolGetIPCHandleSize (pool.get (), &size);
@@ -445,7 +445,7 @@ TEST_P(umfIpcTest, GetIPCHandleSizeInvalidArgs) {
445445 umf_result_t ret = umfPoolGetIPCHandleSize (nullptr , &size);
446446 EXPECT_EQ (ret, UMF_RESULT_ERROR_INVALID_ARGUMENT);
447447
448- umf ::pool_unique_handle_t pool = makePool ();
448+ umf_test ::pool_unique_handle_t pool = makePool ();
449449 ASSERT_NE (pool.get (), nullptr );
450450
451451 ret = umfPoolGetIPCHandleSize (pool.get (), nullptr );
@@ -463,7 +463,7 @@ TEST_P(umfIpcTest, GetIPCHandleInvalidArgs) {
463463 ret = umfGetIPCHandle (ptr, &ipcHandle, &handleSize);
464464 EXPECT_EQ (ret, UMF_RESULT_ERROR_INVALID_ARGUMENT);
465465
466- umf ::pool_unique_handle_t pool = makePool ();
466+ umf_test ::pool_unique_handle_t pool = makePool ();
467467 ASSERT_NE (pool.get (), nullptr );
468468
469469 ptr = umfPoolMalloc (pool.get (), SIZE);
@@ -488,7 +488,7 @@ TEST_P(umfIpcTest, CloseIPCHandleInvalidPtr) {
488488TEST_P (umfIpcTest, BasicFlow) {
489489 constexpr size_t SIZE = 100 ;
490490 std::vector<int > expected_data (SIZE);
491- umf ::pool_unique_handle_t pool = makePool ();
491+ umf_test ::pool_unique_handle_t pool = makePool ();
492492 ASSERT_NE (pool.get (), nullptr );
493493
494494 int *ptr = (int *)umfPoolMalloc (pool.get (), SIZE * sizeof (int ));
@@ -555,7 +555,7 @@ TEST_P(umfIpcTest, BasicFlow) {
555555
556556TEST_P (umfIpcTest, AllocFreeAllocTest) {
557557 constexpr size_t SIZE = 64 * 1024 ;
558- umf ::pool_unique_handle_t pool = makePool ();
558+ umf_test ::pool_unique_handle_t pool = makePool ();
559559 ASSERT_NE (pool.get (), nullptr );
560560
561561 umf_ipc_handler_handle_t ipcHandler = nullptr ;
@@ -616,9 +616,9 @@ TEST_P(umfIpcTest, AllocFreeAllocTest) {
616616TEST_P (umfIpcTest, openInTwoIpcHandlers) {
617617 constexpr size_t SIZE = 100 ;
618618 std::vector<int > expected_data (SIZE);
619- umf ::pool_unique_handle_t pool1 = makePool ();
619+ umf_test ::pool_unique_handle_t pool1 = makePool ();
620620 ASSERT_NE (pool1.get (), nullptr );
621- umf ::pool_unique_handle_t pool2 = makePool ();
621+ umf_test ::pool_unique_handle_t pool2 = makePool ();
622622 ASSERT_NE (pool2.get (), nullptr );
623623 umf_ipc_handler_handle_t ipcHandler1 = nullptr ;
624624 umf_ipc_handler_handle_t ipcHandler2 = nullptr ;
@@ -715,8 +715,8 @@ TEST_P(umfIpcTest, ConcurrentDestroyIpcHandlers) {
715715 constexpr size_t NUM_POOLS = 10 ;
716716 void *ptrs[NUM_ALLOCS];
717717 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 ();
720720 ASSERT_NE (producerPool.get (), nullptr );
721721
722722 for (size_t i = 0 ; i < NUM_POOLS; ++i) {
0 commit comments