@@ -176,6 +176,8 @@ TEST_F(CommandContainerTest, givenCmdContainerWithAllocsListWhenAllocateAndReset
176
176
auto cmdContainer = std::make_unique<CommandContainer>();
177
177
cmdContainer->initialize (pDevice, &allocList);
178
178
auto &cmdBufferAllocs = cmdContainer->getCmdBufferAllocations ();
179
+ auto memoryManager = static_cast <MockMemoryManager *>(pDevice->getMemoryManager ());
180
+ EXPECT_EQ (memoryManager->handleFenceCompletionCalled , 0u );
179
181
EXPECT_EQ (cmdBufferAllocs.size (), 1u );
180
182
EXPECT_TRUE (allocList.peekIsEmpty ());
181
183
@@ -186,6 +188,7 @@ TEST_F(CommandContainerTest, givenCmdContainerWithAllocsListWhenAllocateAndReset
186
188
auto cmdBuffer1 = cmdBufferAllocs[1 ];
187
189
188
190
cmdContainer->reset ();
191
+ EXPECT_EQ (memoryManager->handleFenceCompletionCalled , 1u );
189
192
EXPECT_EQ (cmdBufferAllocs.size (), 1u );
190
193
EXPECT_EQ (cmdBufferAllocs[0 ], cmdBuffer0);
191
194
EXPECT_FALSE (allocList.peekIsEmpty ());
@@ -197,6 +200,8 @@ TEST_F(CommandContainerTest, givenCmdContainerWithAllocsListWhenAllocateAndReset
197
200
EXPECT_TRUE (allocList.peekIsEmpty ());
198
201
199
202
cmdContainer.reset ();
203
+ EXPECT_EQ (memoryManager->handleFenceCompletionCalled , 3u );
204
+ EXPECT_FALSE (allocList.peekIsEmpty ());
200
205
allocList.freeAllGraphicsAllocations (pDevice);
201
206
}
202
207
0 commit comments