Searched refs:mock_le_manager (Results 1 – 3 of 3) sorted by relevance
/packages/modules/Bluetooth/system/rust/src/ |
D | connection.rs | 267 use super::{mocks::mock_le_manager::MockLeAclManager, *}; 281 let mock_le_manager = MockLeAclManager::new(); in test_single_direct_connection() localVariable 282 let connection_manager = ConnectionManager::new(mock_le_manager.clone()); in test_single_direct_connection() 288 assert_eq!(mock_le_manager.current_connection_mode(), Some(ConnectionMode::Direct)); in test_single_direct_connection() 289 assert_eq!(mock_le_manager.current_acceptlist().len(), 1); in test_single_direct_connection() 290 assert!(mock_le_manager.current_acceptlist().contains(&ADDRESS_1)); in test_single_direct_connection() 298 let mock_le_manager = MockLeAclManager::new(); in test_failed_direct_connection() localVariable 299 let connection_manager = ConnectionManager::new(mock_le_manager.clone()); in test_failed_direct_connection() 303 mock_le_manager.on_le_connect(ADDRESS_1, ERROR); in test_failed_direct_connection() 306 assert_eq!(mock_le_manager.current_connection_mode(), None); in test_failed_direct_connection() [all …]
|
/packages/modules/Bluetooth/system/rust/src/connection/ |
D | acceptlist_manager.rs | 111 le_manager::ErrorCode, mocks::mock_le_manager::MockActiveLeAclManager, 169 let mock_le_manager = MockActiveLeAclManager::new(); in test_add_to_direct_list() localVariable 170 let mut manager = LeAcceptlistManager::new(mock_le_manager.clone()); in test_add_to_direct_list() 179 assert_eq!(mock_le_manager.current_connection_mode(), Some(ConnectionMode::Direct)); in test_add_to_direct_list() 180 assert_eq!(mock_le_manager.current_acceptlist().len(), 1); in test_add_to_direct_list() 181 assert!(mock_le_manager.current_acceptlist().contains(&ADDRESS_1)); in test_add_to_direct_list() 187 let mock_le_manager = MockActiveLeAclManager::new(); in test_add_to_background_list() localVariable 188 let mut manager = LeAcceptlistManager::new(mock_le_manager.clone()); in test_add_to_background_list() 197 assert_eq!(mock_le_manager.current_connection_mode(), Some(ConnectionMode::Background)); in test_add_to_background_list() 198 assert_eq!(mock_le_manager.current_acceptlist().len(), 1); in test_add_to_background_list() [all …]
|
D | mocks.rs | 2 pub mod mock_le_manager; module
|