File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
features/FEATURE_BLE/targets/TARGET_CORDIO/TESTS/cordio_hci/driver Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -70,12 +70,25 @@ static void test_stack_initialization() {
70
70
// At this point ble is suppose to be initialized; inspect the various state
71
71
// of the stack.
72
72
TEST_ASSERT_EQUAL (INITIALIZATION_SUCCESS, initialization_state);
73
+
74
+ // ensure that the size of ACL buffer of the controller has been filled in
75
+ // during the initialisation
73
76
TEST_ASSERT_NOT_EQUAL (0 , hciCoreCb.bufSize );
77
+
78
+ // Ensure that the total number of buffer available in the controller has
79
+ // been filled in during the initialisation
74
80
TEST_ASSERT_NOT_EQUAL (0 , hciCoreCb.numBufs );
81
+
82
+ // Ensure that at least one HCI buffer is available
75
83
TEST_ASSERT_NOT_EQUAL (0 , hciCoreCb.availBufs );
76
84
85
+ // Ensure that allowed LE state has been filled in during initialisation
86
+ // Note: see BT command LE Read Supported States Command in BT specification
77
87
uint8_t invalid_le_states[HCI_LE_STATES_LEN] = { 0 };
78
88
TEST_ASSERT_NOT_EQUAL (0 , memcmp (invalid_le_states, hciCoreCb.leStates , HCI_LE_STATES_LEN));
89
+
90
+ // Ensure that the size of the whitelist of the controller has been filled
91
+ // in during the initialisation
79
92
TEST_ASSERT_NOT_EQUAL (0 , hciCoreCb.whiteListSize );
80
93
81
94
// Note: cannot test supported features are the list may be null
You can’t perform that action at this time.
0 commit comments