MCPcopy Create free account
hub / github.com/brainflow-dev/brainflow / TEST

Function TEST

src/tests/utils/bluetooth/bluetooth_functions_unittest.cpp:13–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11// Close devices or assert that they do not open. Otherwise there may be cross test pollution.
12
13TEST (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
23TEST (BluetoothTest, OpenDevice_DeviceFailedToOpen_ConnectErrorReturned)
24{

Callers

nothing calls this directly

Calls 5

bluetooth_open_deviceFunction · 0.85
bluetooth_close_deviceFunction · 0.85
bluetooth_get_dataFunction · 0.85
bluetooth_write_dataFunction · 0.85

Tested by

no test coverage detected