class FlowControlChecker

Defined at line 45 of file ../../src/graphics/magma/lib/magma_service/sys_driver/tests/test_primary_fidl_server.cc

Included by TestPlatformConnection; validates that each test checks for flow control.

Since flow control values are written by the server (IPC) thread and read by the main

test thread, we lock the shared data mutex to ensure safety of memory accesses.

Public Members

weak_ptr connection_
shared_ptr client_connection_
bool flow_control_checked_
bool flow_control_skipped_
uint64_t messages_consumed_start_
uint64_t bytes_imported_start_
uint64_t messages_inflight_start_
uint64_t bytes_inflight_start_

Public Methods

void FlowControlChecker (std::shared_ptr<msd::internal::PrimaryFidlServer> connection, std::shared_ptr<magma::PlatformConnectionClient> client_connection)

Defined at line 47 of file ../../src/graphics/magma/lib/magma_service/sys_driver/tests/test_primary_fidl_server.cc

void ~FlowControlChecker ()

Defined at line 51 of file ../../src/graphics/magma/lib/magma_service/sys_driver/tests/test_primary_fidl_server.cc

void Init (std::mutex & mutex)

Defined at line 57 of file ../../src/graphics/magma/lib/magma_service/sys_driver/tests/test_primary_fidl_server.cc

void Release ()

Defined at line 67 of file ../../src/graphics/magma/lib/magma_service/sys_driver/tests/test_primary_fidl_server.cc

void Check (uint64_t messages, uint64_t bytes, std::mutex & mutex)

Defined at line 72 of file ../../src/graphics/magma/lib/magma_service/sys_driver/tests/test_primary_fidl_server.cc

void Skip ()

Defined at line 87 of file ../../src/graphics/magma/lib/magma_service/sys_driver/tests/test_primary_fidl_server.cc