diff --git a/test/fuzztest/BUILD.gn b/test/fuzztest/BUILD.gn index d0fb553c5a523a497079c184c726e523ab6abd40..d28b1630e244245c8fcc136d80421a02525f002c 100644 --- a/test/fuzztest/BUILD.gn +++ b/test/fuzztest/BUILD.gn @@ -51,7 +51,9 @@ group("test") { "getscreenlocked_fuzzer:fuzztest", "getshieldstatus_fuzzer:fuzztest", "gettouchpaddeviceorigins_fuzzer:fuzztest", + "gettouchpadscrolldirection_fuzzer:fuzztest", "gettouchpadscrollswitch_fuzzer:fuzztest", + "gettouchpadtapswitch_fuzzer:fuzztest", "gettprightclicktype_fuzzer:fuzztest", "getwindowpid_fuzzer:fuzztest", "hasiremitter_fuzzer:fuzztest", @@ -100,7 +102,9 @@ group("test") { "setpointerspeed_fuzzer:fuzztest", "setpointervisible_fuzzer:fuzztest", "setshieldstatus_fuzzer:fuzztest", + "settouchpadscrolldirection_fuzzer:fuzztest", "settouchpadscrollswitch_fuzzer:fuzztest", + "settouchpadtapswitch_fuzzer:fuzztest", "shieldstatus_fuzzer:fuzztest", "shiftapppointerevent_fuzzer:fuzztest", "simulateinputevent_fuzzer:fuzztest", @@ -155,6 +159,7 @@ group("test") { "stubsettouchpadrightclicktype_fuzzer:fuzztest", "stubsettouchpadscrolldirection_fuzzer:fuzztest", "stubsettouchpadscrollswitch_fuzzer:fuzztest", + "settouchpadtapswitch_fuzzer:fuzztest", "stubsettouchpadswipeswitch_fuzzer:fuzztest", "stubsettouchpadtapswitch_fuzzer:fuzztest", "stubsubscribekeyevent_fuzzer:fuzztest", diff --git a/test/fuzztest/gettouchpadpinchswitch_fuzzer/BUILD.gn b/test/fuzztest/gettouchpadpinchswitch_fuzzer/BUILD.gn new file mode 100644 index 0000000000000000000000000000000000000000..1d9a499c5c1804232dacc8d0cb01ed24fcf7e8ae --- /dev/null +++ b/test/fuzztest/gettouchpadpinchswitch_fuzzer/BUILD.gn @@ -0,0 +1,60 @@ +# Copyright (c) 2025 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +#####################hydra-fuzz################### +import("//build/config/features.gni") +import("//build/test.gni") +import("../../../multimodalinput_mini.gni") +module_output_path = "input/input" + +##############################fuzztest########################################## +ohos_fuzztest("GetTouchpadPinchSwitchFuzzTest") { + module_out_path = module_output_path + fuzz_config_file = "${mmi_path}/test/fuzztest/gettouchpadpinchswitch_fuzzer" + include_dirs = [ + "${mmi_path}/service/device_manager/include", + "${mmi_path}/service/device_config/include", + ] + cflags = [ + "-g", + "-O0", + "-Wno-unused-variable", + "-fno-omit-frame-pointer", + "-Dprivate=public", + "-Dprotected=public", + ] + sources = [ "gettouchpadpinchswitch_fuzzer.cpp" ] + + deps = [ + "${mmi_path}/frameworks/proxy:libmmi-client", + "${mmi_path}/service:libmmi-server", + "${mmi_path}/util:libmmi-util", + ] + + external_deps = [ + "c_utils:utils", + "eventhandler:libeventhandler", + "hilog:libhilog", + ] +} + +############################################################################### +group("fuzztest") { + testonly = true + deps = [] + deps += [ + # deps file + ":GetTouchpadPinchSwitchFuzzTest", + ] +} +############################################################################### diff --git a/test/fuzztest/gettouchpadpinchswitch_fuzzer/corpus/init b/test/fuzztest/gettouchpadpinchswitch_fuzzer/corpus/init new file mode 100644 index 0000000000000000000000000000000000000000..65af8ee8d11bf23407ea34d4de49f7cbb6a2b791 --- /dev/null +++ b/test/fuzztest/gettouchpadpinchswitch_fuzzer/corpus/init @@ -0,0 +1,14 @@ +# Copyright (c) 2025 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +FUZZ \ No newline at end of file diff --git a/test/fuzztest/gettouchpadpinchswitch_fuzzer/gettouchpadpinchswitch_fuzzer.cpp b/test/fuzztest/gettouchpadpinchswitch_fuzzer/gettouchpadpinchswitch_fuzzer.cpp new file mode 100644 index 0000000000000000000000000000000000000000..0e4e8ffb3b2d444eec573ad3e8af131648e246b5 --- /dev/null +++ b/test/fuzztest/gettouchpadpinchswitch_fuzzer/gettouchpadpinchswitch_fuzzer.cpp @@ -0,0 +1,63 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include "mmi_log.h" +#include "input_device_manager.h" +#include "gettouchpadpinchswitch_fuzzer.h" + +#include "securec.h" + +#undef MMI_LOG_TAG +#define MMI_LOG_TAG "GetTouchpadPinchSwitchFuzzTest" + +namespace OHOS { +namespace MMI { +namespace OHOS { +template +size_t GetObject(T &object, const uint8_t *data, size_t size) +{ + size_t objectSize = sizeof(object); + if (objectSize > size) { + return 0; + } + errno_t ret = memcpy_s(&object, objectSize, data, objectSize); + if (ret != EOK) { + return 0; + } + return objectSize; +} + +bool GetTouchpadPinchSwitchFuzzTest(const uint8_t *data, size_t size) +{ + size_t startPos = 0; + bool switchFlag; + startPos += GetObject(switchFlag, data + startPos, size - startPos); + InputManager::GetInstance()->GetTouchpadPinchSwitch(switchFlag); + return true; +} +} // namespace OHOS + +extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) +{ + /* Run your code on data */ + if (data == nullptr) { + return 0; + } + + OHOS::GetTouchpadPinchSwitchFuzzTest(data, size); + return 0; +} +} // namespace MMI +} // namespace OHOS \ No newline at end of file diff --git a/test/fuzztest/gettouchpadpinchswitch_fuzzer/gettouchpadpinchswitch_fuzzer.h b/test/fuzztest/gettouchpadpinchswitch_fuzzer/gettouchpadpinchswitch_fuzzer.h new file mode 100644 index 0000000000000000000000000000000000000000..e34e2e4f57ccc7ff5fdc84108d54294c474f9f58 --- /dev/null +++ b/test/fuzztest/gettouchpadpinchswitch_fuzzer/gettouchpadpinchswitch_fuzzer.h @@ -0,0 +1,21 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef GETTOUCHPADPINCHSWITCH_FUZZER +#define GETTOUCHPADPINCHSWITCH_FUZZER + +#define FUZZ_PROJECT_NAME "gettouchpadpinchswitch_fuzzer" + +#endif // GETTOUCHPADPINCHSWITCH_FUZZER diff --git a/test/fuzztest/gettouchpadpinchswitch_fuzzer/project.xml b/test/fuzztest/gettouchpadpinchswitch_fuzzer/project.xml new file mode 100644 index 0000000000000000000000000000000000000000..500f6f414493290025d8dea9b066e5d5021a9377 --- /dev/null +++ b/test/fuzztest/gettouchpadpinchswitch_fuzzer/project.xml @@ -0,0 +1,25 @@ + + + + + + 1000 + + 300 + + 4096 + + \ No newline at end of file diff --git a/test/fuzztest/gettouchpadscrolldirection_fuzzer/BUILD.gn b/test/fuzztest/gettouchpadscrolldirection_fuzzer/BUILD.gn new file mode 100644 index 0000000000000000000000000000000000000000..885ca10705146f97d992a25a1978a6a2b4238c69 --- /dev/null +++ b/test/fuzztest/gettouchpadscrolldirection_fuzzer/BUILD.gn @@ -0,0 +1,60 @@ +# Copyright (c) 2025 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +#####################hydra-fuzz################### +import("//build/config/features.gni") +import("//build/test.gni") +import("../../../multimodalinput_mini.gni") +module_output_path = "input/input" + +##############################fuzztest########################################## +ohos_fuzztest("GetTouchpadScrollDirectionFuzzTest") { + module_out_path = module_output_path + fuzz_config_file = "${mmi_path}/test/fuzztest/gettouchpadscrolldirection_fuzzer" + include_dirs = [ + "${mmi_path}/service/device_manager/include", + "${mmi_path}/service/device_config/include", + ] + cflags = [ + "-g", + "-O0", + "-Wno-unused-variable", + "-fno-omit-frame-pointer", + "-Dprivate=public", + "-Dprotected=public", + ] + sources = [ "gettouchpadscrolldirection_fuzzer.cpp" ] + + deps = [ + "${mmi_path}/frameworks/proxy:libmmi-client", + "${mmi_path}/service:libmmi-server", + "${mmi_path}/util:libmmi-util", + ] + + external_deps = [ + "c_utils:utils", + "eventhandler:libeventhandler", + "hilog:libhilog", + ] +} + +############################################################################### +group("fuzztest") { + testonly = true + deps = [] + deps += [ + # deps file + ":GetTouchpadScrollDirectionFuzzTest", + ] +} +############################################################################### diff --git a/test/fuzztest/gettouchpadscrolldirection_fuzzer/corpus/init b/test/fuzztest/gettouchpadscrolldirection_fuzzer/corpus/init new file mode 100644 index 0000000000000000000000000000000000000000..65af8ee8d11bf23407ea34d4de49f7cbb6a2b791 --- /dev/null +++ b/test/fuzztest/gettouchpadscrolldirection_fuzzer/corpus/init @@ -0,0 +1,14 @@ +# Copyright (c) 2025 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +FUZZ \ No newline at end of file diff --git a/test/fuzztest/gettouchpadscrolldirection_fuzzer/gettouchpadscrolldirection_fuzzer.cpp b/test/fuzztest/gettouchpadscrolldirection_fuzzer/gettouchpadscrolldirection_fuzzer.cpp new file mode 100644 index 0000000000000000000000000000000000000000..9411c76eb0704c4b487360dc24b4d07971b738e9 --- /dev/null +++ b/test/fuzztest/gettouchpadscrolldirection_fuzzer/gettouchpadscrolldirection_fuzzer.cpp @@ -0,0 +1,63 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include "mmi_log.h" +#include "input_device_manager.h" +#include "gettouchpadscrolldirection_fuzzer.h" + +#include "securec.h" + +#undef MMI_LOG_TAG +#define MMI_LOG_TAG "GetTouchpadScrollDirectionFuzzTest" + +namespace OHOS { +namespace MMI { +namespace OHOS { +template +size_t GetObject(T &object, const uint8_t *data, size_t size) +{ + size_t objectSize = sizeof(object); + if (objectSize > size) { + return 0; + } + errno_t ret = memcpy_s(&object, objectSize, data, objectSize); + if (ret != EOK) { + return 0; + } + return objectSize; +} + +bool GetTouchpadScrollDirectionFuzzTest(const uint8_t *data, size_t size) +{ + size_t startPos = 0; + bool state; + startPos += GetObject(state, data + startPos, size - startPos); + InputManager::GetInstance()->GetTouchpadScrollDirection(state); + return true; +} +} // namespace OHOS + +extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) +{ + /* Run your code on data */ + if (data == nullptr) { + return 0; + } + + OHOS::GetTouchpadScrollDirectionFuzzTest(data, size); + return 0; +} +} // namespace MMI +} // namespace OHOS \ No newline at end of file diff --git a/test/fuzztest/gettouchpadscrolldirection_fuzzer/gettouchpadscrolldirection_fuzzer.h b/test/fuzztest/gettouchpadscrolldirection_fuzzer/gettouchpadscrolldirection_fuzzer.h new file mode 100644 index 0000000000000000000000000000000000000000..8e55077e6a51ef5355fc66ce7a26634d58b9b557 --- /dev/null +++ b/test/fuzztest/gettouchpadscrolldirection_fuzzer/gettouchpadscrolldirection_fuzzer.h @@ -0,0 +1,21 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef GETTOUCHPADSCROLLDIRECTION_FUZZER +#define GETTOUCHPADSCROLLDIRECTION_FUZZER + +#define FUZZ_PROJECT_NAME "gettouchpadscrolldirection_fuzzer" + +#endif // GETTOUCHPADSCROLLDIRECTION_FUZZER diff --git a/test/fuzztest/gettouchpadscrolldirection_fuzzer/project.xml b/test/fuzztest/gettouchpadscrolldirection_fuzzer/project.xml new file mode 100644 index 0000000000000000000000000000000000000000..500f6f414493290025d8dea9b066e5d5021a9377 --- /dev/null +++ b/test/fuzztest/gettouchpadscrolldirection_fuzzer/project.xml @@ -0,0 +1,25 @@ + + + + + + 1000 + + 300 + + 4096 + + \ No newline at end of file diff --git a/test/fuzztest/gettouchpadscrollswitch_fuzzer/gettouchpadscrollswitch_fuzzer.cpp b/test/fuzztest/gettouchpadscrollswitch_fuzzer/gettouchpadscrollswitch_fuzzer.cpp index 02edc60ef07648cda9e951d03d3085f121342e46..88a5cf28b48a09e3468ea3dedb25c78bade3de8e 100644 --- a/test/fuzztest/gettouchpadscrollswitch_fuzzer/gettouchpadscrollswitch_fuzzer.cpp +++ b/test/fuzztest/gettouchpadscrollswitch_fuzzer/gettouchpadscrollswitch_fuzzer.cpp @@ -42,7 +42,7 @@ void GetTouchpadScrollSwitchFuzzTest(const uint8_t* data, size_t size) bool switchFlag; size_t startPos = 0; startPos += GetObject(switchFlag, data + startPos, size - startPos); - InputManager::GetInstance()->RemoveMonitor(switchFlag); + InputManager::GetInstance()->GetTouchpadScrollSwitch(switchFlag); } } // MMI } // OHOS diff --git a/test/fuzztest/gettouchpadtapswitch_fuzzer/BUILD.gn b/test/fuzztest/gettouchpadtapswitch_fuzzer/BUILD.gn new file mode 100644 index 0000000000000000000000000000000000000000..9caaf6e84d964979da2fc7a5bde68cd41c116b83 --- /dev/null +++ b/test/fuzztest/gettouchpadtapswitch_fuzzer/BUILD.gn @@ -0,0 +1,60 @@ +# Copyright (c) 2025 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +#####################hydra-fuzz################### +import("//build/config/features.gni") +import("//build/test.gni") +import("../../../multimodalinput_mini.gni") +module_output_path = "input/input" + +##############################fuzztest########################################## +ohos_fuzztest("GetTouchpadTapSwitchFuzzTest") { + module_out_path = module_output_path + fuzz_config_file = "${mmi_path}/test/fuzztest/gettouchpadtapswitch_fuzzer" + include_dirs = [ + "${mmi_path}/service/device_manager/include", + "${mmi_path}/service/device_config/include", + ] + cflags = [ + "-g", + "-O0", + "-Wno-unused-variable", + "-fno-omit-frame-pointer", + "-Dprivate=public", + "-Dprotected=public", + ] + sources = [ "gettouchpadtapswitch_fuzzer.cpp" ] + + deps = [ + "${mmi_path}/frameworks/proxy:libmmi-client", + "${mmi_path}/service:libmmi-server", + "${mmi_path}/util:libmmi-util", + ] + + external_deps = [ + "c_utils:utils", + "eventhandler:libeventhandler", + "hilog:libhilog", + ] +} + +############################################################################### +group("fuzztest") { + testonly = true + deps = [] + deps += [ + # deps file + ":GetTouchpadTapSwitchFuzzTest", + ] +} +############################################################################### diff --git a/test/fuzztest/gettouchpadtapswitch_fuzzer/corpus/init b/test/fuzztest/gettouchpadtapswitch_fuzzer/corpus/init new file mode 100644 index 0000000000000000000000000000000000000000..65af8ee8d11bf23407ea34d4de49f7cbb6a2b791 --- /dev/null +++ b/test/fuzztest/gettouchpadtapswitch_fuzzer/corpus/init @@ -0,0 +1,14 @@ +# Copyright (c) 2025 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +FUZZ \ No newline at end of file diff --git a/test/fuzztest/gettouchpadtapswitch_fuzzer/gettouchpadtapswitch_fuzzer.cpp b/test/fuzztest/gettouchpadtapswitch_fuzzer/gettouchpadtapswitch_fuzzer.cpp new file mode 100644 index 0000000000000000000000000000000000000000..83d831c83e6cdd1cc906458d439e77e23519666b --- /dev/null +++ b/test/fuzztest/gettouchpadtapswitch_fuzzer/gettouchpadtapswitch_fuzzer.cpp @@ -0,0 +1,63 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include "mmi_log.h" +#include "input_device_manager.h" +#include "gettouchpadtapswitch_fuzzer.h" + +#include "securec.h" + +#undef MMI_LOG_TAG +#define MMI_LOG_TAG "GetTouchpadTapSwitchFuzzTest" + +namespace OHOS { +namespace MMI { +namespace OHOS { +template +size_t GetObject(T &object, const uint8_t *data, size_t size) +{ + size_t objectSize = sizeof(object); + if (objectSize > size) { + return 0; + } + errno_t ret = memcpy_s(&object, objectSize, data, objectSize); + if (ret != EOK) { + return 0; + } + return objectSize; +} + +bool GetTouchpadTapSwitchFuzzTest(const uint8_t *data, size_t size) +{ + size_t startPos = 0; + bool switchFlag; + startPos += GetObject(switchFlag, data + startPos, size - startPos); + InputManager::GetInstance()->GetTouchpadTapSwitch(switchFlag); + return true; +} +} // namespace OHOS + +extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) +{ + /* Run your code on data */ + if (data == nullptr) { + return 0; + } + + OHOS::GetTouchpadTapSwitchFuzzTest(data, size); + return 0; +} +} // namespace MMI +} // namespace OHOS \ No newline at end of file diff --git a/test/fuzztest/gettouchpadtapswitch_fuzzer/gettouchpadtapswitch_fuzzer.h b/test/fuzztest/gettouchpadtapswitch_fuzzer/gettouchpadtapswitch_fuzzer.h new file mode 100644 index 0000000000000000000000000000000000000000..e9b5947feb8d1f2c1d1ed24f04b346e2824127ba --- /dev/null +++ b/test/fuzztest/gettouchpadtapswitch_fuzzer/gettouchpadtapswitch_fuzzer.h @@ -0,0 +1,21 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef GETTOUCHPADTAPSWITCH_FUZZER +#define GETTOUCHPADTAPSWITCH_FUZZER + +#define FUZZ_PROJECT_NAME "gettouchpadtapswitch_fuzzer" + +#endif // GETTOUCHPADTAPSWITCH_FUZZER diff --git a/test/fuzztest/gettouchpadtapswitch_fuzzer/project.xml b/test/fuzztest/gettouchpadtapswitch_fuzzer/project.xml new file mode 100644 index 0000000000000000000000000000000000000000..500f6f414493290025d8dea9b066e5d5021a9377 --- /dev/null +++ b/test/fuzztest/gettouchpadtapswitch_fuzzer/project.xml @@ -0,0 +1,25 @@ + + + + + + 1000 + + 300 + + 4096 + + \ No newline at end of file diff --git a/test/fuzztest/settouchpadpinchswitch_fuzzer/BUILD.gn b/test/fuzztest/settouchpadpinchswitch_fuzzer/BUILD.gn new file mode 100644 index 0000000000000000000000000000000000000000..a0abb2e1138eb88d987c6afba7c21262454a22a1 --- /dev/null +++ b/test/fuzztest/settouchpadpinchswitch_fuzzer/BUILD.gn @@ -0,0 +1,60 @@ +# Copyright (c) 2025 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +#####################hydra-fuzz################### +import("//build/config/features.gni") +import("//build/test.gni") +import("../../../multimodalinput_mini.gni") +module_output_path = "input/input" + +##############################fuzztest########################################## +ohos_fuzztest("SetTouchpadPinchSwitchFuzzTest") { + module_out_path = module_output_path + fuzz_config_file = "${mmi_path}/test/fuzztest/settouchpadpinchswitch_fuzzer" + include_dirs = [ + "${mmi_path}/service/device_manager/include", + "${mmi_path}/service/device_config/include", + ] + cflags = [ + "-g", + "-O0", + "-Wno-unused-variable", + "-fno-omit-frame-pointer", + "-Dprivate=public", + "-Dprotected=public", + ] + sources = [ "settouchpadpinchswitch_fuzzer.cpp" ] + + deps = [ + "${mmi_path}/frameworks/proxy:libmmi-client", + "${mmi_path}/service:libmmi-server", + "${mmi_path}/util:libmmi-util", + ] + + external_deps = [ + "c_utils:utils", + "eventhandler:libeventhandler", + "hilog:libhilog", + ] +} + +############################################################################### +group("fuzztest") { + testonly = true + deps = [] + deps += [ + # deps file + ":SetTouchpadPinchSwitchFuzzTest", + ] +} +############################################################################### diff --git a/test/fuzztest/settouchpadpinchswitch_fuzzer/corpus/init b/test/fuzztest/settouchpadpinchswitch_fuzzer/corpus/init new file mode 100644 index 0000000000000000000000000000000000000000..65af8ee8d11bf23407ea34d4de49f7cbb6a2b791 --- /dev/null +++ b/test/fuzztest/settouchpadpinchswitch_fuzzer/corpus/init @@ -0,0 +1,14 @@ +# Copyright (c) 2025 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +FUZZ \ No newline at end of file diff --git a/test/fuzztest/settouchpadpinchswitch_fuzzer/project.xml b/test/fuzztest/settouchpadpinchswitch_fuzzer/project.xml new file mode 100644 index 0000000000000000000000000000000000000000..500f6f414493290025d8dea9b066e5d5021a9377 --- /dev/null +++ b/test/fuzztest/settouchpadpinchswitch_fuzzer/project.xml @@ -0,0 +1,25 @@ + + + + + + 1000 + + 300 + + 4096 + + \ No newline at end of file diff --git a/test/fuzztest/settouchpadpinchswitch_fuzzer/settouchpadpinchswitch_fuzzer.cpp b/test/fuzztest/settouchpadpinchswitch_fuzzer/settouchpadpinchswitch_fuzzer.cpp new file mode 100644 index 0000000000000000000000000000000000000000..9f72d2ebebdb37e4e2c51126a129e74886a3745a --- /dev/null +++ b/test/fuzztest/settouchpadpinchswitch_fuzzer/settouchpadpinchswitch_fuzzer.cpp @@ -0,0 +1,63 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include "mmi_log.h" +#include "input_device_manager.h" +#include "settouchpadpinchswitch_fuzzer.h" + +#include "securec.h" + +#undef MMI_LOG_TAG +#define MMI_LOG_TAG "SetTouchpadPinchSwitchFuzzTest" + +namespace OHOS { +namespace MMI { +namespace OHOS { +template +size_t GetObject(T &object, const uint8_t *data, size_t size) +{ + size_t objectSize = sizeof(object); + if (objectSize > size) { + return 0; + } + errno_t ret = memcpy_s(&object, objectSize, data, objectSize); + if (ret != EOK) { + return 0; + } + return objectSize; +} + +bool SetTouchpadPinchSwitchFuzzTest(const uint8_t *data, size_t size) +{ + size_t startPos = 0; + bool switchFlag; + startPos += GetObject(switchFlag, data + startPos, size - startPos); + InputManager::GetInstance()->SetTouchpadPinchSwitch(switchFlag); + return true; +} +} // namespace OHOS + +extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) +{ + /* Run your code on data */ + if (data == nullptr) { + return 0; + } + + OHOS::SetTouchpadPinchSwitchFuzzTest(data, size); + return 0; +} +} // namespace MMI +} // namespace OHOS \ No newline at end of file diff --git a/test/fuzztest/settouchpadpinchswitch_fuzzer/settouchpadpinchswitch_fuzzer.h b/test/fuzztest/settouchpadpinchswitch_fuzzer/settouchpadpinchswitch_fuzzer.h new file mode 100644 index 0000000000000000000000000000000000000000..7e20474898d1f14c2ea07480157016088d38768d --- /dev/null +++ b/test/fuzztest/settouchpadpinchswitch_fuzzer/settouchpadpinchswitch_fuzzer.h @@ -0,0 +1,21 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef SETTOUCHPADPINCHSWITCH_FUZZER +#define SETTOUCHPADPINCHSWITCH_FUZZER + +#define FUZZ_PROJECT_NAME "settouchpadpinchswitch_fuzzer" + +#endif // SETTOUCHPADPINCHSWITCH_FUZZER diff --git a/test/fuzztest/settouchpadscrolldirection_fuzzer/BUILD.gn b/test/fuzztest/settouchpadscrolldirection_fuzzer/BUILD.gn new file mode 100644 index 0000000000000000000000000000000000000000..989f5266416a523aaee86b58d4ca1c60d9f87511 --- /dev/null +++ b/test/fuzztest/settouchpadscrolldirection_fuzzer/BUILD.gn @@ -0,0 +1,60 @@ +# Copyright (c) 2025 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +#####################hydra-fuzz################### +import("//build/config/features.gni") +import("//build/test.gni") +import("../../../multimodalinput_mini.gni") +module_output_path = "input/input" + +##############################fuzztest########################################## +ohos_fuzztest("SetTouchpadScrollDirectionFuzzTest") { + module_out_path = module_output_path + fuzz_config_file = "${mmi_path}/test/fuzztest/settouchpadscrolldirection_fuzzer" + include_dirs = [ + "${mmi_path}/service/device_manager/include", + "${mmi_path}/service/device_config/include", + ] + cflags = [ + "-g", + "-O0", + "-Wno-unused-variable", + "-fno-omit-frame-pointer", + "-Dprivate=public", + "-Dprotected=public", + ] + sources = [ "settouchpadscrolldirection_fuzzer.cpp" ] + + deps = [ + "${mmi_path}/frameworks/proxy:libmmi-client", + "${mmi_path}/service:libmmi-server", + "${mmi_path}/util:libmmi-util", + ] + + external_deps = [ + "c_utils:utils", + "eventhandler:libeventhandler", + "hilog:libhilog", + ] +} + +############################################################################### +group("fuzztest") { + testonly = true + deps = [] + deps += [ + # deps file + ":SetTouchpadScrollDirectionFuzzTest", + ] +} +############################################################################### diff --git a/test/fuzztest/settouchpadscrolldirection_fuzzer/corpus/init b/test/fuzztest/settouchpadscrolldirection_fuzzer/corpus/init new file mode 100644 index 0000000000000000000000000000000000000000..65af8ee8d11bf23407ea34d4de49f7cbb6a2b791 --- /dev/null +++ b/test/fuzztest/settouchpadscrolldirection_fuzzer/corpus/init @@ -0,0 +1,14 @@ +# Copyright (c) 2025 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +FUZZ \ No newline at end of file diff --git a/test/fuzztest/settouchpadscrolldirection_fuzzer/project.xml b/test/fuzztest/settouchpadscrolldirection_fuzzer/project.xml new file mode 100644 index 0000000000000000000000000000000000000000..500f6f414493290025d8dea9b066e5d5021a9377 --- /dev/null +++ b/test/fuzztest/settouchpadscrolldirection_fuzzer/project.xml @@ -0,0 +1,25 @@ + + + + + + 1000 + + 300 + + 4096 + + \ No newline at end of file diff --git a/test/fuzztest/settouchpadscrolldirection_fuzzer/settouchpadscrolldirection_fuzzer.cpp b/test/fuzztest/settouchpadscrolldirection_fuzzer/settouchpadscrolldirection_fuzzer.cpp new file mode 100644 index 0000000000000000000000000000000000000000..9978c8222808e9ecf76a58e586111d12ceb8c481 --- /dev/null +++ b/test/fuzztest/settouchpadscrolldirection_fuzzer/settouchpadscrolldirection_fuzzer.cpp @@ -0,0 +1,63 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include "mmi_log.h" +#include "input_device_manager.h" +#include "gettouchpadscrolldirection_fuzzer.h" + +#include "securec.h" + +#undef MMI_LOG_TAG +#define MMI_LOG_TAG "SetTouchpadScrollDirectionFuzzTest" + +namespace OHOS { +namespace MMI { +namespace OHOS { +template +size_t GetObject(T &object, const uint8_t *data, size_t size) +{ + size_t objectSize = sizeof(object); + if (objectSize > size) { + return 0; + } + errno_t ret = memcpy_s(&object, objectSize, data, objectSize); + if (ret != EOK) { + return 0; + } + return objectSize; +} + +bool SetTouchpadScrollDirectionFuzzTest(const uint8_t *data, size_t size) +{ + size_t startPos = 0; + bool state; + startPos += GetObject(state, data + startPos, size - startPos); + InputManager::GetInstance()->SetTouchpadScrollDirection(state); + return true; +} +} // namespace OHOS + +extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) +{ + /* Run your code on data */ + if (data == nullptr) { + return 0; + } + + OHOS::SetTouchpadScrollDirectionFuzzTest(data, size); + return 0; +} +} // namespace MMI +} // namespace OHOS \ No newline at end of file diff --git a/test/fuzztest/settouchpadscrolldirection_fuzzer/settouchpadscrolldirection_fuzzer.h b/test/fuzztest/settouchpadscrolldirection_fuzzer/settouchpadscrolldirection_fuzzer.h new file mode 100644 index 0000000000000000000000000000000000000000..8f396cc815768dab0d5d9f0ea928fa78bf7ddc99 --- /dev/null +++ b/test/fuzztest/settouchpadscrolldirection_fuzzer/settouchpadscrolldirection_fuzzer.h @@ -0,0 +1,21 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef SETTOUCHPADSCROLLDIRECTION_FUZZER +#define SETTOUCHPADSCROLLDIRECTION_FUZZER + +#define FUZZ_PROJECT_NAME "settouchpadscrolldirection_fuzzer" + +#endif // SETTOUCHPADSCROLLDIRECTION_FUZZER diff --git a/test/fuzztest/settouchpadscrollswitch_fuzzer/settouchpadscrollswitch_fuzzer.cpp b/test/fuzztest/settouchpadscrollswitch_fuzzer/settouchpadscrollswitch_fuzzer.cpp index 1481ad31fc5dc3991345704041d6d8916bf809cd..7ded05d14890aba746ce77536cfee2d7076180b7 100644 --- a/test/fuzztest/settouchpadscrollswitch_fuzzer/settouchpadscrollswitch_fuzzer.cpp +++ b/test/fuzztest/settouchpadscrollswitch_fuzzer/settouchpadscrollswitch_fuzzer.cpp @@ -42,7 +42,7 @@ void SetTouchpadScrollSwitchFuzzTest(const uint8_t* data, size_t size) bool switchFlag; size_t startPos = 0; startPos += GetObject(switchFlag, data + startPos, size - startPos); - InputManager::GetInstance()->RemoveMonitor(switchFlag); + InputManager::GetInstance()->SetTouchpadScrollSwitch(switchFlag); } } // MMI } // OHOS diff --git a/test/fuzztest/settouchpadtapswitch_fuzzer/BUILD.gn b/test/fuzztest/settouchpadtapswitch_fuzzer/BUILD.gn new file mode 100644 index 0000000000000000000000000000000000000000..2d755ffd14349dfa5418c234db24cb804e7b0301 --- /dev/null +++ b/test/fuzztest/settouchpadtapswitch_fuzzer/BUILD.gn @@ -0,0 +1,60 @@ +# Copyright (c) 2025 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +#####################hydra-fuzz################### +import("//build/config/features.gni") +import("//build/test.gni") +import("../../../multimodalinput_mini.gni") +module_output_path = "input/input" + +##############################fuzztest########################################## +ohos_fuzztest("SetTouchpadTapSwitchFuzzTest") { + module_out_path = module_output_path + fuzz_config_file = "${mmi_path}/test/fuzztest/settouchpadtapswitch_fuzzer" + include_dirs = [ + "${mmi_path}/service/device_manager/include", + "${mmi_path}/service/device_config/include", + ] + cflags = [ + "-g", + "-O0", + "-Wno-unused-variable", + "-fno-omit-frame-pointer", + "-Dprivate=public", + "-Dprotected=public", + ] + sources = [ "settouchpadtapswitch_fuzzer.cpp" ] + + deps = [ + "${mmi_path}/frameworks/proxy:libmmi-client", + "${mmi_path}/service:libmmi-server", + "${mmi_path}/util:libmmi-util", + ] + + external_deps = [ + "c_utils:utils", + "eventhandler:libeventhandler", + "hilog:libhilog", + ] +} + +############################################################################### +group("fuzztest") { + testonly = true + deps = [] + deps += [ + # deps file + ":SetTouchpadTapSwitchFuzzTest", + ] +} +############################################################################### diff --git a/test/fuzztest/settouchpadtapswitch_fuzzer/corpus/init b/test/fuzztest/settouchpadtapswitch_fuzzer/corpus/init new file mode 100644 index 0000000000000000000000000000000000000000..65af8ee8d11bf23407ea34d4de49f7cbb6a2b791 --- /dev/null +++ b/test/fuzztest/settouchpadtapswitch_fuzzer/corpus/init @@ -0,0 +1,14 @@ +# Copyright (c) 2025 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +FUZZ \ No newline at end of file diff --git a/test/fuzztest/settouchpadtapswitch_fuzzer/project.xml b/test/fuzztest/settouchpadtapswitch_fuzzer/project.xml new file mode 100644 index 0000000000000000000000000000000000000000..500f6f414493290025d8dea9b066e5d5021a9377 --- /dev/null +++ b/test/fuzztest/settouchpadtapswitch_fuzzer/project.xml @@ -0,0 +1,25 @@ + + + + + + 1000 + + 300 + + 4096 + + \ No newline at end of file diff --git a/test/fuzztest/settouchpadtapswitch_fuzzer/settouchpadtapswitch_fuzzer.cpp b/test/fuzztest/settouchpadtapswitch_fuzzer/settouchpadtapswitch_fuzzer.cpp new file mode 100644 index 0000000000000000000000000000000000000000..fbc1b54822568eb1abf6bcbe67fbf7e9aa35c961 --- /dev/null +++ b/test/fuzztest/settouchpadtapswitch_fuzzer/settouchpadtapswitch_fuzzer.cpp @@ -0,0 +1,63 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include "mmi_log.h" +#include "input_device_manager.h" +#include "settouchpadtapswitch_fuzzer.h" + +#include "securec.h" + +#undef MMI_LOG_TAG +#define MMI_LOG_TAG "SetTouchpadTapSwitchFuzzTest" + +namespace OHOS { +namespace MMI { +namespace OHOS { +template +size_t GetObject(T &object, const uint8_t *data, size_t size) +{ + size_t objectSize = sizeof(object); + if (objectSize > size) { + return 0; + } + errno_t ret = memcpy_s(&object, objectSize, data, objectSize); + if (ret != EOK) { + return 0; + } + return objectSize; +} + +bool SetTouchpadTapSwitchFuzzTest(const uint8_t *data, size_t size) +{ + size_t startPos = 0; + bool switchFlag; + startPos += GetObject(switchFlag, data + startPos, size - startPos); + InputManager::GetInstance()->SetTouchpadTapSwitch(switchFlag); + return true; +} +} // namespace OHOS + +extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) +{ + /* Run your code on data */ + if (data == nullptr) { + return 0; + } + + OHOS::SetTouchpadTapSwitchFuzzTest(data, size); + return 0; +} +} // namespace MMI +} // namespace OHOS \ No newline at end of file diff --git a/test/fuzztest/settouchpadtapswitch_fuzzer/settouchpadtapswitch_fuzzer.h b/test/fuzztest/settouchpadtapswitch_fuzzer/settouchpadtapswitch_fuzzer.h new file mode 100644 index 0000000000000000000000000000000000000000..95b177581f6f0cf460437d6231fffea976577f8a --- /dev/null +++ b/test/fuzztest/settouchpadtapswitch_fuzzer/settouchpadtapswitch_fuzzer.h @@ -0,0 +1,21 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef SETTOUCHPADTAPSWITCH_FUZZER +#define SETTOUCHPADTAPSWITCH_FUZZER + +#define FUZZ_PROJECT_NAME "settouchpadtapswitch_fuzzer" + +#endif // SETTOUCHPADTAPSWITCH_FUZZER