Searched refs:MockDatastoreEvents (Results 1 – 5 of 5) sorted by relevance
/packages/modules/Bluetooth/system/rust/src/gatt/mocks/ |
D | mock_datastore.rs | 19 pub struct MockDatastore(mpsc::UnboundedSender<MockDatastoreEvents>); 23 pub fn new() -> (Self, UnboundedReceiver<MockDatastoreEvents>) { in new() 31 pub enum MockDatastoreEvents { enum 60 self.0.send(MockDatastoreEvents::Read(tcb_idx, handle, attr_type, tx)).unwrap(); in read() 75 .send(MockDatastoreEvents::Write(tcb_idx, handle, attr_type, data.to_vec(), tx)) in write()
|
/packages/modules/Bluetooth/system/rust/src/gatt/ |
D | callbacks.rs | 215 gatt::mocks::mock_datastore::{MockDatastore, MockDatastoreEvents}, 247 MockDatastoreEvents::Read(TCB_IDX, HANDLE, AttributeBackingType::Characteristic, _) in test_regular_read_invoke() 270 let MockDatastoreEvents::Read(_, _, _, resp) = resp else { in test_regular_read_response() localVariable 323 MockDatastoreEvents::Write( in test_write_request_invoke() 353 let MockDatastoreEvents::Write(_, _, _, _, resp) = resp else { in test_write_request_response() localVariable
|
/packages/modules/Bluetooth/system/rust/tests/ |
D | gatt_server_test.rs | 13 mock_datastore::{MockDatastore, MockDatastoreEvents}, 83 ) -> UnboundedReceiver<MockDatastoreEvents> { in create_server_and_open_connection() argument 197 let tx = if let MockDatastoreEvents::Read( in test_characteristic_read() 241 let (tx, written_data) = if let MockDatastoreEvents::Write( in test_characteristic_write() 349 let (tx, written_data) = if let MockDatastoreEvents::Write( in test_write_to_descriptor() 420 let MockDatastoreEvents::Read(TCB_IDX, _, _, tx) = data_rx_1.recv().await.unwrap() else { in test_multiple_servers() localVariable 425 let MockDatastoreEvents::Read(ANOTHER_TCB_IDX, _, _, tx) = data_rx_2.recv().await.unwrap() in test_multiple_servers() localVariable
|
/packages/modules/Bluetooth/system/rust/src/gatt/server/ |
D | gatt_database.rs | 521 mock_datastore::{MockDatastore, MockDatastoreEvents}, 818 let MockDatastoreEvents::Read( in test_single_characteristic_value() localVariable 946 let MockDatastoreEvents::Write( in test_write_single_characteristic_callback_invoked() localVariable 990 let MockDatastoreEvents::Write(_, _, _, _, reply) = in test_write_single_characteristic_recv_response() localVariable 1065 let MockDatastoreEvents::Read( in test_single_descriptor_declaration() localVariable 1117 let MockDatastoreEvents::Write( in test_write_descriptor() localVariable 1249 let MockDatastoreEvents::Read( in test_multiple_datastores() localVariable
|
D | att_server_bearer.rs | 231 mocks::mock_datastore::{MockDatastore, MockDatastoreEvents}, 374 let MockDatastoreEvents::Read( in test_concurrent_transaction_failure() localVariable
|