diff --git a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_sink_handler/handlerinitsink_fuzzer/initsink_fuzzer.cpp b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_sink_handler/handlerinitsink_fuzzer/initsink_fuzzer.cpp index eb9a523bb087d3cc979cddc619cfedb337b760fd..e6a5e6fcfd1cd3cccafc2e983166f5ef6ad50853 100644 --- a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_sink_handler/handlerinitsink_fuzzer/initsink_fuzzer.cpp +++ b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_sink_handler/handlerinitsink_fuzzer/initsink_fuzzer.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Huawei Device Co., Ltd. + * Copyright (c) 2022-2024 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 @@ -32,8 +32,8 @@ void InitSinkFuzzTest(const uint8_t* data, size_t size) DScreenSinkHandler::GetInstance().InitSink(params); } -} -} +} // namespace DistributedHardware +} // namespace OHOS /* Fuzzer entry point */ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) diff --git a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_sink_handler/handleronremotesinksvrdied_fuzzer/onremotesinksvrdied_fuzzer.cpp b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_sink_handler/handleronremotesinksvrdied_fuzzer/onremotesinksvrdied_fuzzer.cpp index 6962303ed22ac1fbc5adbd387bfd02728ad1823e..f4b45b13428fbcac01bc41f8d060923ca4ecf7f5 100644 --- a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_sink_handler/handleronremotesinksvrdied_fuzzer/onremotesinksvrdied_fuzzer.cpp +++ b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_sink_handler/handleronremotesinksvrdied_fuzzer/onremotesinksvrdied_fuzzer.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Huawei Device Co., Ltd. + * Copyright (c) 2022-2024 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 @@ -46,8 +46,8 @@ void OnRemoteSinkSvrDiedFuzzTest(const uint8_t* data, size_t size) DScreenSinkHandler::GetInstance().OnRemoteSinkSvrDied(remote); } -} -} +} // namespace DistributedHardware +} // namespace OHOS /* Fuzzer entry point */ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) diff --git a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_sink_handler/handlersubscribelocalhardware_fuzzer/subscribelocalhardware_fuzzer.cpp b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_sink_handler/handlersubscribelocalhardware_fuzzer/subscribelocalhardware_fuzzer.cpp index 6d55f22430e5bee347050b237f8611f89bc0ad00..f2075ef097d9dff376746fa1ccf1445094740aca 100644 --- a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_sink_handler/handlersubscribelocalhardware_fuzzer/subscribelocalhardware_fuzzer.cpp +++ b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_sink_handler/handlersubscribelocalhardware_fuzzer/subscribelocalhardware_fuzzer.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Huawei Device Co., Ltd. + * Copyright (c) 2022-2024 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 @@ -33,8 +33,8 @@ void SubscribeLocalHardwareFuzzTest(const uint8_t* data, size_t size) DScreenSinkHandler::GetInstance().SubscribeLocalHardware(dhId, param); } -} -} +} // namespace DistributedHardware +} // namespace OHOS /* Fuzzer entry point */ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) diff --git a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_sink_handler/handlerunsubscribelocalhardware_fuzzer/unsubscribelocalhardware_fuzzer.cpp b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_sink_handler/handlerunsubscribelocalhardware_fuzzer/unsubscribelocalhardware_fuzzer.cpp index 942ca8b119a477c8a0fa48e7d110fb08f8d36de9..5a45aa867f1443933477c62987c28c78c8e19237 100644 --- a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_sink_handler/handlerunsubscribelocalhardware_fuzzer/unsubscribelocalhardware_fuzzer.cpp +++ b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_sink_handler/handlerunsubscribelocalhardware_fuzzer/unsubscribelocalhardware_fuzzer.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Huawei Device Co., Ltd. + * Copyright (c) 2022-2024 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 @@ -32,8 +32,8 @@ void UnsubscribeLocalHardwareFuzzTest(const uint8_t* data, size_t size) DScreenSinkHandler::GetInstance().UnsubscribeLocalHardware(dhId); } -} -} +} // namespace DistributedHardware +} // namespace OHOS /* Fuzzer entry point */ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) diff --git a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_sink_proxy/proxyinitsink_fuzzer/initsink_fuzzer.cpp b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_sink_proxy/proxyinitsink_fuzzer/initsink_fuzzer.cpp index 5c4c7c4a83f3e83a630a965256aae04b35ab1b5c..33937b9390af64086c16f428cf72be603f5577e4 100644 --- a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_sink_proxy/proxyinitsink_fuzzer/initsink_fuzzer.cpp +++ b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_sink_proxy/proxyinitsink_fuzzer/initsink_fuzzer.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Huawei Device Co., Ltd. + * Copyright (c) 2022-2024 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 @@ -48,8 +48,8 @@ void InitSinkFuzzTest(const uint8_t* data, size_t size) dscreenSinkProxy->InitSink(params); } -} -} +} // namespace DistributedHardware +} // namespace OHOS /* Fuzzer entry point */ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) diff --git a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_sink_proxy/proxysubscribelocalhardware_fuzzer/subscribelocalhardware_fuzzer.cpp b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_sink_proxy/proxysubscribelocalhardware_fuzzer/subscribelocalhardware_fuzzer.cpp index 0beef2fedac1faefb7a236b12ddc963cdc10c5fa..554b1fe7432bd3ef63bbb7cf73b0e1f44955ea49 100644 --- a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_sink_proxy/proxysubscribelocalhardware_fuzzer/subscribelocalhardware_fuzzer.cpp +++ b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_sink_proxy/proxysubscribelocalhardware_fuzzer/subscribelocalhardware_fuzzer.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 Huawei Device Co., Ltd. + * Copyright (c) 2023-2024 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 @@ -50,8 +50,8 @@ void SubscribeLocalHardwareFuzzTest(const uint8_t* data, size_t size) dscreenSinkProxy->SubscribeLocalHardware(dhId, param); } -} -} +} // namespace DistributedHardware +} // namespace OHOS /* Fuzzer entry point */ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) diff --git a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_sink_proxy/proxyunsubscribelocalhardware_fuzzer/unsubscribelocalhardware_fuzzer.cpp b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_sink_proxy/proxyunsubscribelocalhardware_fuzzer/unsubscribelocalhardware_fuzzer.cpp index a3729f86553d56663d285cf0c76d000487c2fa27..5b8cc851549e10a134af2b5330e1f50a1be720cc 100644 --- a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_sink_proxy/proxyunsubscribelocalhardware_fuzzer/unsubscribelocalhardware_fuzzer.cpp +++ b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_sink_proxy/proxyunsubscribelocalhardware_fuzzer/unsubscribelocalhardware_fuzzer.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 Huawei Device Co., Ltd. + * Copyright (c) 2023-2024 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 @@ -49,8 +49,8 @@ void UnsubscribeLocalHardwareFuzzTest(const uint8_t* data, size_t size) dscreenSinkProxy->UnsubscribeLocalHardware(dhId); } -} -} +} // namespace DistributedHardware +} // namespace OHOS /* Fuzzer entry point */ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) diff --git a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_sink_proxy/sinkproxydscreennotify_fuzzer/sinkproxydscreennotify_fuzzer.cpp b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_sink_proxy/sinkproxydscreennotify_fuzzer/sinkproxydscreennotify_fuzzer.cpp index bc01ce40a4c2cb8f914adee65a089936cfc73d40..78d3cf1bddf722e03ef7b9379d26141157b46003 100644 --- a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_sink_proxy/sinkproxydscreennotify_fuzzer/sinkproxydscreennotify_fuzzer.cpp +++ b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_sink_proxy/sinkproxydscreennotify_fuzzer/sinkproxydscreennotify_fuzzer.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 Huawei Device Co., Ltd. + * Copyright (c) 2023-2024 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 @@ -50,8 +50,8 @@ void DScreenNotifyFuzzTest(const uint8_t* data, size_t size) dscreenSinkProxy->DScreenNotify(devId, eventCode, eventContent); } -} -} +} // namespace DistributedHardware +} // namespace OHOS /* Fuzzer entry point */ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) diff --git a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_callback/callbackonnotifyregresult_fuzzer/callbackonnotifyregresult_fuzzer.cpp b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_callback/callbackonnotifyregresult_fuzzer/callbackonnotifyregresult_fuzzer.cpp index 6a82004b2866b4acfeb580d8fea40415428239d8..acaab3bec0ac27f1791f0ba1c75f8c84a33ac6da 100644 --- a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_callback/callbackonnotifyregresult_fuzzer/callbackonnotifyregresult_fuzzer.cpp +++ b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_callback/callbackonnotifyregresult_fuzzer/callbackonnotifyregresult_fuzzer.cpp @@ -43,8 +43,8 @@ void OnNotifyRegResultFuzzTest(const uint8_t* data, size_t size) dScreenSourceCallback->PushRegRegisterCallback(reqId, callback); dScreenSourceCallback->OnNotifyRegResult(devId, dhId, reqId, status, dataStr); } -} -} +} // namespace DistributedHardware +} // namespace OHOS /* Fuzzer entry point */ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) diff --git a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_callback/callbackonnotifyunregresult_fuzzer/callbackonnotifyunregresult_fuzzer.cpp b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_callback/callbackonnotifyunregresult_fuzzer/callbackonnotifyunregresult_fuzzer.cpp index 5a20c20463edaf803133d9afdedb5d9cbcb56fd3..4e94444c3628954057876c32ffac1acc8ba71eb6 100644 --- a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_callback/callbackonnotifyunregresult_fuzzer/callbackonnotifyunregresult_fuzzer.cpp +++ b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_callback/callbackonnotifyunregresult_fuzzer/callbackonnotifyunregresult_fuzzer.cpp @@ -44,8 +44,8 @@ void OnNotifyUnregResultFuzzTest(const uint8_t* data, size_t size) dScreenSourceCallback->PushUnregisterCallback(reqId, uncallback); dScreenSourceCallback->OnNotifyUnregResult(devId, dhId, reqId, status, dataStr); } -} -} +} // namespace DistributedHardware +} // namespace OHOS /* Fuzzer entry point */ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) diff --git a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_callback/callbackonremoterequest_fuzzer/callbackonremoterequest_fuzzer.cpp b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_callback/callbackonremoterequest_fuzzer/callbackonremoterequest_fuzzer.cpp index 77e4bb554fb4f4295c7e66986a7d4b0087397f85..8f3865fec3ed15fe62d58840882bfd77868adca8 100644 --- a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_callback/callbackonremoterequest_fuzzer/callbackonremoterequest_fuzzer.cpp +++ b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_callback/callbackonremoterequest_fuzzer/callbackonremoterequest_fuzzer.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Huawei Device Co., Ltd. + * Copyright (c) 2022-2024 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 @@ -53,8 +53,8 @@ void CallbackOnRemoteRequestFuzzTest(const uint8_t* data, size_t size) sptr dScreenSourceCallback(new (std::nothrow) DScreenSourceCallback()); dScreenSourceCallback->OnRemoteRequest(code, pdata, reply, option); } -} -} +} // namespace DistributedHardware +} // namespace OHOS /* Fuzzer entry point */ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) diff --git a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_callback/dscreensourcecallbackstub_fuzzer/dscreensourcecallbackstub_fuzzer.cpp b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_callback/dscreensourcecallbackstub_fuzzer/dscreensourcecallbackstub_fuzzer.cpp index 8284ee4febbb3126674080a026c1d8295a77d886..3eadc9b1d92eefaaff10cb13fd3a4b5a6883da3d 100644 --- a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_callback/dscreensourcecallbackstub_fuzzer/dscreensourcecallbackstub_fuzzer.cpp +++ b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_callback/dscreensourcecallbackstub_fuzzer/dscreensourcecallbackstub_fuzzer.cpp @@ -63,8 +63,8 @@ void DscreenSourceCallbackStubFuzzTest(const uint8_t* data, size_t size) dScreenSourceCallbackStub->OnNotifyRegResultInner(pdata, reply, option); dScreenSourceCallbackStub->OnNotifyUnregResultInner(pdata, reply, option); } -} -} +} // namespace DistributedHardware +} // namespace OHOS /* Fuzzer entry point */ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) diff --git a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_handler/handlerconfigdistributedhardware_fuzzer/configdistributedhardware_fuzzer.cpp b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_handler/handlerconfigdistributedhardware_fuzzer/configdistributedhardware_fuzzer.cpp index e6fdf7abd8014ca1eb72d4e64a47cccee6c3ecf3..7e66d030f31f1bc48d5edb0271b3df332371bf2e 100644 --- a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_handler/handlerconfigdistributedhardware_fuzzer/configdistributedhardware_fuzzer.cpp +++ b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_handler/handlerconfigdistributedhardware_fuzzer/configdistributedhardware_fuzzer.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Huawei Device Co., Ltd. + * Copyright (c) 2022-2024 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 @@ -35,8 +35,8 @@ void ConfigDistributedHardwareFuzzTest(const uint8_t* data, size_t size) DScreenSourceHandler::GetInstance().ConfigDistributedHardware(devId, dhId, key, value); } -} -} +} // namespace DistributedHardware +} // namespace OHOS /* Fuzzer entry point */ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) diff --git a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_handler/handlerinitsource_fuzzer/initsource_fuzzer.cpp b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_handler/handlerinitsource_fuzzer/initsource_fuzzer.cpp index 6868e7f95dd943be150665382839ef668226f6c2..2d40347a2c3e7dcd537f0528486730c668cd95ae 100644 --- a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_handler/handlerinitsource_fuzzer/initsource_fuzzer.cpp +++ b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_handler/handlerinitsource_fuzzer/initsource_fuzzer.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Huawei Device Co., Ltd. + * Copyright (c) 2022-2024 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 @@ -32,8 +32,8 @@ void InitSourceFuzzTest(const uint8_t* data, size_t size) DScreenSourceHandler::GetInstance().InitSource(params); } -} -} +} // namespace DistributedHardware +} // namespace OHOS /* Fuzzer entry point */ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) diff --git a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_handler/handleronremotesourcesvrdied_fuzzer/onremotesourcesvrdied_fuzzer.cpp b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_handler/handleronremotesourcesvrdied_fuzzer/onremotesourcesvrdied_fuzzer.cpp index 50bf898d452af7e7440ce31e637f3aaa3d391737..9f6d358aefa0801817d86ca5a4c10d0ade16871b 100644 --- a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_handler/handleronremotesourcesvrdied_fuzzer/onremotesourcesvrdied_fuzzer.cpp +++ b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_handler/handleronremotesourcesvrdied_fuzzer/onremotesourcesvrdied_fuzzer.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 Huawei Device Co., Ltd. + * Copyright (c) 2023-2024 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 @@ -46,8 +46,8 @@ void OnRemoteSourceSvrDiedFuzzTest(const uint8_t* data, size_t size) DScreenSourceHandler::GetInstance().OnRemoteSourceSvrDied(remote); } -} -} +} // namespace DistributedHardware +} // namespace OHOS /* Fuzzer entry point */ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) diff --git a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_handler/handlerregisterdistributedhardware_fuzzer/registerdistributedhardware_fuzzer.cpp b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_handler/handlerregisterdistributedhardware_fuzzer/registerdistributedhardware_fuzzer.cpp index 9b0f3cdbd7e13905dbfd4ca131dcac135dab4e3d..b6f17012b12651b80979b760fcdb55e2c8115e7e 100644 --- a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_handler/handlerregisterdistributedhardware_fuzzer/registerdistributedhardware_fuzzer.cpp +++ b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_handler/handlerregisterdistributedhardware_fuzzer/registerdistributedhardware_fuzzer.cpp @@ -40,8 +40,8 @@ void RegisterDistributedHardwareFuzzTest(const uint8_t* data, size_t size) DScreenSourceHandler::GetInstance().RegisterDistributedHardware(devId, dhId, param, callback); } -} -} +} // namespace DistributedHardware +} // namespace OHOS /* Fuzzer entry point */ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) diff --git a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_handler/handlerunregisterdistributedhardware_fuzzer/unregisterdistributedhardware_fuzzer.cpp b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_handler/handlerunregisterdistributedhardware_fuzzer/unregisterdistributedhardware_fuzzer.cpp index f0b316a4c51a5ada5ad8b3aa0ced3bf9c994a0fa..65a7ff01f9b8873d03168e8cc5cfebdc05fdd46f 100644 --- a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_handler/handlerunregisterdistributedhardware_fuzzer/unregisterdistributedhardware_fuzzer.cpp +++ b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_handler/handlerunregisterdistributedhardware_fuzzer/unregisterdistributedhardware_fuzzer.cpp @@ -35,8 +35,8 @@ void UnregisterDistributedHardwareFuzzTest(const uint8_t* data, size_t size) DScreenSourceHandler::GetInstance().UnregisterDistributedHardware(devId, dhId, uncallback); } -} -} +} // namespace DistributedHardware +} // namespace OHOS /* Fuzzer entry point */ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) diff --git a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_proxy/proxyconfigdistributedhardware_fuzzer/configdistributedhardware_fuzzer.cpp b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_proxy/proxyconfigdistributedhardware_fuzzer/configdistributedhardware_fuzzer.cpp index ad0eb1ede5996a580aa7e79a6f67620987d8d3b9..02c51758ff6ae77b3c1800355496cfa2287820e5 100644 --- a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_proxy/proxyconfigdistributedhardware_fuzzer/configdistributedhardware_fuzzer.cpp +++ b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_proxy/proxyconfigdistributedhardware_fuzzer/configdistributedhardware_fuzzer.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 Huawei Device Co., Ltd. + * Copyright (c) 2023-2024 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 @@ -52,8 +52,8 @@ void ConfigDistributedHardwareFuzzTest(const uint8_t* data, size_t size) dscreenSourceProxy->ConfigDistributedHardware(devId, dhId, key, value); } -} -} +} // namespace DistributedHardware +} // namespace OHOS /* Fuzzer entry point */ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) diff --git a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_proxy/proxydscreennotify_fuzzer/dscreennotify_fuzzer.cpp b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_proxy/proxydscreennotify_fuzzer/dscreennotify_fuzzer.cpp index 49f5dc9f85e720d50698a619f58f36edb6ffd79b..c16da71145731b26c722d8338074c4ffb7575b6f 100644 --- a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_proxy/proxydscreennotify_fuzzer/dscreennotify_fuzzer.cpp +++ b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_proxy/proxydscreennotify_fuzzer/dscreennotify_fuzzer.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 Huawei Device Co., Ltd. + * Copyright (c) 2023-2024 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 @@ -51,8 +51,8 @@ void DScreenNotifyFuzzTest(const uint8_t* data, size_t size) dscreenSourceProxy->DScreenNotify(devId, eventCode, eventContent); } -} -} +} // namespace DistributedHardware +} // namespace OHOS /* Fuzzer entry point */ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) diff --git a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_proxy/proxyinitsource_fuzzer/initsource_fuzzer.cpp b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_proxy/proxyinitsource_fuzzer/initsource_fuzzer.cpp index ab58c463703a109cc2ed8e71abf4f6e50a74faae..aece8a5b0734285b1074946690678f441b1e12ed 100644 --- a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_proxy/proxyinitsource_fuzzer/initsource_fuzzer.cpp +++ b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_proxy/proxyinitsource_fuzzer/initsource_fuzzer.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Huawei Device Co., Ltd. + * Copyright (c) 2022-2024 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 @@ -54,8 +54,8 @@ void InitSourceFuzzTest(const uint8_t* data, size_t size) dscreenSourceProxy->InitSource(params, callback); } -} -} +} // namespace DistributedHardware +} // namespace OHOS /* Fuzzer entry point */ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) diff --git a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_proxy/proxyregisterdistributedhardware_fuzzer/registerdistributedhardware_fuzzer.cpp b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_proxy/proxyregisterdistributedhardware_fuzzer/registerdistributedhardware_fuzzer.cpp index 562294d5acc5853ef3a3049edf5e6d714d5a3732..2b483a4844bfbc648fef24913935b22ec74066d2 100644 --- a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_proxy/proxyregisterdistributedhardware_fuzzer/registerdistributedhardware_fuzzer.cpp +++ b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_proxy/proxyregisterdistributedhardware_fuzzer/registerdistributedhardware_fuzzer.cpp @@ -77,8 +77,8 @@ void RegisterDistributedHardwareFuzzTest(const uint8_t* data, size_t size) std::shared_ptr dscreenSourceProxy = std::make_shared(remoteObject); dscreenSourceProxy->RegisterDistributedHardware(devId, dhId, param, reqId); } -} -} +} // namespace DistributedHardware +} // namespace OHOS /* Fuzzer entry point */ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) diff --git a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_proxy/proxyunregisterdistributedhardware_fuzzer/unregisterdistributedhardware_fuzzer.cpp b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_proxy/proxyunregisterdistributedhardware_fuzzer/unregisterdistributedhardware_fuzzer.cpp index 0ea81e3b4b0812f536ee8bce128760408397dabd..054811446875f12bea02a5c490339b10892125f7 100644 --- a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_proxy/proxyunregisterdistributedhardware_fuzzer/unregisterdistributedhardware_fuzzer.cpp +++ b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_proxy/proxyunregisterdistributedhardware_fuzzer/unregisterdistributedhardware_fuzzer.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 Huawei Device Co., Ltd. + * Copyright (c) 2023-2024 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 @@ -51,8 +51,8 @@ void UnregisterDistributedHardwareFuzzTest(const uint8_t* data, size_t size) dscreenSourceProxy->UnregisterDistributedHardware(devId, dhId, reqId); } -} -} +} // namespace DistributedHardware +} // namespace OHOS /* Fuzzer entry point */ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) diff --git a/screenhandler/test/fuzztest/pluginhardware_fuzzer/pluginhardware_fuzzer.cpp b/screenhandler/test/fuzztest/pluginhardware_fuzzer/pluginhardware_fuzzer.cpp index b24a1c2f162ef0b001870ab0f3601fd265ca37da..3828bec443d508f7d84481ddb6b3b1e4b3d8ec13 100644 --- a/screenhandler/test/fuzztest/pluginhardware_fuzzer/pluginhardware_fuzzer.cpp +++ b/screenhandler/test/fuzztest/pluginhardware_fuzzer/pluginhardware_fuzzer.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Huawei Device Co., Ltd. + * Copyright (c) 2022-2024 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 @@ -34,8 +34,8 @@ void PluginHardwareFuzzTest(const uint8_t* data, size_t size) DScreenHandler::GetInstance().PluginHardware(dhId, attr, subtype); } -} -} +} // namespace DistributedHardware +} // namespace OHOS /* Fuzzer entry point */ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) diff --git a/screenhandler/test/fuzztest/registerpluginlistener_fuzzer/registerpluginlistener_fuzzer.cpp b/screenhandler/test/fuzztest/registerpluginlistener_fuzzer/registerpluginlistener_fuzzer.cpp index 989023ad20485cfa6180d117b26c20237a3e1d58..87b3881b6d19749fd84a126a068fdbba1b86bc13 100644 --- a/screenhandler/test/fuzztest/registerpluginlistener_fuzzer/registerpluginlistener_fuzzer.cpp +++ b/screenhandler/test/fuzztest/registerpluginlistener_fuzzer/registerpluginlistener_fuzzer.cpp @@ -45,8 +45,8 @@ void RegisterPluginListenerFuzzTest(const uint8_t* data, size_t size) DScreenHandler::GetInstance().RegisterPluginListener(listener); } -} -} +} // namespace DistributedHardware +} // namespace OHOS /* Fuzzer entry point */ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) diff --git a/screenhandler/test/fuzztest/unpluginhardware_fuzzer/unpluginhardware_fuzzer.cpp b/screenhandler/test/fuzztest/unpluginhardware_fuzzer/unpluginhardware_fuzzer.cpp index 3441383faa000ec72a1f401c2d4b843567f02ceb..71270d81d96515b1c335cb182c0519bc4e546fe7 100644 --- a/screenhandler/test/fuzztest/unpluginhardware_fuzzer/unpluginhardware_fuzzer.cpp +++ b/screenhandler/test/fuzztest/unpluginhardware_fuzzer/unpluginhardware_fuzzer.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Huawei Device Co., Ltd. + * Copyright (c) 2022-2024 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 @@ -32,8 +32,8 @@ void UnPluginHardwareFuzzTest(const uint8_t* data, size_t size) DScreenHandler::GetInstance().UnPluginHardware(dhId); } -} -} +} // namespace DistributedHardware +} // namespace OHOS /* Fuzzer entry point */ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) diff --git a/services/screenservice/test/fuzztest/sinkservice/dscreenservice/dscreensinkstub_fuzzer/dscreensinkstub_fuzzer.cpp b/services/screenservice/test/fuzztest/sinkservice/dscreenservice/dscreensinkstub_fuzzer/dscreensinkstub_fuzzer.cpp index 16a7bfae272454c7f10b6e8ef1a8156475c0ef3f..aa46f2dd976ad793be466270a6343e8dae622023 100644 --- a/services/screenservice/test/fuzztest/sinkservice/dscreenservice/dscreensinkstub_fuzzer/dscreensinkstub_fuzzer.cpp +++ b/services/screenservice/test/fuzztest/sinkservice/dscreenservice/dscreensinkstub_fuzzer/dscreensinkstub_fuzzer.cpp @@ -72,8 +72,8 @@ void DscreenSinkStubFuzzTest(const uint8_t* data, size_t size) sourceStubPtr->UnsubscribeDistributedHardwareInner(pdata, reply, option); sourceStubPtr->DScreenNotifyInner(pdata, reply, option); } -} -} +} // namespace DistributedHardware +} // namespace OHOS /* Fuzzer entry point */ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) diff --git a/services/screenservice/test/fuzztest/sourceservice/dscreenmgr/onchange_fuzzer/onchange_fuzzer.cpp b/services/screenservice/test/fuzztest/sourceservice/dscreenmgr/onchange_fuzzer/onchange_fuzzer.cpp index e415b6e7a566b95a6129262729499fa4ef92b01c..44c0b0d86167a323a5348b619fdb926eaf8f17e8 100644 --- a/services/screenservice/test/fuzztest/sourceservice/dscreenmgr/onchange_fuzzer/onchange_fuzzer.cpp +++ b/services/screenservice/test/fuzztest/sourceservice/dscreenmgr/onchange_fuzzer/onchange_fuzzer.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 Huawei Device Co., Ltd. + * Copyright (c) 2023-2024 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 @@ -35,9 +35,9 @@ void OnChangeFuzzTest(const uint8_t* data, size_t size) DScreenGroupListener dScreenGroupListener; dScreenGroupListener.OnChange(screenIds, event); } -} -} -} +} // namespace V1_0 +} // namespace DistributedHardware +} // namespace OHOS /* Fuzzer entry point */ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) diff --git a/services/screenservice/test/fuzztest/sourceservice/dscreenservice/dscreensourcecallbackproxy_fuzzer/dscreensourcecallbackproxy_fuzzer.cpp b/services/screenservice/test/fuzztest/sourceservice/dscreenservice/dscreensourcecallbackproxy_fuzzer/dscreensourcecallbackproxy_fuzzer.cpp index 04bb144d0a3bb498e0fac9372ef3a6a6e8b8ec62..1d181f55aa953b93cd86a19e4e3d2c78d38edbbc 100644 --- a/services/screenservice/test/fuzztest/sourceservice/dscreenservice/dscreensourcecallbackproxy_fuzzer/dscreensourcecallbackproxy_fuzzer.cpp +++ b/services/screenservice/test/fuzztest/sourceservice/dscreenservice/dscreensourcecallbackproxy_fuzzer/dscreensourcecallbackproxy_fuzzer.cpp @@ -71,8 +71,8 @@ void DscreenSourceCallbackProxyFuzzTest(const uint8_t* data, size_t size) sourceCbkProxy->OnNotifyUnregResult(devId, dhId, reqId, status, resultData); sourceCbkProxy->CheckParams(devId, dhId, reqId, resultData); } -} -} +} // namespace DistributedHardware +} // namespace OHOS /* Fuzzer entry point */ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) diff --git a/services/screenservice/test/fuzztest/sourceservice/dscreenservice/dscreensourceservice_fuzzer/dscreensourceservice_fuzzer.cpp b/services/screenservice/test/fuzztest/sourceservice/dscreenservice/dscreensourceservice_fuzzer/dscreensourceservice_fuzzer.cpp index 32631e0b306f9c426faddc635f9de8cd6d746eaa..69af7289a2ad448b8fa500e34cc8d1eb7be0cbfa 100644 --- a/services/screenservice/test/fuzztest/sourceservice/dscreenservice/dscreensourceservice_fuzzer/dscreensourceservice_fuzzer.cpp +++ b/services/screenservice/test/fuzztest/sourceservice/dscreenservice/dscreensourceservice_fuzzer/dscreensourceservice_fuzzer.cpp @@ -47,8 +47,8 @@ void DscreenSourceServiceFuzzTest(const uint8_t* data, size_t size) sourceServicePtr->RegisterDistributedHardware(devId, dhId, param, reqId); sourceServicePtr->DScreenNotify(devId, eventCode, eventContent); } -} -} +} // namespace DistributedHardware +} // namespace OHOS /* Fuzzer entry point */ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) diff --git a/services/screenservice/test/fuzztest/sourceservice/dscreenservice/dscreensourcestub_fuzzer/dscreensourcestub_fuzzer.cpp b/services/screenservice/test/fuzztest/sourceservice/dscreenservice/dscreensourcestub_fuzzer/dscreensourcestub_fuzzer.cpp index 6621b80aaae486455411e1bb4f3648c5f43ca410..dfa85aacb1e415108a33191214a57339cbc89ecc 100644 --- a/services/screenservice/test/fuzztest/sourceservice/dscreenservice/dscreensourcestub_fuzzer/dscreensourcestub_fuzzer.cpp +++ b/services/screenservice/test/fuzztest/sourceservice/dscreenservice/dscreensourcestub_fuzzer/dscreensourcestub_fuzzer.cpp @@ -86,8 +86,8 @@ void DscreenSourceStubFuzzTest(const uint8_t* data, size_t size) sourceStubPtr->CheckRegParams(devId, dhId, version, attrs, reqId); sourceStubPtr->CheckUnregParams(devId, dhId, reqId); } -} -} +} // namespace DistributedHardware +} // namespace OHOS /* Fuzzer entry point */ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) diff --git a/services/screentransport/test/fuzztest/screensinkprocessor/onbufferavailable_fuzzer/onbufferavailable_fuzzer.cpp b/services/screentransport/test/fuzztest/screensinkprocessor/onbufferavailable_fuzzer/onbufferavailable_fuzzer.cpp index c817d607e95a3f95a9bc37897e92ab4101197405..5117323cf9ab4434d86689d3029e92d2f07cbcbd 100644 --- a/services/screentransport/test/fuzztest/screensinkprocessor/onbufferavailable_fuzzer/onbufferavailable_fuzzer.cpp +++ b/services/screentransport/test/fuzztest/screensinkprocessor/onbufferavailable_fuzzer/onbufferavailable_fuzzer.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 Huawei Device Co., Ltd. + * Copyright (c) 2023-2024 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 @@ -41,8 +41,8 @@ void OnBufferAvailableFuzzTest(const uint8_t* data, size_t size) std::shared_ptr bufferListen = std::make_shared(decoder); bufferListen->OnBufferAvailable(); } -} -} +} // namespace DistributedHardware +} // namespace OHOS /* Fuzzer entry point */ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) diff --git a/services/screentransport/test/fuzztest/screensourceprocessor/onbufferavailable_fuzzer/onbufferavailable_fuzzer.cpp b/services/screentransport/test/fuzztest/screensourceprocessor/onbufferavailable_fuzzer/onbufferavailable_fuzzer.cpp index eb93a4a7dcc9b26a9c1ffad0b7a932ab5182958c..66212842ad92e8d15ce63afb16f80237caae48a2 100644 --- a/services/screentransport/test/fuzztest/screensourceprocessor/onbufferavailable_fuzzer/onbufferavailable_fuzzer.cpp +++ b/services/screentransport/test/fuzztest/screensourceprocessor/onbufferavailable_fuzzer/onbufferavailable_fuzzer.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 Huawei Device Co., Ltd. + * Copyright (c) 2023-2024 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 @@ -33,8 +33,8 @@ void OnBufferAvailableFuzzTest(const uint8_t* data, size_t size) std::shared_ptr bufferListen = std::make_shared(encoder); bufferListen->OnBufferAvailable(); } -} -} +} // namespace DistributedHardware +} // namespace OHOS /* Fuzzer entry point */ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) diff --git a/services/screentransport/test/fuzztest/screensourceprocessor/onerror_fuzzer/onerror_fuzzer.cpp b/services/screentransport/test/fuzztest/screensourceprocessor/onerror_fuzzer/onerror_fuzzer.cpp index dcb4745f0e5cafbef79129e7c2b84a0ce055977c..5cceea38bdb126e67e698da62fbd9802305c0400 100644 --- a/services/screentransport/test/fuzztest/screensourceprocessor/onerror_fuzzer/onerror_fuzzer.cpp +++ b/services/screentransport/test/fuzztest/screensourceprocessor/onerror_fuzzer/onerror_fuzzer.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 Huawei Device Co., Ltd. + * Copyright (c) 2023-2024 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 @@ -41,8 +41,8 @@ void OnErrorFuzzTest(const uint8_t* data, size_t size) MediaAVCodec::AVCodecErrorType errorType = MediaAVCodec::AVCODEC_ERROR_INTERNAL; encoderCallback->OnError(errorType, errorCode); } -} -} +} // namespace DistributedHardware +} // namespace OHOS /* Fuzzer entry point */ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) diff --git a/services/screentransport/test/fuzztest/screensourceprocessor/oninputbufferavailable_fuzzer/oninputbufferavailable_fuzzer.cpp b/services/screentransport/test/fuzztest/screensourceprocessor/oninputbufferavailable_fuzzer/oninputbufferavailable_fuzzer.cpp index feaf0f4361533f5170d42311870522dc629dac28..0d84a9aad4dfdd68d9a4e2a4ab960c43a43d5889 100644 --- a/services/screentransport/test/fuzztest/screensourceprocessor/oninputbufferavailable_fuzzer/oninputbufferavailable_fuzzer.cpp +++ b/services/screentransport/test/fuzztest/screensourceprocessor/oninputbufferavailable_fuzzer/oninputbufferavailable_fuzzer.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 Huawei Device Co., Ltd. + * Copyright (c) 2023-2024 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 @@ -36,8 +36,8 @@ void OnInputBufferAvailableFuzzTest(const uint8_t* data, size_t size) std::shared_ptr buffer = nullptr; encoderCallback->OnInputBufferAvailable(index, buffer); } -} -} +} // namespace DistributedHardware +} // namespace OHOS /* Fuzzer entry point */ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) diff --git a/services/screentransport/test/fuzztest/screensourceprocessor/onoutputbufferavailable_fuzzer/onoutputbufferavailable_fuzzer.cpp b/services/screentransport/test/fuzztest/screensourceprocessor/onoutputbufferavailable_fuzzer/onoutputbufferavailable_fuzzer.cpp index d9e5b92736600bb2ee0c818bbf61e7fabcc9d8f0..bf6d573554611df4debaad83a57760662027d57c 100644 --- a/services/screentransport/test/fuzztest/screensourceprocessor/onoutputbufferavailable_fuzzer/onoutputbufferavailable_fuzzer.cpp +++ b/services/screentransport/test/fuzztest/screensourceprocessor/onoutputbufferavailable_fuzzer/onoutputbufferavailable_fuzzer.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 Huawei Device Co., Ltd. + * Copyright (c) 2023-2024 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 @@ -38,8 +38,8 @@ void OnOutputBufferAvailableFuzzTest(const uint8_t* data, size_t size) std::shared_ptr buffer = nullptr; encoderCallback->OnOutputBufferAvailable(index, info, flag, buffer); } -} -} +} // namespace DistributedHardware +} // namespace OHOS /* Fuzzer entry point */ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) diff --git a/services/screentransport/test/fuzztest/screensourceprocessor/onoutputformatchanged_fuzzer/onoutputformatchanged_fuzzer.cpp b/services/screentransport/test/fuzztest/screensourceprocessor/onoutputformatchanged_fuzzer/onoutputformatchanged_fuzzer.cpp index 1a02141472d5c7ec1e5c4bec036405754bae0169..724f2e8105f25128f9b804dc02ec169856a30e83 100644 --- a/services/screentransport/test/fuzztest/screensourceprocessor/onoutputformatchanged_fuzzer/onoutputformatchanged_fuzzer.cpp +++ b/services/screentransport/test/fuzztest/screensourceprocessor/onoutputformatchanged_fuzzer/onoutputformatchanged_fuzzer.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 Huawei Device Co., Ltd. + * Copyright (c) 2023-2024 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 @@ -42,8 +42,8 @@ void OnOutputFormatChangedFuzzTest(const uint8_t* data, size_t size) Media::Format format; encoderCallback->OnOutputFormatChanged(format); } -} -} +} // namespace DistributedHardware +} // namespace OHOS /* Fuzzer entry point */ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) diff --git a/services/softbusadapter/test/fuzztest/softbusadapter_fuzzer/softbusadapter_fuzzer.cpp b/services/softbusadapter/test/fuzztest/softbusadapter_fuzzer/softbusadapter_fuzzer.cpp index f2e663a67887c2a7414cfa896f90dc88a7d0a0fd..50223e1c7141f9a7df79be546a1d6ba11ee9d80c 100644 --- a/services/softbusadapter/test/fuzztest/softbusadapter_fuzzer/softbusadapter_fuzzer.cpp +++ b/services/softbusadapter/test/fuzztest/softbusadapter_fuzzer/softbusadapter_fuzzer.cpp @@ -62,8 +62,8 @@ void SoftbusAdapterFuzzTest(const uint8_t* data, size_t size) adapter->SendSoftbusBytes(sessionId, adapterData, dataLen1); adapter->CloseSoftbusSession(sessionId); } -} -} +} // namespace DistributedHardware +} // namespace OHOS /* Fuzzer entry point */ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) diff --git a/services/softbusadapter/test/fuzztest/softbusonbytesreceived_fuzzer/softbusonbytesreceived_fuzzer.cpp b/services/softbusadapter/test/fuzztest/softbusonbytesreceived_fuzzer/softbusonbytesreceived_fuzzer.cpp index 50e6ad6de3fb81efe2c1039a9b025109645f4ad3..5dde7dd20ce74e98371b7f3a9a0245eff26a4877 100644 --- a/services/softbusadapter/test/fuzztest/softbusonbytesreceived_fuzzer/softbusonbytesreceived_fuzzer.cpp +++ b/services/softbusadapter/test/fuzztest/softbusonbytesreceived_fuzzer/softbusonbytesreceived_fuzzer.cpp @@ -38,8 +38,8 @@ void SoftbusOnBytesReceivedFuzzTest(const uint8_t* data, size_t size) std::shared_ptr adapter = std::make_shared(); adapter->OnBytesReceived(sessionId, adapterData, dataLen); } -} -} +} // namespace DistributedHardware +} // namespace OHOS /* Fuzzer entry point */ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) diff --git a/services/softbusadapter/test/fuzztest/softbusonmessagereceived_fuzzer/softbusonmessagereceived_fuzzer.cpp b/services/softbusadapter/test/fuzztest/softbusonmessagereceived_fuzzer/softbusonmessagereceived_fuzzer.cpp index 54ed28a0e7c44a1fa55e20f8d501899c47a36809..ed35470116e59c8f5759820130cbe2666f882eaf 100644 --- a/services/softbusadapter/test/fuzztest/softbusonmessagereceived_fuzzer/softbusonmessagereceived_fuzzer.cpp +++ b/services/softbusadapter/test/fuzztest/softbusonmessagereceived_fuzzer/softbusonmessagereceived_fuzzer.cpp @@ -38,8 +38,8 @@ void SoftbusOnMessageReceivedFuzzTest(const uint8_t* data, size_t size) std::shared_ptr adapter = std::make_shared(); adapter->OnMessageReceived(sessionId, adapterData, dataLen); } -} -} +} // namespace DistributedHardware +} // namespace OHOS /* Fuzzer entry point */ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) diff --git a/services/softbusadapter/test/fuzztest/softbusonsessionclosed_fuzzer/softbusonsessionclosed_fuzzer.cpp b/services/softbusadapter/test/fuzztest/softbusonsessionclosed_fuzzer/softbusonsessionclosed_fuzzer.cpp index cde841ca3970fcfbefbfb2776292aa4f253ed84e..ede42c686bfa8c8061598fc924eea5cb99efa595 100644 --- a/services/softbusadapter/test/fuzztest/softbusonsessionclosed_fuzzer/softbusonsessionclosed_fuzzer.cpp +++ b/services/softbusadapter/test/fuzztest/softbusonsessionclosed_fuzzer/softbusonsessionclosed_fuzzer.cpp @@ -37,8 +37,8 @@ void SoftbusOnSessionClosedFuzzTest(const uint8_t* data, size_t size) ShutdownReason reason = SHUTDOWN_REASON_UNKNOWN; adapter->OnSoftbusSessionClosed(sessionId, reason); } -} -} +} // namespace DistributedHardware +} // namespace OHOS /* Fuzzer entry point */ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) diff --git a/services/softbusadapter/test/fuzztest/softbusonsessionopened_fuzzer/softbusonsessionopened_fuzzer.cpp b/services/softbusadapter/test/fuzztest/softbusonsessionopened_fuzzer/softbusonsessionopened_fuzzer.cpp index b62681fc678df0f6356dacb8110e08cc61d64955..a77c325180e427af84f2be7a74c78f284d04cb1b 100644 --- a/services/softbusadapter/test/fuzztest/softbusonsessionopened_fuzzer/softbusonsessionopened_fuzzer.cpp +++ b/services/softbusadapter/test/fuzztest/softbusonsessionopened_fuzzer/softbusonsessionopened_fuzzer.cpp @@ -47,8 +47,8 @@ void SoftbusOnSessionOpenedFuzzTest(const uint8_t* data, size_t size) std::shared_ptr adapter = std::make_shared(); adapter->OnSoftbusSessionOpened(sessionId, peerSocketInfo); } -} -} +} // namespace DistributedHardware +} // namespace OHOS /* Fuzzer entry point */ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) diff --git a/services/softbusadapter/test/fuzztest/softbusonstreamreceived_fuzzer/softbusonstreamreceived_fuzzer.cpp b/services/softbusadapter/test/fuzztest/softbusonstreamreceived_fuzzer/softbusonstreamreceived_fuzzer.cpp index aadd6fde57cc270d21a4365e415c1dca848f030f..ea1869721265b4e1ad61d017fa3c63111ab469a1 100644 --- a/services/softbusadapter/test/fuzztest/softbusonstreamreceived_fuzzer/softbusonstreamreceived_fuzzer.cpp +++ b/services/softbusadapter/test/fuzztest/softbusonstreamreceived_fuzzer/softbusonstreamreceived_fuzzer.cpp @@ -37,8 +37,8 @@ void SoftbusOnStreamReceivedFuzzTest(const uint8_t* data, size_t size) std::shared_ptr adapter = std::make_shared(); adapter->OnStreamReceived(sessionId, stream, ext, info); } -} -} +} // namespace DistributedHardware +} // namespace OHOS /* Fuzzer entry point */ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)