Skip to content

Commit 4b3a8ba

Browse files
test
1 parent 9a73544 commit 4b3a8ba

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

tests/unit/test_tcat.cpp

+8-8
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,6 @@ extern "C" {
7676
class TestBleSecure
7777
{
7878
public:
79-
static void HandleBleSecureConnect(otInstance *aInstance, bool aConnected, bool aBleConnectionOpen, void *aContext)
80-
{
81-
OT_UNUSED_VARIABLE(aInstance);
82-
83-
static_cast<TestBleSecure *>(aContext)->HandleBleSecureConnect(aConnected, aBleConnectionOpen);
84-
}
8579

8680
void HandleBleSecureConnect(bool aConnected, bool BleConnectionOpen)
8781
{
@@ -97,6 +91,12 @@ class TestBleSecure
9791
bool mIsBleConnectionOpen = false;
9892
};
9993

94+
static void HandleBleSecureConnect(otInstance *aInstance, bool aConnected, bool aBleConnectionOpen, void *aContext)
95+
{
96+
OT_UNUSED_VARIABLE(aInstance);
97+
98+
static_cast<TestBleSecure *>(aContext)->HandleBleSecureConnect(aConnected, aBleConnectionOpen);
99+
}
100100

101101
void TestTcat(void)
102102
{
@@ -120,8 +120,8 @@ void TestTcat(void)
120120

121121
// Validate BLE secure and Tcat start APIs
122122
VerifyOrQuit(otBleSecureTcatStart(instance, &mVendorInfo, nullptr) == kErrorInvalidState);
123-
SuccessOrQuit(otBleSecureStart(instance, &ble.HandleBleSecureConnect, nullptr, true, &ble));
124-
VerifyOrQuit(otBleSecureStart(instance, &ble.HandleBleSecureConnect, nullptr, true, nullptr) == kErrorAlready);
123+
SuccessOrQuit(otBleSecureStart(instance, HandleBleSecureConnect, nullptr, true, &ble));
124+
VerifyOrQuit(otBleSecureStart(instance, HandleBleSecureConnect, nullptr, true, nullptr) == kErrorAlready);
125125
SuccessOrQuit(otBleSecureTcatStart(instance, &mVendorInfo, nullptr));
126126

127127
// Validate connection callbacks when platform informs that peer has connected/disconnected

0 commit comments

Comments
 (0)