Skip to content

Commit 80198f2

Browse files
author
Seppo Takalo
committed
Add Doxygen documentation for testcases.
1 parent 72e7c32 commit 80198f2

File tree

1 file changed

+38
-1
lines changed

1 file changed

+38
-1
lines changed

TESTS/network/wifi/wifi_tests.h

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,61 @@
33

44
#include "WiFiInterface.h"
55

6+
/** Get WiFiInterface based on provided
7+
* app_json. */
68
WiFiInterface *get_interface(void);
79

8-
/* Test cases */
10+
/*
11+
* Test cases
12+
*/
13+
14+
/** Test that constructor of the driver works. */
915
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. */
1018
void wifi_set_credential(void);
19+
20+
/** Test validity of WiFiInterface::set_channel(). */
1121
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. */
1225
void wifi_get_rssi(void);
26+
27+
/** Test WiFiInterface::connect(ssid, pass, security, channel) with NULL parameters */
1328
void wifi_connect_params_null(void);
29+
30+
/** Test WiFiInterface::connect(ssid, pass, security) with valid parameters for unsecure network */
1431
void wifi_connect_params_valid_unsecure(void);
32+
33+
/** Test WiFiInterface::connect(ssid, pass, security) with valid parameters for secure network */
1534
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. */
1637
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. */
1740
void wifi_connect_params_channel_fail(void);
41+
42+
/** Test WiFiInterface::connect() without parameters. Use set_credentials() for setting parameters. */
1843
void wifi_connect(void);
44+
45+
/** Test WiFiInterface::connect() without parameters. Don't set parameters with set_credentials() */
1946
void wifi_connect_nocredentials(void);
47+
48+
/** Test WiFiInterface::connect() without parameters. Use secure settings for set_credentials. */
2049
void wifi_connect_secure(void);
50+
51+
/** Test WiFiInterface::connect() failing with wrong password. */
2152
void wifi_connect_secure_fail(void);
53+
54+
/** Test WiFiInterface::connect() - disconnect() repeatition works. */
2255
void wifi_connect_disconnect_repeat(void);
56+
57+
/** Call WiFiInterface::scan() with null parameters to get number of networks available. */
2358
void wifi_scan_null(void);
59+
60+
/** Call WiFiInterface::scan() with valid accesspoint list allocated */
2461
void wifi_scan(void);
2562

2663
#endif //WIFI_TESTS_H

0 commit comments

Comments
 (0)