SimpleKernel 1.17.0
Loading...
Searching...
No Matches
VfsTest Class Reference
Inheritance diagram for VfsTest:
Inheritance graph
Collaboration diagram for VfsTest:
Collaboration graph

Protected Member Functions

void SetUp () override
 
void TearDown () override
 

Protected Attributes

test_env::TestEnvironmentState env_state_
 

Detailed Description

Definition at line 83 of file vfs_test.cpp.

Member Function Documentation

◆ SetUp()

void VfsTest::SetUp ( )
inlineoverrideprotected

Definition at line 85 of file vfs_test.cpp.

85 {
88 env_state_.BindThreadToCore(std::this_thread::get_id(), 0);
89 auto result = vfs::Init();
90 EXPECT_TRUE(result.has_value());
91 }
test_env::TestEnvironmentState env_state_
Definition vfs_test.cpp:95
void BindThreadToCore(std::thread::id tid, size_t core_id)
将指定线程绑定到核心
void InitializeCores(size_t num_cores)
初始化指定数量的核心
void SetCurrentThreadEnvironment()
设置当前线程的环境实例指针
auto Init() -> Expected< void >
VFS 全局初始化
Definition vfs.cpp:80
#define EXPECT_TRUE(cond, msg)
Here is the call graph for this function:

◆ TearDown()

void VfsTest::TearDown ( )
inlineoverrideprotected

Definition at line 93 of file vfs_test.cpp.

void ClearCurrentThreadEnvironment()
清除当前线程的环境实例指针
Here is the call graph for this function:

Member Data Documentation

◆ env_state_

test_env::TestEnvironmentState VfsTest::env_state_
protected

Definition at line 95 of file vfs_test.cpp.


The documentation for this class was generated from the following file: