Paul Szczepanek
5ff2b23ec9
null pointers
2021-02-10 17:35:12 +00:00
Vincent Coubard
ce0917f00b
Merge pull request #14254 from pan-/fake-gatt-server-add
...
Add implementation of MockGattServer::addService
2021-02-10 16:24:53 +00:00
Paul Szczepanek
293883d3e0
offer delete mocks function
2021-02-10 14:39:31 +00:00
Vincent Coubard
a3a507d9ca
Fix fake event queue process event.
...
The result of remove_if was fed into erase without checking something
was actually removed.
2021-02-10 11:26:25 +00:00
Vincent Coubard
0feaae6d18
Add fake implementation for GattServerMock::addService.
...
It is not easy to write expectations for this function:
- The data in input is a complex tree that is not comparable.
- The data in input is modified: The attributes of each element of
the tree is added by the server.
To ease test, a default implementation has been added but it is
still possible to override it or set expectations.
That default implementation set unique attribute handles for
each element of the service and _copy_ it in the GattServerMock.
The copy does *not* follow standard BLE API, it is a _POD_ where
each element of the object is accessible as a field. Childs are
stored in vector to ease iteration and memory management.
The representation of the services registered into the mock are
accessible in GattServerMock::services.
2021-02-10 11:26:25 +00:00
Vincent Coubard
26b40e7279
Fix mbed_retarget.h stub on Mac OS.
...
Some parts of the stat structure are already defined by the system as macros.
The solution is to disable them. If these members are necessary for unit test,
a deeper integration is required, the best being to use the native structure.
2021-02-10 11:26:16 +00:00
Paul Szczepanek
164bb83274
Add Bluetooth stubs as libs ( #14229 )
...
* add stubs as libs
* split up stubs and fakes
* use correct types in fake event queue
* allow arguments in fake event queue callbacks
* remove dispatch forever
* remove redundant call signature
* return false on cancel with invalid id
* return queue size
2021-02-09 14:52:30 +00:00
Paul Szczepanek
877a95a778
BLE Mock: remove (void) ( #14211 )
2021-01-29 08:46:52 +00:00
Paul Szczepanek
c50315e9f0
Add Bluetooth user facing mocks ( #14200 )
...
* upgrade gtest to 1.10
* fix template name
* add mocks for all methods
2021-01-27 19:08:22 +00:00
Paul Szczepanek
78b113b16c
base for ble unittests - BLE instance and mocked clasess ( #14191 )
...
* base for ble unittests - BLE instance and mocked clasess
* add default ble features to unittests
* add stubs
* move the files for includes to work
* default undefined ble roles to true
* add sample unittest
* accidental regex in licence removed
* template for ble unit tests
* rename to template
* add readme to unit test folder
2021-01-27 09:37:22 +00:00
Lingkai Dong
b3c13bbea9
Update UNITTEST for kvstore
2020-12-09 17:20:42 +00:00
Arto Kinnunen
d001b7a441
Update unittests
2020-11-20 10:06:57 +02:00
Martin Kojtal
468372e759
Merge pull request #13492 from talorion/fix-PwmOut-resets-after-suspend
...
Fix pwm out resets after suspend
2020-09-10 12:40:18 +01:00
talorion
191ec42dd6
pwmout - UNITTESTS - add read methods for period and pulsewidth
2020-09-02 13:39:16 +02:00
Lingkai Dong
af1950fb16
Add include/ path for mbed-trace
2020-09-02 12:30:59 +01:00
Lingkai Dong
a88438ce04
Move mbed-trace into platform
2020-09-02 12:30:59 +01:00
Rajkumar Kanagaraj
fafa0c41ed
Update UNITTESTS header reference
2020-08-25 16:06:56 +01:00
Rajkumar Kanagaraj
07511d39b1
Fix UNITTESTS build failure
2020-08-14 12:32:50 +01:00
Ashok Rao
9977da64af
Incorporating review comments
2020-08-12 11:18:39 +01:00
Ashok Rao
da9fd2a11b
Mbed OS will soon be changing directory structure to the below:
...
```
connectivity
├── netsocket
├── lorawan
│ ├── mbed_lib.json // nanostack-interface's mbed_lib.json
│ ├── lorastack
│ ├── tests
├── nanostack
├── cellular
├── ...
```
This PR is a part of a wider \connectivity refactoring and implements the above new directory structure for \lorawan.
2020-08-12 11:06:36 +01:00
George Psimenos
54d8fe74ca
Update mbedtls paths
2020-08-11 11:32:08 +01:00
Ashok Rao
8d7c7555dc
Fixing UNITTESTS
2020-08-05 17:09:21 +01:00
Anna Bridge
c85b76ad05
Merge pull request #13298 from ashok-rao/platform-refactor
...
Refactoring \platform directory
2020-08-05 13:32:42 +01:00
Ashok Rao
a78554ebfa
Fixing .astyleignore conflict
2020-07-31 15:50:03 +01:00
George Psimenos
973c1dc2ff
Move drivers unit tests
2020-07-31 10:04:36 +01:00
George Psimenos
99803be98f
Relocate platform unit tests
2020-07-28 10:16:47 +01:00
George Psimenos
76f37fb2bc
Restructure events directory & move tests
2020-07-28 09:17:19 +01:00
Martin Kojtal
6bd52719f6
Merge pull request #13335 from rajkan01/netsocket_dir_restructure
...
Restructure netsocket directory
2020-07-27 14:35:27 +01:00
Rajkumar Kanagaraj
59072e9f58
Update documentation reference
2020-07-23 08:31:52 -07:00
Martin Kojtal
1d9c13ed5b
Merge pull request #13307 from rajkan01/storage_kv_dir_resturcture
...
Restructure storage kvstore directory
2020-07-23 15:59:07 +01:00
Rajkumar Kanagaraj
21325e281a
Update netsocket header and source reference in other libraries
2020-07-23 06:22:15 -07:00
Rajkumar Kanagaraj
b1a5e1b72d
Move Unittests closure to library
2020-07-23 06:15:13 -07:00
Lingkai Dong
22ea1e8846
Update unittest.cmake files for cellular
2020-07-22 11:06:23 +01:00
Lingkai Dong
5905438fb4
Move cellular unit tests into the library
2020-07-22 11:06:23 +01:00
Lingkai Dong
2b24a7a31e
Update paths to cellular framework
2020-07-22 11:06:23 +01:00
Rajkumar Kanagaraj
d956116c36
Update greentea config, header reference
2020-07-20 07:33:52 -07:00
Rajkumar Kanagaraj
bb14b9ff8f
move greentea and UNITTESTS closure to library
2020-07-20 07:28:53 -07:00
Martin Kojtal
3a8989a247
Merge pull request #13300 from rajkan01/storage_fsdir_restructure
...
Restructure storage filesystem directory
2020-07-20 15:19:17 +01:00
Martin Kojtal
2b60c871d8
Merge pull request #13264 from ashok-rao/rtos-refactor
...
Moving around a few items within \rtos
2020-07-20 10:39:19 +01:00
Rajkumar Kanagaraj
f58c5631c0
Fix UNITTESTS issue
2020-07-19 10:02:32 -07:00
Rajkumar Kanagaraj
41f0796484
Move greentea test closure to library
2020-07-17 12:42:11 -07:00
Anna Bridge
ca2f980661
Merge pull request #13273 from rajkan01/storage_rb_dir_restructure
...
Restructure storage blockdevice directory
2020-07-17 15:56:33 +01:00
Anna Bridge
f5801aa681
Merge pull request #13254 from LDong-Arm/move_nanostack-libservice
...
Move nanostack-libservice into connectivity/libraries
2020-07-17 14:40:50 +01:00
Rajkumar Kanagaraj
3bcb4eb260
Unittests and Astyle:
...
- Update the header reference and source reference in cmake
- Update astyleignore to ignore blockdevice UNITTESTS
- Removed the redundant debug log
2020-07-17 03:12:03 -07:00
Rajkumar Kanagaraj
d47689be8e
Move storgae unittests
2020-07-17 03:10:58 -07:00
Anna Bridge
ab5af1e4f0
Merge pull request #13244 from rajkan01/storage_restructure_initial
...
Move storage from features into mbed-os root directory
2020-07-17 10:52:56 +01:00
Rajkumar Kanagaraj
fdaaffdc7a
Stroage unittest directory restructure
...
- Move UNITTESTS/features/storage to UNITTESTS/storage
- update the .cmake files to refer the new directory
2020-07-10 14:59:53 +01:00
Lingkai Dong
08aec8b61c
UNITTESTS: update paths to nanostack-libservice
2020-07-08 17:25:39 +01:00
Lingkai Dong
a884f1ad43
UNITTESTS: Add comment for glob pattern
2020-07-08 16:39:29 +01:00
Lingkai Dong
817ff8ed8f
Allow unittest.cmake from the whole mbed-os
2020-07-08 16:39:29 +01:00