| 11 | // Close devices or assert that they do not open. Otherwise there may be cross test pollution. |
| 12 | |
| 13 | TEST (BluetoothTest, OpenDevice_DeviceCanOpen_SuccessCodeReturned) |
| 14 | { |
| 15 | char mac[] = BRAINFLOW_TEST_BLUETOOTH_VALID_MAC; |
| 16 | |
| 17 | int result = bluetooth_open_device (BRAINFLOW_TEST_BLUETOOTH_VALID_PORT, mac); |
| 18 | EXPECT_EQ (result, (int)SocketBluetoothReturnCodes::STATUS_OK); |
| 19 | |
| 20 | bluetooth_close_device (mac); |
| 21 | } |
| 22 | |
| 23 | TEST (BluetoothTest, OpenDevice_DeviceFailedToOpen_ConnectErrorReturned) |
| 24 | { |
nothing calls this directly
no test coverage detected