From 57d0bf0fdcc4f1d419a11ab44257e9c34e46c4f4 Mon Sep 17 00:00:00 2001 From: chuxuezhe11 Date: Wed, 20 Oct 2021 20:56:24 -0700 Subject: [PATCH] Signed-off-by: chuxuezhe11 Change-Id: I965882f6c8268f9537532a4e3e9a711e0f7e0eb3 --- bin/test/BUILD.gn | 6 +++--- .../common/native/bytrace_ndk_test.cpp | 2 +- ohos.build | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) rename bin/test/{moduletest => unittest}/common/native/bytrace_ndk_test.cpp (99%) diff --git a/bin/test/BUILD.gn b/bin/test/BUILD.gn index e726a93..92951a6 100755 --- a/bin/test/BUILD.gn +++ b/bin/test/BUILD.gn @@ -20,9 +20,9 @@ config("module_private_config") { visibility = [ ":*" ] } -ohos_moduletest("BytraceNDKTest") { +ohos_unittest("BytraceNDKTest") { module_out_path = module_output_path - sources = [ "moduletest/common/native/bytrace_ndk_test.cpp" ] + sources = [ "unittest/common/native/bytrace_ndk_test.cpp" ] deps = [ "${bytrace_path}/bin:bytrace_capture_inner", "${innerkits_path}/native:bytrace_core", @@ -35,7 +35,7 @@ ohos_moduletest("BytraceNDKTest") { include_dirs = [ "${innerkits_path}/bytrace/bytrace_native/include" ] } -group("moduletest") { +group("unittest") { testonly = true deps = [ ":BytraceNDKTest" ] } diff --git a/bin/test/moduletest/common/native/bytrace_ndk_test.cpp b/bin/test/unittest/common/native/bytrace_ndk_test.cpp similarity index 99% rename from bin/test/moduletest/common/native/bytrace_ndk_test.cpp rename to bin/test/unittest/common/native/bytrace_ndk_test.cpp index 38470f7..e830d8a 100755 --- a/bin/test/moduletest/common/native/bytrace_ndk_test.cpp +++ b/bin/test/unittest/common/native/bytrace_ndk_test.cpp @@ -72,7 +72,7 @@ public: static void SetUpTestCase(void); static void TearDownTestCase(void); void SetUp(); - void TearDown(){}; + void TearDown() {}; }; void BytraceNDKTest::SetUpTestCase() diff --git a/ohos.build b/ohos.build index 924a1c3..2aa47f0 100755 --- a/ohos.build +++ b/ohos.build @@ -21,7 +21,7 @@ } ], "test_list": [ - "//developtools/bytrace_standard/bin/test:moduletest" + "//developtools/bytrace_standard/bin/test:unittest" ] } }