class TestMagmaSyncFile

Defined at line 26 of file ../../src/graphics/magma/tests/integration/test_magma_sync_file.cc

Public Members

static const char *const kDeviceNameVirtioMagma

Public Methods

bool is_valid_handle (magma_handle_t handle)

Defined at line 30 of file ../../src/graphics/magma/tests/integration/test_magma_sync_file.cc

std::string device_name ()

Defined at line 34 of file ../../src/graphics/magma/tests/integration/test_magma_sync_file.cc

void SetUp ()

Defined at line 36 of file ../../src/graphics/magma/tests/integration/test_magma_sync_file.cc

void TearDown ()

Defined at line 51 of file ../../src/graphics/magma/tests/integration/test_magma_sync_file.cc

int fd ()

Defined at line 60 of file ../../src/graphics/magma/tests/integration/test_magma_sync_file.cc

magma_connection_t connection ()

Defined at line 62 of file ../../src/graphics/magma/tests/integration/test_magma_sync_file.cc

uint64_t get_ns_monotonic ()

Defined at line 64 of file ../../src/graphics/magma/tests/integration/test_magma_sync_file.cc

void CheckPoll (int fd, magma_semaphore_t semaphore, int expected_status)

Defined at line 72 of file ../../src/graphics/magma/tests/integration/test_magma_sync_file.cc

void Test (magma_semaphore_t semaphore, const char * expected_name, int fd, std::vector<int> & initial_fence_state, bool one_shot)

Retrieve the sync file info and check status.

If a magma semaphore is provided, use it to signal and reset the sync file while checking info.

Defined at line 113 of file ../../src/graphics/magma/tests/integration/test_magma_sync_file.cc

int CreateMergedSyncFile (TestMergeType merge_type, std::vector<magma_semaphore_t> * semaphores_out)

Defined at line 250 of file ../../src/graphics/magma/tests/integration/test_magma_sync_file.cc

void TestMerge (TestMergeType merge_type, bool one_shot)

Defined at line 314 of file ../../src/graphics/magma/tests/integration/test_magma_sync_file.cc

void TestMultiPoll (uint32_t count)

Defined at line 341 of file ../../src/graphics/magma/tests/integration/test_magma_sync_file.cc

void TestMultiEpollWait (uint32_t count)

Defined at line 412 of file ../../src/graphics/magma/tests/integration/test_magma_sync_file.cc

void TestMultiMergedEpollCancel (uint32_t count)

Defined at line 485 of file ../../src/graphics/magma/tests/integration/test_magma_sync_file.cc

void TestImportMergedMultiPoll (uint32_t count)

Tests import of a merged sync file into a (parent) magma semaphore.

Defined at line 580 of file ../../src/graphics/magma/tests/integration/test_magma_sync_file.cc

Enumerations

enum TestMergeType
Name Value
NONE_SIGNALED 0
FIRST_SIGNALED 1
SECOND_SIGNALED 2
MERGE_SELF 3
MERGE_PAIR_OF_PAIRS 4

Defined at line 242 of file ../../src/graphics/magma/tests/integration/test_magma_sync_file.cc