diff options
author | Jack He <siyuanh@google.com> | 2019-08-19 18:16:33 -0700 |
---|---|---|
committer | Hansong Zhang <hsz@google.com> | 2019-08-20 14:48:03 -0700 |
commit | b5360fbf16a18ace488e2be93a3100088094ff43 (patch) | |
tree | dfb8da25fddc0dd85a4c4d70cd651713500b2030 /gd/common | |
parent | e19c3a15aedadd1e832e251ba00630c0d9a98389 (diff) | |
download | bt-b5360fbf16a18ace488e2be93a3100088094ff43.tar.gz |
L2CAP: Add Classic Link Manager Implementation
* Implement ClassicLinkManager and APIs for classic fixed channel
* Implement mechanism to create new ACL connections using ACL manager
* Updated dependencies among internal L2CAP components
* Remove SetOnChannelFail() and other unused methods from
ClassicFixedChannelServiceImpl
* Add mocks and unit tests to verify the functionality of
ClassicLinkManager
* Add common/testing/bind_test_util.h so that we can bind lambdas with
capture in unit tests, although this is not allowed in production code
* Add error and result code for classic fixed channel service
registration failure and connection failures
Bug: 138261142
Test: bluetooth_test_gd, cert/run_cert.sh
Change-Id: Ib2794a0073dbc73f46b8c6fd5f5cf0ae1c8c559a
Diffstat (limited to 'gd/common')
-rw-r--r-- | gd/common/testing/bind_test_util.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/gd/common/testing/bind_test_util.h b/gd/common/testing/bind_test_util.h new file mode 100644 index 000000000..7db92045f --- /dev/null +++ b/gd/common/testing/bind_test_util.h @@ -0,0 +1,29 @@ +/* + * Copyright 2019 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#pragma once + +#include "base/test/bind_test_util.h" + +namespace bluetooth { +namespace common { +namespace testing { + +using base::BindLambdaForTesting; + +} // namespace testing +} // namespace common +} // namespace bluetooth |