Lines Matching refs:l2cap
49 class TestDynamicChannelService : public l2cap::classic::DynamicChannelService {
52 …l2cap::Psm psm, l2cap::classic::internal::DynamicChannelServiceManagerImpl* manager, os::Handler* … in TestDynamicChannelService()
56 class TestLink : public l2cap::internal::ILink {
63 void SendLeCredit(l2cap::Cid local_cid, uint16_t credit) {} in SendLeCredit()
65 void SendDisconnectionRequest(l2cap::Cid cid, l2cap::Cid remote_cid) { in SendDisconnectionRequest()
75 l2cap::classic::DynamicChannelConfigurationOption configuration_option, in ConnectChannel()
76 l2cap::Psm psm, in ConnectChannel()
77 l2cap::classic::DynamicChannelManager::OnConnectionOpenCallback on_open_callback, in ConnectChannel()
78 l2cap::classic::DynamicChannelManager::OnConnectionFailureCallback on_fail_callback) { in ConnectChannel()
88 l2cap::Psm psm, in RegisterService()
89 l2cap::classic::DynamicChannelConfigurationOption configuration_option, in RegisterService()
90 const l2cap::classic::SecurityPolicy& security_policy, in RegisterService()
91 … l2cap::classic::DynamicChannelManager::OnRegistrationCompleteCallback on_registration_complete, in RegisterService()
92 l2cap::classic::DynamicChannelManager::OnConnectionOpenCallback on_open_callback) { in RegisterService()
119 …void SetConnectionOnFail(l2cap::classic::DynamicChannelManager::ConnectionResult result, std::prom… in SetConnectionOnFail()
124 …void SetConnectionOnOpen(std::unique_ptr<l2cap::DynamicChannel> channel, std::promise<void> promis… in SetConnectionOnOpen()
129 l2cap::classic::DynamicChannelManager::OnRegistrationCompleteCallback on_registration_complete_{};
130 l2cap::classic::DynamicChannelManager::OnConnectionOpenCallback on_open_callback_{};
131 l2cap::classic::DynamicChannelManager::OnConnectionFailureCallback on_fail_callback_{};
144 class TestDynamicChannelManager : public l2cap::classic::DynamicChannelManager {
148 l2cap::classic::DynamicChannelConfigurationOption configuration_option, in ConnectChannel()
149 l2cap::Psm psm, in ConnectChannel()
150 l2cap::classic::DynamicChannelManager::OnConnectionOpenCallback on_open_callback, in ConnectChannel()
151 … l2cap::classic::DynamicChannelManager::OnConnectionFailureCallback on_fail_callback) override { in ConnectChannel()
156 l2cap::Psm psm, in RegisterService()
157 l2cap::classic::DynamicChannelConfigurationOption configuration_option, in RegisterService()
158 const l2cap::classic::SecurityPolicy& security_policy, in RegisterService()
159 … l2cap::classic::DynamicChannelManager::OnRegistrationCompleteCallback on_registration_complete, in RegisterService()
160 l2cap::classic::DynamicChannelManager::OnConnectionOpenCallback on_open_callback) override { in RegisterService()
168 class TestL2capClassicModule : public l2cap::classic::L2capClassicModule {
170 std::unique_ptr<l2cap::classic::DynamicChannelManager> GetDynamicChannelManager() override { in GetDynamicChannelManager()
259 …fake_registry_.InjectTestModule(&l2cap::classic::L2capClassicModule::Factory, test_l2cap_classic_m… in SetUp()
271 l2cap::classic::internal::testing::MockDynamicChannelServiceManagerImpl mock_;
334 l2cap::classic::DynamicChannelManager::ConnectionResult result{ in TEST_F()
337 .l2cap_connection_response_result = l2cap::ConnectionResponseResult::SUCCESS, in TEST_F()
366 l2cap::Psm psm = kPsm; in TEST_F()
367 l2cap::Cid local_cid = kCid; in TEST_F()
368 l2cap::Cid remote_cid = kCid2; in TEST_F()
370 std::shared_ptr<l2cap::internal::DynamicChannelImpl> impl = in TEST_F()
371 …std::make_shared<l2cap::internal::DynamicChannelImpl>(psm, local_cid, remote_cid, &test_link_, han… in TEST_F()
373 auto channel = std::make_unique<l2cap::DynamicChannel>(impl, handler_); in TEST_F()
416 l2cap::classic::DynamicChannelManager::RegistrationResult result{ in TEST_F()
417 l2cap::classic::DynamicChannelManager::RegistrationResult::SUCCESS, in TEST_F()
447 l2cap::classic::DynamicChannelManager::RegistrationResult result{ in TEST_F()
448 l2cap::classic::DynamicChannelManager::RegistrationResult::FAIL_DUPLICATE_SERVICE, in TEST_F()
454 ASSERT_EQ(psm, l2cap::kDefaultPsm); in TEST_F()
476 l2cap::classic::DynamicChannelManager::RegistrationResult result{ in TEST_F()
477 l2cap::classic::DynamicChannelManager::RegistrationResult::FAIL_INVALID_SERVICE, in TEST_F()
485 ASSERT_EQ(psm, l2cap::kDefaultPsm); in TEST_F()