File tree Expand file tree Collapse file tree 7 files changed +61
-17
lines changed Expand file tree Collapse file tree 7 files changed +61
-17
lines changed Original file line number Diff line number Diff line change
1
+ #include " gtest/gtest.h"
2
+
3
+ /*
4
+ * Purpose of this test is just to be empty baseline
5
+ * that does nothing, but includes all source files
6
+ * in the build.
7
+ * Do not add any tests here
8
+ */
9
+
10
+ class EmptyBaseline : public testing ::Test {
11
+ virtual void SetUp ()
12
+ {
13
+ }
14
+
15
+ virtual void TearDown ()
16
+ {
17
+ }
18
+ };
19
+
20
+ TEST_F (EmptyBaseline, constructor)
21
+ {
22
+ EXPECT_TRUE (true );
23
+ }
Original file line number Diff line number Diff line change
1
+
2
+ ####################
3
+ # UNIT TESTS
4
+ ####################
5
+
6
+ set (unittest-includes ${unittest-includes}
7
+ .
8
+ ..
9
+ ../features/mbedtls/mbed-crypto/inc/mbedtls/
10
+ ../features/mbedtls/platform/inc/
11
+ ../features/frameworks/mbed-trace/mbed-trace/
12
+ )
13
+
14
+ set (unittest-sources
15
+ ../features/device_key/source/DeviceKey.cpp
16
+ )
17
+
18
+ set (unittest-test-sources
19
+ empty_baseline/empty_baseline.cpp
20
+ )
21
+
22
+ set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DMBED_CONF_PLATFORM_CTHUNK_COUNT_MAX=10 -DDEVICE_ANALOGIN -DDEVICE_ANALOGOUT -DDEVICE_CAN -DDEVICE_CRC -DDEVICE_ETHERNET -DDEVICE_FLASH -DDEVICE_I2C -DDEVICE_I2CSLAVE -DDEVICE_I2C_ASYNCH -DDEVICE_INTERRUPTIN -DDEVICE_LPTICKER -DDEVICE_PORTIN -DDEVICE_PORTINOUT -DDEVICE_PORTOUT -DDEVICE_PWMOUT -DDEVICE_QSPI -DDEVICE_SERIAL -DDEVICE_SERIAL_ASYNCH -DDEVICE_SERIAL_FC -DDEVICE_SPI -DDEVICE_SPISLAVE -DDEVICE_SPI_ASYNCH -DDEVICE_FLASH -DCOMPONENT_FLASHIAP" )
23
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DMBED_CONF_PLATFORM_CTHUNK_COUNT_MAX=10 -DDEVICE_ANALOGIN -DDEVICE_ANALOGOUT -DDEVICE_CAN -DDEVICE_CRC -DDEVICE_ETHERNET -DDEVICE_FLASH -DDEVICE_I2C -DDEVICE_I2CSLAVE -DDEVICE_I2C_ASYNCH -DDEVICE_INTERRUPTIN -DDEVICE_LPTICKER -DDEVICE_PORTIN -DDEVICE_PORTINOUT -DDEVICE_PORTOUT -DDEVICE_PWMOUT -DDEVICE_QSPI -DDEVICE_SERIAL -DDEVICE_SERIAL_ASYNCH -DDEVICE_SERIAL_FC -DDEVICE_SPI -DDEVICE_SPISLAVE -DDEVICE_SPI_ASYNCH -DDEVICE_FLASH -DCOMPONENT_FLASHIAP" )
Original file line number Diff line number Diff line change 20
20
#include " mbedtls/config.h"
21
21
#include " mbedtls/cmac.h"
22
22
#include " mbedtls/platform.h"
23
- #include " KVStore.h"
24
- #include " TDBStore.h"
25
- #include " KVMap.h"
26
- #include " kv_config.h"
23
+ #include " features/storage/kvstore/include/ KVStore.h"
24
+ #include " features/storage/kvstore/tdbstore/ TDBStore.h"
25
+ #include " features/storage/kvstore/kv_map/ KVMap.h"
26
+ #include " features/storage/kvstore/conf/ kv_config.h"
27
27
#include " mbed_wait_api.h"
28
- #include " stdlib.h"
28
+ #include < stdlib.h>
29
29
#include " platform/mbed_error.h"
30
30
#include < string.h>
31
31
#include " entropy.h"
32
- #include " platform_mbed.h"
33
32
#include " mbed_trace.h"
34
- #include " ssl_internal.h"
35
33
36
34
#define TRACE_GROUP " DEVKEY"
37
35
Original file line number Diff line number Diff line change 23
23
#include " platform/FileHandle.h"
24
24
#include " platform/DirHandle.h"
25
25
#include " platform/FileSystemLike.h"
26
- #include " BlockDevice.h"
26
+ #include " features/storage/blockdevice/ BlockDevice.h"
27
27
28
28
namespace mbed {
29
29
/* * \addtogroup file system */
Original file line number Diff line number Diff line change 14
14
* limitations under the License.
15
15
*/
16
16
17
- #include " KVStore.h"
18
- #include " KVMap.h"
19
- #include " kv_config.h"
17
+ #include " features/storage/kvstore/include/ KVStore.h"
18
+ #include " features/storage/kvstore/kv_map/ KVMap.h"
19
+ #include " features/storage/kvstore/conf/ kv_config.h"
20
20
#include < stdlib.h>
21
21
#include " string.h"
22
22
#include " mbed_error.h"
Original file line number Diff line number Diff line change 16
16
#ifndef _KV_MAP
17
17
#define _KV_MAP
18
18
19
- #include " KVStore.h"
19
+ #include " features/storage/kvstore/include/ KVStore.h"
20
20
#include " platform/PlatformMutex.h"
21
21
#include " platform/SingletonPtr.h"
22
- #include " BlockDevice.h"
23
- #include " FileSystem.h"
22
+ #include " features/storage/blockdevice/ BlockDevice.h"
23
+ #include " features/storage/filesystem/ FileSystem.h"
24
24
25
25
namespace mbed {
26
26
Original file line number Diff line number Diff line change 19
19
20
20
#include < stdint.h>
21
21
#include < stdio.h>
22
- #include " KVStore.h"
23
- #include " BlockDevice.h"
24
- #include " BufferedBlockDevice.h"
22
+ #include " features/storage/kvstore/include/ KVStore.h"
23
+ #include " features/storage/blockdevice/ BlockDevice.h"
24
+ #include " features/storage/blockdevice/ BufferedBlockDevice.h"
25
25
#include " PlatformMutex.h"
26
26
27
27
namespace mbed {
You can’t perform that action at this time.
0 commit comments