删除用例

Signed-off-by: swg3156201044 <shiweigang2@huawei.com>
This commit is contained in:
swg3156201044 2024-03-20 21:53:43 +08:00
parent 9bee1ab8ea
commit 1503a38ee4
3 changed files with 1 additions and 122 deletions

View File

@ -22,5 +22,5 @@ config("accountfuzz_test_config") {
group("systemtest") { group("systemtest") {
testonly = true testonly = true
deps = [ "actsaccountfuzztest:fuzzTest" ] deps = []
} }

View File

@ -1,73 +0,0 @@
# Copyright (c) 2021 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import("//build/test.gni")
import("../../../../../os_account.gni")
module_output_path = "account/systemtest"
ohos_systemtest("ActsAccountFuzzTest") {
module_out_path = module_output_path
resource_config_file = "${os_account_path}/test/systemtest/common/resource/fuzzTest/ohos_test.xml"
sources = [
"${os_account_path}/test/systemtest/common/resource/fuzzTest/src/fuzz_test_manager.cpp",
"${os_account_path}/test/systemtest/common/resource/fuzzTest/src/getparam.cpp",
"acts_account_fuzz_test.cpp",
]
configs = [
"${os_account_path}/test/systemtest/common/acts:accountfuzz_test_config",
]
include_dirs = [
"${app_account_interfaces_native_path}/include",
"${os_account_interfaces_native_path}/include",
"${innerkits_common}/include",
"${os_account_path}/test/systemtest/common/resource/fuzzTest/include",
"${services_path}/accountmgr/include/appaccount",
]
cflags = []
if (target_cpu == "arm") {
cflags += [ "-DBINDER_IPC_32BIT" ]
}
deps = [
"${app_account_innerkits_native_path}:app_account_innerkits",
"${common_path}:libaccount_common",
"${innerkits_native_path}:libaccountkits",
"${os_account_innerkits_native_path}:os_account_innerkits",
"${os_account_path}/services/accountmgr/src/appaccount:app_account_service_core",
"//third_party/googletest:gtest_main",
]
defines = [
"ACCOUNT_LOG_TAG = \"AccountFuzzTest\"",
"LOG_DOMAIN = 0xD001B00",
]
external_deps = [
"ability_base:want",
"c_utils:utils",
"hilog:libhilog",
"ipc:ipc_single",
"json:nlohmann_json_static",
]
}
group("fuzzTest") {
testonly = true
deps = []
}

View File

@ -1,48 +0,0 @@
/*
* Copyright (c) 2021-2022 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <gtest/gtest.h>
#include "fuzz_test_manager.h"
using namespace testing::ext;
namespace OHOS {
namespace AccountSA {
class ActsAccountFuzzTest : public testing::Test {
public:
static void SetUpTestCase();
static void TearDownTestCase();
void SetUp();
void TearDown();
};
void ActsAccountFuzzTest::SetUpTestCase()
{}
void ActsAccountFuzzTest::TearDownTestCase()
{}
void ActsAccountFuzzTest::SetUp(void) __attribute__((no_sanitize("cfi")))
{
testing::UnitTest *test = testing::UnitTest::GetInstance();
ASSERT_NE(test, nullptr);
const testing::TestInfo *testinfo = test->current_test_info();
ASSERT_NE(testinfo, nullptr);
string testCaseName = string(testinfo->name());
ACCOUNT_LOGI("[SetUp] %{public}s start", testCaseName.c_str());
}
void ActsAccountFuzzTest::TearDown()
{}
} // namespace AccountSA
} // namespace OHOS