MCPcopy Create free account
hub / github.com/Simple-XX/SimpleKernel / SetUp

Method SetUp

tests/unit_test/virtual_memory_test.cpp:75–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73class 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();

Callers

nothing calls this directly

Calls 4

InitializeCoresMethod · 0.80
BindThreadToCoreMethod · 0.80
ResetMethod · 0.45

Tested by

no test coverage detected