Skip to content

Commit 3a95312

Browse files
Add missing tests for internal heap index
Change-Id: If3705ef86c54504c930888829f6e38f88cdbd1ef Signed-off-by: Jablonski, Mateusz <[email protected]>
1 parent e095ac8 commit 3a95312

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

unit_tests/os_interface/windows/wddm20_tests.cpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1042,3 +1042,15 @@ TEST_F(WddmHeapSelectorTest, givenFullAddressSpaceWhenSelectingHeapForExternalAl
10421042
}
10431043
EXPECT_EQ(HeapIndex::HEAP_STANDARD, wddm->selectHeap(&allocation, nullptr));
10441044
}
1045+
1046+
TEST(WddmInternalHeapTest, whenConfigurationIs64BitThenInternalHeapIndexIsHeapInternalDeviceMemory) {
1047+
if (is64bit) {
1048+
EXPECT_EQ(HeapIndex::HEAP_INTERNAL_DEVICE_MEMORY, internalHeapIndex);
1049+
}
1050+
}
1051+
1052+
TEST(WddmInternalHeapTest, whenConfigurationIs32BitThenInternalHeapIndexIsHeapInternal) {
1053+
if (is32bit) {
1054+
EXPECT_EQ(HeapIndex::HEAP_INTERNAL, internalHeapIndex);
1055+
}
1056+
}

0 commit comments

Comments
 (0)