Skip to content

Commit f9360eb

Browse files
committed
Fix BLE unit tests compilation
1 parent b575fd6 commit f9360eb

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

src/ble/tests/TestBleErrorStr.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,11 @@
2828
#include <stdint.h>
2929
#include <string.h>
3030

31-
#include <ble/BleError.h>
3231
#include <lib/core/ErrorStr.h>
3332

33+
#define _CHIP_BLE_BLE_H
34+
#include <ble/BleError.h>
35+
3436
#include <gtest/gtest.h>
3537

3638
using namespace chip;

src/ble/tests/TestBleUUID.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
*
2525
*/
2626

27+
#define _CHIP_BLE_BLE_H
2728
#include <ble/BleUUID.h>
2829

2930
#include <gtest/gtest.h>

src/ble/tests/TestBtpEngine.cpp

+4-2
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,13 @@
2020
#include <cstdint>
2121
#include <numeric>
2222

23-
#include <ble/BleLayer.h>
24-
#include <ble/BtpEngine.h>
2523
#include <lib/support/CHIPMem.h>
2624
#include <lib/support/logging/CHIPLogging.h>
2725

26+
#define _CHIP_BLE_BLE_H
27+
#include <ble/BleLayer.h>
28+
#include <ble/BtpEngine.h>
29+
2830
#include <gtest/gtest.h>
2931

3032
using namespace chip;

0 commit comments

Comments
 (0)