|
3 | 3 |
|
4 | 4 | #include "WiFiInterface.h"
|
5 | 5 |
|
| 6 | +/** Get WiFiInterface based on provided |
| 7 | + * app_json. */ |
6 | 8 | WiFiInterface *get_interface(void);
|
7 | 9 |
|
8 |
| -/* Test cases */ |
| 10 | +/* |
| 11 | + * Test cases |
| 12 | + */ |
| 13 | + |
| 14 | +/** Test that constructor of the driver works. */ |
9 | 15 | void wifi_constructor(void);
|
| 16 | + |
| 17 | +/** This test case is to test whether the driver accepts valid credentials and reject ones that are not valid. */ |
10 | 18 | void wifi_set_credential(void);
|
| 19 | + |
| 20 | +/** Test validity of WiFiInterface::set_channel(). */ |
11 | 21 | void wifi_set_channel(void);
|
| 22 | + |
| 23 | +/** Test WiFiInterface::get_rssi() API. |
| 24 | + * When connected, it should return valid RSSI value. When unconnected it should return 0. */ |
12 | 25 | void wifi_get_rssi(void);
|
| 26 | + |
| 27 | +/** Test WiFiInterface::connect(ssid, pass, security, channel) with NULL parameters */ |
13 | 28 | void wifi_connect_params_null(void);
|
| 29 | + |
| 30 | +/** Test WiFiInterface::connect(ssid, pass, security) with valid parameters for unsecure network */ |
14 | 31 | void wifi_connect_params_valid_unsecure(void);
|
| 32 | + |
| 33 | +/** Test WiFiInterface::connect(ssid, pass, security) with valid parameters for secure network */ |
15 | 34 | void wifi_connect_params_valid_secure(void);
|
| 35 | + |
| 36 | +/** Test WiFiInterface::connect(ssid, pass, security, channel) with valid parameters for secure network using channel specified. */ |
16 | 37 | void wifi_connect_params_channel(void);
|
| 38 | + |
| 39 | +/** Test WiFiInterface::connect(ssid, pass, security, channel) with valid parameters for secure network using wrong channel number. */ |
17 | 40 | void wifi_connect_params_channel_fail(void);
|
| 41 | + |
| 42 | +/** Test WiFiInterface::connect() without parameters. Use set_credentials() for setting parameters. */ |
18 | 43 | void wifi_connect(void);
|
| 44 | + |
| 45 | +/** Test WiFiInterface::connect() without parameters. Don't set parameters with set_credentials() */ |
19 | 46 | void wifi_connect_nocredentials(void);
|
| 47 | + |
| 48 | +/** Test WiFiInterface::connect() without parameters. Use secure settings for set_credentials. */ |
20 | 49 | void wifi_connect_secure(void);
|
| 50 | + |
| 51 | +/** Test WiFiInterface::connect() failing with wrong password. */ |
21 | 52 | void wifi_connect_secure_fail(void);
|
| 53 | + |
| 54 | +/** Test WiFiInterface::connect() - disconnect() repeatition works. */ |
22 | 55 | void wifi_connect_disconnect_repeat(void);
|
| 56 | + |
| 57 | +/** Call WiFiInterface::scan() with null parameters to get number of networks available. */ |
23 | 58 | void wifi_scan_null(void);
|
| 59 | + |
| 60 | +/** Call WiFiInterface::scan() with valid accesspoint list allocated */ |
24 | 61 | void wifi_scan(void);
|
25 | 62 |
|
26 | 63 | #endif //WIFI_TESTS_H
|
0 commit comments