From 9e5e24c760af0052b9c3a6a88fa99fcd42318c49 Mon Sep 17 00:00:00 2001 From: liyiming13 Date: Thu, 23 Mar 2023 15:23:30 +0800 Subject: [PATCH] Fix codecheck in utils_ashmem_test.cpp Issue:I6PKIQ Test: unittest Signed-off-by: liyiming13 --- base/test/unittest/common/utils_ashmem_test.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/base/test/unittest/common/utils_ashmem_test.cpp b/base/test/unittest/common/utils_ashmem_test.cpp index d809159..c2b97b2 100644 --- a/base/test/unittest/common/utils_ashmem_test.cpp +++ b/base/test/unittest/common/utils_ashmem_test.cpp @@ -27,9 +27,10 @@ #include "ashmem.h" using namespace testing::ext; -using namespace OHOS; using namespace std; +namespace OHOS { +namespace { const int MAX_PARCEL_SIZE = 1000; char g_data[MAX_PARCEL_SIZE]; const int32_t MEMORY_SIZE = 1024; @@ -367,3 +368,5 @@ HWTEST_F(UtilsAshmemTest, test_ashmem_InvalidOperation_006, TestSize.Level0) ashmem->CloseAshmem(); EXPECT_FALSE(ret); } +} // namespace +} // namespace OHOS \ No newline at end of file -- Gitee