From 11566384ffbed4a15f7fba4c4a2c8b5e35cb2c14 Mon Sep 17 00:00:00 2001 From: cff-gite Date: Mon, 26 Aug 2024 14:42:50 +0800 Subject: [PATCH] modification test namespace Signed-off-by: cff-gite Change-Id: Icfc442c1cf37cf63a0e7a00ceb21fb677bff3239 --- .../getdelaytimestub_fuzzer/getdelaytimestub_fuzzer.cpp | 4 ++-- .../getlightliststub_fuzzer/getlightliststub_fuzzer.cpp | 4 ++-- .../getvibratorcapacitystub_fuzzer.cpp | 4 ++-- .../issupporteffectstub_fuzzer.cpp | 4 ++-- .../playpatternstub_fuzzer/playpatternstub_fuzzer.cpp | 4 ++-- .../playprimitiveeffectstub_fuzzer.cpp | 4 ++-- .../playvibratorcustomstub_fuzzer.cpp | 4 ++-- .../playvibratoreffectstub_fuzzer.cpp | 4 ++-- .../stopvibratorallstub_fuzzer.cpp | 4 ++-- .../stopvibratorbymodestub_fuzzer.cpp | 4 ++-- .../transferclientremoteobjectstub_fuzzer.cpp | 4 ++-- .../service/turnoffstub_fuzzer/turnoffstub_fuzzer.cpp | 4 ++-- .../service/turnonstub_fuzzer/turnonstub_fuzzer.cpp | 4 ++-- .../service/vibratestub_fuzzer/vibratestub_fuzzer.cpp | 4 ++-- .../vibratoronremoterequest_fuzzer.cpp | 4 ++-- test/unittest/light/light_agent_test.cpp | 6 +++--- test/unittest/vibrator/capi/vibrator_test.cpp | 6 +++--- test/unittest/vibrator/native/vibrator_agent_test.cpp | 6 +++--- 18 files changed, 39 insertions(+), 39 deletions(-) diff --git a/test/fuzztest/service/getdelaytimestub_fuzzer/getdelaytimestub_fuzzer.cpp b/test/fuzztest/service/getdelaytimestub_fuzzer/getdelaytimestub_fuzzer.cpp index 660cd81..8734462 100644 --- a/test/fuzztest/service/getdelaytimestub_fuzzer/getdelaytimestub_fuzzer.cpp +++ b/test/fuzztest/service/getdelaytimestub_fuzzer/getdelaytimestub_fuzzer.cpp @@ -73,8 +73,8 @@ bool OnRemoteRequestFuzzTest(const uint8_t *data, size_t size) datas, reply, option); return true; } -} // namespace Sensors -} // namespace OHOS +} // namespace Sensors +} // namespace OHOS extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { diff --git a/test/fuzztest/service/getlightliststub_fuzzer/getlightliststub_fuzzer.cpp b/test/fuzztest/service/getlightliststub_fuzzer/getlightliststub_fuzzer.cpp index 1a11015..22f9e04 100644 --- a/test/fuzztest/service/getlightliststub_fuzzer/getlightliststub_fuzzer.cpp +++ b/test/fuzztest/service/getlightliststub_fuzzer/getlightliststub_fuzzer.cpp @@ -73,8 +73,8 @@ bool OnRemoteRequestFuzzTest(const uint8_t *data, size_t size) datas, reply, option); return true; } -} // namespace Sensors -} // namespace OHOS +} // namespace Sensors +} // namespace OHOS extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { diff --git a/test/fuzztest/service/getvibratorcapacitystub_fuzzer/getvibratorcapacitystub_fuzzer.cpp b/test/fuzztest/service/getvibratorcapacitystub_fuzzer/getvibratorcapacitystub_fuzzer.cpp index 086c3e8..0d7aa62 100644 --- a/test/fuzztest/service/getvibratorcapacitystub_fuzzer/getvibratorcapacitystub_fuzzer.cpp +++ b/test/fuzztest/service/getvibratorcapacitystub_fuzzer/getvibratorcapacitystub_fuzzer.cpp @@ -73,8 +73,8 @@ bool OnRemoteRequestFuzzTest(const uint8_t *data, size_t size) datas, reply, option); return true; } -} // namespace Sensors -} // namespace OHOS +} // namespace Sensors +} // namespace OHOS extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { diff --git a/test/fuzztest/service/issupporteffectstub_fuzzer/issupporteffectstub_fuzzer.cpp b/test/fuzztest/service/issupporteffectstub_fuzzer/issupporteffectstub_fuzzer.cpp index 149a8e6..e1c9549 100644 --- a/test/fuzztest/service/issupporteffectstub_fuzzer/issupporteffectstub_fuzzer.cpp +++ b/test/fuzztest/service/issupporteffectstub_fuzzer/issupporteffectstub_fuzzer.cpp @@ -73,8 +73,8 @@ bool OnRemoteRequestFuzzTest(const uint8_t *data, size_t size) datas, reply, option); return true; } -} // namespace Sensors -} // namespace OHOS +} // namespace Sensors +} // namespace OHOS extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { diff --git a/test/fuzztest/service/playpatternstub_fuzzer/playpatternstub_fuzzer.cpp b/test/fuzztest/service/playpatternstub_fuzzer/playpatternstub_fuzzer.cpp index 1bab607..cf8111e 100644 --- a/test/fuzztest/service/playpatternstub_fuzzer/playpatternstub_fuzzer.cpp +++ b/test/fuzztest/service/playpatternstub_fuzzer/playpatternstub_fuzzer.cpp @@ -73,8 +73,8 @@ bool OnRemoteRequestFuzzTest(const uint8_t *data, size_t size) datas, reply, option); return true; } -} // namespace Sensors -} // namespace OHOS +} // namespace Sensors +} // namespace OHOS extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { diff --git a/test/fuzztest/service/playprimitiveeffectstub_fuzzer/playprimitiveeffectstub_fuzzer.cpp b/test/fuzztest/service/playprimitiveeffectstub_fuzzer/playprimitiveeffectstub_fuzzer.cpp index 365b8f7..077c9a6 100644 --- a/test/fuzztest/service/playprimitiveeffectstub_fuzzer/playprimitiveeffectstub_fuzzer.cpp +++ b/test/fuzztest/service/playprimitiveeffectstub_fuzzer/playprimitiveeffectstub_fuzzer.cpp @@ -73,8 +73,8 @@ bool OnRemoteRequestFuzzTest(const uint8_t *data, size_t size) datas, reply, option); return true; } -} // namespace Sensors -} // namespace OHOS +} // namespace Sensors +} // namespace OHOS extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { diff --git a/test/fuzztest/service/playvibratorcustomstub_fuzzer/playvibratorcustomstub_fuzzer.cpp b/test/fuzztest/service/playvibratorcustomstub_fuzzer/playvibratorcustomstub_fuzzer.cpp index 91e5790..9e3f586 100644 --- a/test/fuzztest/service/playvibratorcustomstub_fuzzer/playvibratorcustomstub_fuzzer.cpp +++ b/test/fuzztest/service/playvibratorcustomstub_fuzzer/playvibratorcustomstub_fuzzer.cpp @@ -73,8 +73,8 @@ bool OnRemoteRequestFuzzTest(const uint8_t *data, size_t size) datas, reply, option); return true; } -} // namespace Sensors -} // namespace OHOS +} // namespace Sensors +} // namespace OHOS extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { diff --git a/test/fuzztest/service/playvibratoreffectstub_fuzzer/playvibratoreffectstub_fuzzer.cpp b/test/fuzztest/service/playvibratoreffectstub_fuzzer/playvibratoreffectstub_fuzzer.cpp index 15b4b2d..60f4679 100644 --- a/test/fuzztest/service/playvibratoreffectstub_fuzzer/playvibratoreffectstub_fuzzer.cpp +++ b/test/fuzztest/service/playvibratoreffectstub_fuzzer/playvibratoreffectstub_fuzzer.cpp @@ -73,8 +73,8 @@ bool OnRemoteRequestFuzzTest(const uint8_t *data, size_t size) datas, reply, option); return true; } -} // namespace Sensors -} // namespace OHOS +} // namespace Sensors +} // namespace OHOS extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { diff --git a/test/fuzztest/service/stopvibratorallstub_fuzzer/stopvibratorallstub_fuzzer.cpp b/test/fuzztest/service/stopvibratorallstub_fuzzer/stopvibratorallstub_fuzzer.cpp index e8c2a9a..6fe7165 100644 --- a/test/fuzztest/service/stopvibratorallstub_fuzzer/stopvibratorallstub_fuzzer.cpp +++ b/test/fuzztest/service/stopvibratorallstub_fuzzer/stopvibratorallstub_fuzzer.cpp @@ -73,8 +73,8 @@ bool OnRemoteRequestFuzzTest(const uint8_t *data, size_t size) datas, reply, option); return true; } -} // namespace Sensors -} // namespace OHOS +} // namespace Sensors +} // namespace OHOS extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { diff --git a/test/fuzztest/service/stopvibratorbymodestub_fuzzer/stopvibratorbymodestub_fuzzer.cpp b/test/fuzztest/service/stopvibratorbymodestub_fuzzer/stopvibratorbymodestub_fuzzer.cpp index 2bc636e..268601f 100644 --- a/test/fuzztest/service/stopvibratorbymodestub_fuzzer/stopvibratorbymodestub_fuzzer.cpp +++ b/test/fuzztest/service/stopvibratorbymodestub_fuzzer/stopvibratorbymodestub_fuzzer.cpp @@ -73,8 +73,8 @@ bool OnRemoteRequestFuzzTest(const uint8_t *data, size_t size) datas, reply, option); return true; } -} // namespace Sensors -} // namespace OHOS +} // namespace Sensors +} // namespace OHOS extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { diff --git a/test/fuzztest/service/transferclientremoteobjectstub_fuzzer/transferclientremoteobjectstub_fuzzer.cpp b/test/fuzztest/service/transferclientremoteobjectstub_fuzzer/transferclientremoteobjectstub_fuzzer.cpp index f71574c..4e4da6f 100644 --- a/test/fuzztest/service/transferclientremoteobjectstub_fuzzer/transferclientremoteobjectstub_fuzzer.cpp +++ b/test/fuzztest/service/transferclientremoteobjectstub_fuzzer/transferclientremoteobjectstub_fuzzer.cpp @@ -73,8 +73,8 @@ bool OnRemoteRequestFuzzTest(const uint8_t *data, size_t size) datas, reply, option); return true; } -} // namespace Sensors -} // namespace OHOS +} // namespace Sensors +} // namespace OHOS extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { diff --git a/test/fuzztest/service/turnoffstub_fuzzer/turnoffstub_fuzzer.cpp b/test/fuzztest/service/turnoffstub_fuzzer/turnoffstub_fuzzer.cpp index d7a4262..34e0294 100644 --- a/test/fuzztest/service/turnoffstub_fuzzer/turnoffstub_fuzzer.cpp +++ b/test/fuzztest/service/turnoffstub_fuzzer/turnoffstub_fuzzer.cpp @@ -73,8 +73,8 @@ bool OnRemoteRequestFuzzTest(const uint8_t *data, size_t size) datas, reply, option); return true; } -} // namespace Sensors -} // namespace OHOS +} // namespace Sensors +} // namespace OHOS extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { diff --git a/test/fuzztest/service/turnonstub_fuzzer/turnonstub_fuzzer.cpp b/test/fuzztest/service/turnonstub_fuzzer/turnonstub_fuzzer.cpp index 78388f2..8eb483a 100644 --- a/test/fuzztest/service/turnonstub_fuzzer/turnonstub_fuzzer.cpp +++ b/test/fuzztest/service/turnonstub_fuzzer/turnonstub_fuzzer.cpp @@ -73,8 +73,8 @@ bool OnRemoteRequestFuzzTest(const uint8_t *data, size_t size) datas, reply, option); return true; } -} // namespace Sensors -} // namespace OHOS +} // namespace Sensors +} // namespace OHOS extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { diff --git a/test/fuzztest/service/vibratestub_fuzzer/vibratestub_fuzzer.cpp b/test/fuzztest/service/vibratestub_fuzzer/vibratestub_fuzzer.cpp index 08d089a..93e3a3e 100644 --- a/test/fuzztest/service/vibratestub_fuzzer/vibratestub_fuzzer.cpp +++ b/test/fuzztest/service/vibratestub_fuzzer/vibratestub_fuzzer.cpp @@ -73,8 +73,8 @@ bool OnRemoteRequestFuzzTest(const uint8_t *data, size_t size) datas, reply, option); return true; } -} // namespace Sensors -} // namespace OHOS +} // namespace Sensors +} // namespace OHOS extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { diff --git a/test/fuzztest/service/vibratoronremoterequest_fuzzer/vibratoronremoterequest_fuzzer.cpp b/test/fuzztest/service/vibratoronremoterequest_fuzzer/vibratoronremoterequest_fuzzer.cpp index cd1e955..1f2a115 100644 --- a/test/fuzztest/service/vibratoronremoterequest_fuzzer/vibratoronremoterequest_fuzzer.cpp +++ b/test/fuzztest/service/vibratoronremoterequest_fuzzer/vibratoronremoterequest_fuzzer.cpp @@ -84,8 +84,8 @@ bool OnRemoteRequestFuzzTest(const uint8_t *data, size_t size) g_service->OnRemoteRequest(code, datas, reply, option); return true; } -} // namespace Sensors -} // namespace OHOS +} // namespace Sensors +} // namespace OHOS extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { diff --git a/test/unittest/light/light_agent_test.cpp b/test/unittest/light/light_agent_test.cpp index 1535369..9715930 100644 --- a/test/unittest/light/light_agent_test.cpp +++ b/test/unittest/light/light_agent_test.cpp @@ -55,7 +55,7 @@ HapInfoParams g_infoManagerTestInfoParms = { .instIndex = 0, .appIDDesc = "LightAgentTest" }; -} // namespace +} // namespace class LightAgentTest : public testing::Test { public: @@ -346,5 +346,5 @@ HWTEST_F(LightAgentTest, StartLightTest_011, TestSize.Level1) int32_t ret = TurnOff(g_invalidLightId); ASSERT_EQ(ret, -1); } -} // namespace Sensors -} // namespace OHOS +} // namespace Sensors +} // namespace OHOS diff --git a/test/unittest/vibrator/capi/vibrator_test.cpp b/test/unittest/vibrator/capi/vibrator_test.cpp index f6858db..029c422 100644 --- a/test/unittest/vibrator/capi/vibrator_test.cpp +++ b/test/unittest/vibrator/capi/vibrator_test.cpp @@ -60,7 +60,7 @@ HapInfoParams infoManagerTestInfoParms_ = { .instIndex = 0, .appIDDesc = "NativeVibratorTest" }; -} // namespace +} // namespace class NativeVibratorTest : public testing::Test { public: @@ -426,5 +426,5 @@ HWTEST_F(NativeVibratorTest, OH_Vibrator_PlayVibrationCustom_024, TestSize.Level std::this_thread::sleep_for(std::chrono::milliseconds(TIME_WAIT_FOR_OP)); OH_Vibrator_Cancel(); } -} // namespace Sensors -} // namespace OHOS +} // namespace Sensors +} // namespace OHOS diff --git a/test/unittest/vibrator/native/vibrator_agent_test.cpp b/test/unittest/vibrator/native/vibrator_agent_test.cpp index 28a012b..9def4b5 100644 --- a/test/unittest/vibrator/native/vibrator_agent_test.cpp +++ b/test/unittest/vibrator/native/vibrator_agent_test.cpp @@ -64,7 +64,7 @@ HapInfoParams g_infoManagerTestInfoParms = { .instIndex = 0, .appIDDesc = "vibratorAgentTest" }; -} // namespace +} // namespace class VibratorAgentTest : public testing::Test { public: @@ -1294,5 +1294,5 @@ HWTEST_F(VibratorAgentTest, IsHdHapticSupported_001, TestSize.Level1) bool ret = IsHdHapticSupported(); MISC_HILOGI("IsHdHapticSupported:%{public}s", ret ? "true" : "false"); } -} // namespace Sensors -} // namespace OHOS +} // namespace Sensors +} // namespace OHOS -- Gitee