mirror of
https://gitee.com/openharmony/communication_dsoftbus
synced 2024-11-23 08:49:59 +00:00
[test]:Add SoftBusBtInit to fill in btGapCallback
Signed-off-by: huxianghao <huxianghao@huawei.com>
This commit is contained in:
parent
b27e17ed3c
commit
27ef157699
@ -118,6 +118,10 @@ static testing::AssertionResult PrepareBtStateListener(MockBluetooth &mocker, in
|
||||
if (listenerId < 0) {
|
||||
return testing::AssertionFailure() << "SoftBusAddBtStateListener failed";
|
||||
}
|
||||
|
||||
int32_t ret = SoftBusBtInit();
|
||||
EXPECT_EQ(ret, SOFTBUS_OK);
|
||||
|
||||
if (MockBluetooth::btGapCallback == nullptr) {
|
||||
return testing::AssertionFailure() << "GapRegisterCallback is not invoke";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user