| 65 | }; |
| 66 | |
| 67 | TEST_F(MemoryLockerTest, lock_regions_before_start) { |
| 68 | ASSERT_FALSE(region_in_memory()); |
| 69 | ASSERT_EQ(0, MemoryLocker::instance().start()); |
| 70 | next_round(); |
| 71 | BABYLON_LOG(INFO) << "before check region_in_memory"; |
| 72 | ASSERT_TRUE(region_in_memory()); |
| 73 | ASSERT_EQ(CEILED_REGION_SIZE, MemoryLocker::instance().locked_bytes()); |
| 74 | ASSERT_EQ(0, MemoryLocker::instance().last_errno()); |
| 75 | ASSERT_EQ(0, MemoryLocker::instance().stop()); |
| 76 | } |
| 77 | |
| 78 | TEST_F(MemoryLockerTest, lock_regions_after_start) { |
| 79 | ::munmap(region, REGION_SIZE); |
nothing calls this directly
no test coverage detected