| 73 | class VirtualMemoryTest : public ::testing::Test { |
| 74 | protected: |
| 75 | void SetUp() override { |
| 76 | BasicInfoSingleton::create(); |
| 77 | BasicInfoSingleton::instance().physical_memory_addr = 0x80000000; |
| 78 | BasicInfoSingleton::instance().physical_memory_size = 0x10000000; |
| 79 | MockAllocator::GetInstance().Reset(); |
| 80 | |
| 81 | env_state_.InitializeCores(1); |
| 82 | env_state_.SetCurrentThreadEnvironment(); |
| 83 | env_state_.BindThreadToCore(std::this_thread::get_id(), 0); |
| 84 | } |
| 85 | |
| 86 | void TearDown() override { |
| 87 | MockAllocator::GetInstance().Reset(); |
nothing calls this directly
no test coverage detected