class LoaderServiceTest
Defined at line 36 of file ../../src/lib/loader_service/loader_service_test_fixture.h
Public Methods
void LoaderServiceTest ()
Defined at line 38 of file ../../src/lib/loader_service/loader_service_test_fixture.h
void TearDown ()
Defined at line 40 of file ../../src/lib/loader_service/loader_service_test_fixture.cc
template <typename T>
void CreateTestLoader (const std::vector<TestDirectoryEntry> & config, std::shared_ptr<T> * loader)
Either this or CreateTestDirectory should only be called once per test case. This would be in
SetUp but we want to allow test defined directory contents.
Defined at line 47 of file ../../src/lib/loader_service/loader_service_test_fixture.h
void CreateTestDirectory (const std::vector<TestDirectoryEntry> & config, fbl::unique_fd * root_fd)
Either this or CreateTestLoader should only be called once per test case. This would be in
SetUp but we want to allow test defined directory contents.
Defined at line 49 of file ../../src/lib/loader_service/loader_service_test_fixture.cc
void AddDirectoryEntry (const fbl::RefPtr<memfs::VnodeDir> & root, TestDirectoryEntry entry)
Add a directory entry to the given VnodeDir. Can be used to add entries mid-test case using
root_dir() below.
Defined at line 74 of file ../../src/lib/loader_service/loader_service_test_fixture.cc
async::Loop & fs_loop ()
Defined at line 78 of file ../../src/lib/loader_service/loader_service_test_fixture.h
async::Loop & loader_loop ()
Defined at line 79 of file ../../src/lib/loader_service/loader_service_test_fixture.h
fbl::RefPtr<memfs::VnodeDir> & root_dir ()
Defined at line 80 of file ../../src/lib/loader_service/loader_service_test_fixture.h
void LoadObject (fidl::WireSyncClient<fuchsia_ldsvc::Loader> & client, const std::string & name, zx::result<std::string> expected)
Exercise a LoadObject call and assert that the result matches `expected`.
This takes a non-const reference because LLCPP SyncClient's generated methods are non-const.
Defined at line 119 of file ../../src/lib/loader_service/loader_service_test_fixture.cc
void Config (fidl::WireSyncClient<fuchsia_ldsvc::Loader> & client, const std::string & config, zx::result<zx_status_t> expected)
Exercise a Config call and assert that the result matches `expected`.
This takes a non-const reference because LLCPP SyncClient's generated methods are non-const.
Defined at line 142 of file ../../src/lib/loader_service/loader_service_test_fixture.cc
zx::result<zx::unowned_resource> GetVmexResource ()
Helper function to interact with fuchsia.kernel.VmexResource
Defined at line 152 of file ../../src/lib/loader_service/loader_service_test_fixture.cc