class VulkanLoader

Defined at line 43 of file ../../src/graphics/bin/vulkan_loader/test/test.cc

This file contains hermetic tests of the Vulkan loader service. A hermetic copy of the service

and its dependencies are created inside RealmBuilder, using test_realm.cm as a template. The

/dev/class/gpu and /dev/class/goldfish-pipe server implementations are housed in

pkg-server-main.cc, along with a fake Magma MSD implementation.

The Magma MSD implementation provides an ICD component path of

fuchsia-pkg://fuchsia.com/vulkan_loader_tests#meta/test_vulkan_driver.cm for the vulkan loader to

read from. The "ICD" contained there has a normal manifest.json and libvulkan_fake.json file, but

there's no real ICD - instead bin/pkg-server (the same pkg-server executable as above) is used as

the ICD shared library, since the contents don't matter for these tests as long as the file is

marked executable.

Public Methods

bool is_trusted ()

Defined at line 45 of file ../../src/graphics/bin/vulkan_loader/test/test.cc

Protected Methods

void SetUp ()

Defined at line 48 of file ../../src/graphics/bin/vulkan_loader/test/test.cc

void TearDown ()

Defined at line 77 of file ../../src/graphics/bin/vulkan_loader/test/test.cc

component_testing::RealmRoot & realm ()

Defined at line 79 of file ../../src/graphics/bin/vulkan_loader/test/test.cc

fidl::WireSyncClient<fuchsia_vulkan_loader::Loader> const & loader ()

Defined at line 81 of file ../../src/graphics/bin/vulkan_loader/test/test.cc

zx::result<zx::vmo> GetIcd (std::string_view icd_filename)

Defined at line 83 of file ../../src/graphics/bin/vulkan_loader/test/test.cc