| 731 | } |
| 732 | |
| 733 | TEST(MemoryPoolTest, GetAlignment) { |
| 734 | { |
| 735 | MemoryManager::Options options; |
| 736 | options.allocatorCapacity = kMaxMemory; |
| 737 | EXPECT_EQ( |
| 738 | MemoryAllocator::kMaxAlignment, |
| 739 | MemoryManager{options}.addRootPool()->alignment()); |
| 740 | } |
| 741 | { |
| 742 | MemoryManager::Options options; |
| 743 | options.allocatorCapacity = kMaxMemory; |
| 744 | options.alignment = 64; |
| 745 | MemoryManager manager{options}; |
| 746 | EXPECT_EQ(64, manager.addRootPool()->alignment()); |
| 747 | } |
| 748 | } |
| 749 | |
| 750 | TEST_P(MemoryPoolTest, MemoryManagerGlobalCap) { |
| 751 | MemoryManager::Options options; |
nothing calls this directly
no test coverage detected