diff --git a/base/test/unittest/common/utils_ashmem_test.cpp b/base/test/unittest/common/utils_ashmem_test.cpp index d809159c809a414036ac4775e7743c0088cc871f..c2b97b2cee49cca8404d94d5f6418e5da0287288 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