@@ -76,12 +76,6 @@ extern "C" {
76
76
class TestBleSecure
77
77
{
78
78
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
- }
85
79
86
80
void HandleBleSecureConnect (bool aConnected, bool BleConnectionOpen)
87
81
{
@@ -97,6 +91,12 @@ class TestBleSecure
97
91
bool mIsBleConnectionOpen = false ;
98
92
};
99
93
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
+ }
100
100
101
101
void TestTcat (void )
102
102
{
@@ -120,8 +120,8 @@ void TestTcat(void)
120
120
121
121
// Validate BLE secure and Tcat start APIs
122
122
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 );
125
125
SuccessOrQuit (otBleSecureTcatStart (instance, &mVendorInfo , nullptr ));
126
126
127
127
// Validate connection callbacks when platform informs that peer has connected/disconnected
0 commit comments