add wifi_c_hid2d fuzz test

Signed-off-by: yiyajun <yiyajun@huawei.com>
This commit is contained in:
yiyajun 2022-11-17 22:11:30 +08:00
parent 4cbc8bc253
commit e432075602
3 changed files with 7 additions and 3 deletions

View File

@ -23,6 +23,7 @@ namespace Wifi {
bool WifiCHid2dFuzzerTest(const uint8_t* data, size_t size)
{
Hid2dRequestGcIpTest(data, size);
/*
Hid2dSharedlinkIncreaseTest();
Hid2dSharedlinkDecreaseTest();
Hid2dCreateGroupTest(data, size);
@ -36,6 +37,7 @@ namespace Wifi {
Hid2dSetPeerWifiCfgInfoTest(data, size);
Hid2dIsWideBandwidthSupportedTest();
Hid2dSetUpperSceneTest(data, size);
*/
return true;
}
@ -54,7 +56,7 @@ namespace Wifi {
}
(void)Hid2dRequestGcIp(gcMac, ipAddr);
}
/*
void Hid2dSharedlinkIncreaseTest(void)
{
(void)Hid2dSharedlinkIncrease();
@ -198,7 +200,7 @@ namespace Wifi {
(void)Hid2dSetUpperScene(ifName, scene);
}
*/
} // namespace Wifi
} // namespace OHOS

View File

@ -24,6 +24,7 @@
#define DATA_MAX_BYTES
void Hid2dRequestGcIpTest(const uint8_t* data, size_t size);
/*
void Hid2dSharedlinkIncreaseTest(void);
void Hid2dSharedlinkDecreaseTest(void);
void Hid2dCreateGroupTest(const uint8_t* data, size_t size);
@ -37,5 +38,6 @@ void Hid2dGetSelfWifiCfgInfoTest(const uint8_t* data, size_t size);
void Hid2dSetPeerWifiCfgInfoTest(const uint8_t* data, size_t size);
void Hid2dIsWideBandwidthSupportedTest(void);
void Hid2dSetUpperSceneTest(const uint8_t* data, size_t size);
*/
#endif

View File

@ -17,6 +17,7 @@ group("fuzztest") {
deps = []
deps += [
"../frameworks/native/c_adapter/wifichid2d_fuzzer:WifiCHid2dFuzzTest"
"adddeviceconfig_fuzzer:AddDeviceConfigFuzzTest",
"connecttodevice_fuzzer:ConnectToDeviceFuzzTest",
"disablewifi_fuzzer:DisableWifiFuzzTest",
@ -25,6 +26,5 @@ group("fuzztest") {
"isconnected_fuzzer:IsConnectedFuzzTest",
"reassociate_fuzzer:ReAssociateFuzzTest",
"reconnect_fuzzer:ReConnectFuzzTest",
"../frameworks/native/c_adapter/wifichid2d_fuzzer:WifiCHid2dFuzzTest"
]
}