@@ -98,6 +98,7 @@ HWTEST2_F(CommandListCreate, givenHostAllocInMapWhenGettingAllocInRangeThenAlloc
9898 size_t allocSize = 0x1000 ;
9999 NEO::MockGraphicsAllocation alloc (const_cast <void *>(cpuPtr), gpuAddress, allocSize);
100100 commandList->hostPtrMap .insert (std::make_pair (cpuPtr, &alloc));
101+ EXPECT_EQ (commandList->getHostPtrMap ().size (), 1u );
101102
102103 auto newBufferPtr = ptrOffset (cpuPtr, 0x10 );
103104 auto newBufferSize = allocSize - 0x20 ;
@@ -114,6 +115,7 @@ HWTEST2_F(CommandListCreate, givenHostAllocInMapWhenSizeIsOutOfRangeThenNullPtrR
114115 size_t allocSize = 0x1000 ;
115116 NEO::MockGraphicsAllocation alloc (const_cast <void *>(cpuPtr), gpuAddress, allocSize);
116117 commandList->hostPtrMap .insert (std::make_pair (cpuPtr, &alloc));
118+ EXPECT_EQ (commandList->getHostPtrMap ().size (), 1u );
117119
118120 auto newBufferPtr = ptrOffset (cpuPtr, 0x10 );
119121 auto newBufferSize = allocSize + 0x20 ;
@@ -130,6 +132,7 @@ HWTEST2_F(CommandListCreate, givenHostAllocInMapWhenPtrIsOutOfRangeThenNullPtrRe
130132 size_t allocSize = 0x1000 ;
131133 NEO::MockGraphicsAllocation alloc (const_cast <void *>(cpuPtr), gpuAddress, allocSize);
132134 commandList->hostPtrMap .insert (std::make_pair (cpuPtr, &alloc));
135+ EXPECT_EQ (commandList->getHostPtrMap ().size (), 1u );
133136
134137 auto newBufferPtr = reinterpret_cast <const void *>(gpuAddress - 0x100 );
135138 auto newBufferSize = allocSize - 0x200 ;
@@ -146,6 +149,8 @@ HWTEST2_F(CommandListCreate, givenHostAllocInMapWhenGetHostPtrAllocCalledThenCor
146149 size_t allocSize = 0x1000 ;
147150 NEO::MockGraphicsAllocation alloc (const_cast <void *>(cpuPtr), gpuAddress, allocSize);
148151 commandList->hostPtrMap .insert (std::make_pair (cpuPtr, &alloc));
152+ EXPECT_EQ (commandList->getHostPtrMap ().size (), 1u );
153+
149154 size_t expectedOffset = 0x10 ;
150155 auto newBufferPtr = ptrOffset (cpuPtr, expectedOffset);
151156 auto newBufferSize = allocSize - 0x20 ;
@@ -162,6 +167,7 @@ HWTEST2_F(CommandListCreate, givenHostAllocInMapWhenPtrIsInMapThenAllocationRetu
162167 size_t allocSize = 0x1000 ;
163168 NEO::MockGraphicsAllocation alloc (const_cast <void *>(cpuPtr), gpuAddress, allocSize);
164169 commandList->hostPtrMap .insert (std::make_pair (cpuPtr, &alloc));
170+ EXPECT_EQ (commandList->getHostPtrMap ().size (), 1u );
165171
166172 auto newBufferPtr = cpuPtr;
167173 auto newBufferSize = allocSize - 0x20 ;
@@ -178,6 +184,7 @@ HWTEST2_F(CommandListCreate, givenHostAllocInMapWhenPtrIsInMapButWithBiggerSizeT
178184 size_t allocSize = 0x1000 ;
179185 NEO::MockGraphicsAllocation alloc (const_cast <void *>(cpuPtr), gpuAddress, allocSize);
180186 commandList->hostPtrMap .insert (std::make_pair (cpuPtr, &alloc));
187+ EXPECT_EQ (commandList->getHostPtrMap ().size (), 1u );
181188
182189 auto newBufferPtr = cpuPtr;
183190 auto newBufferSize = allocSize + 0x20 ;
@@ -194,6 +201,7 @@ HWTEST2_F(CommandListCreate, givenHostAllocInMapWhenPtrLowerThanAnyInMapThenNull
194201 size_t allocSize = 0x1000 ;
195202 NEO::MockGraphicsAllocation alloc (const_cast <void *>(cpuPtr), gpuAddress, allocSize);
196203 commandList->hostPtrMap .insert (std::make_pair (cpuPtr, &alloc));
204+ EXPECT_EQ (commandList->getHostPtrMap ().size (), 1u );
197205
198206 auto newBufferPtr = reinterpret_cast <const void *>(gpuAddress - 0x10 );
199207 auto newBufferSize = allocSize - 0x20 ;
0 commit comments