1545fdf9bSopenharmony_ci/*
2545fdf9bSopenharmony_ci * Copyright (c) 2023 Huawei Device Co., Ltd.
3545fdf9bSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
4545fdf9bSopenharmony_ci * you may not use this file except in compliance with the License.
5545fdf9bSopenharmony_ci * You may obtain a copy of the License at
6545fdf9bSopenharmony_ci *
7545fdf9bSopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
8545fdf9bSopenharmony_ci *
9545fdf9bSopenharmony_ci * Unless required by applicable law or agreed to in writing, software
10545fdf9bSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
11545fdf9bSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12545fdf9bSopenharmony_ci * See the License for the specific language governing permissions and
13545fdf9bSopenharmony_ci * limitations under the License.
14545fdf9bSopenharmony_ci */
15545fdf9bSopenharmony_ci
16545fdf9bSopenharmony_ci#ifndef FOUNDATION_BUNDLEMANAGER_BUNDLE_TOOL_TEST_SYSTEMTEST_BM_TOOL_SYSTEM_TEST_H
17545fdf9bSopenharmony_ci#define FOUNDATION_BUNDLEMANAGER_BUNDLE_TOOL_TEST_SYSTEMTEST_BM_TOOL_SYSTEM_TEST_H
18545fdf9bSopenharmony_ci
19545fdf9bSopenharmony_ci#include <iostream>
20545fdf9bSopenharmony_ci
21545fdf9bSopenharmony_cinamespace OHOS {
22545fdf9bSopenharmony_cinamespace AppExecFwk {
23545fdf9bSopenharmony_cinamespace {
24545fdf9bSopenharmony_ciconst int TIME_DELAY_FOR_SERVICES = 2;
25545fdf9bSopenharmony_ci}
26545fdf9bSopenharmony_ci
27545fdf9bSopenharmony_ciclass ToolSystemTest {
28545fdf9bSopenharmony_cipublic:
29545fdf9bSopenharmony_ci    static std::string ExecuteCommand(const std::string& command);
30545fdf9bSopenharmony_ci    static void InstallBundle(const std::string& bundlePath, const bool checkResult = false);
31545fdf9bSopenharmony_ci    static void UninstallBundle(const std::string& bundleName, const bool checkResult = false);
32545fdf9bSopenharmony_ci    static bool IsSubSequence(const std::string& str, const std::string& subStr);
33545fdf9bSopenharmony_ci};
34545fdf9bSopenharmony_ci}  // namespace AppExecFwk
35545fdf9bSopenharmony_ci}  // namespace OHOS
36545fdf9bSopenharmony_ci
37545fdf9bSopenharmony_ci#endif  // FOUNDATION_BUNDLEMANAGER_BUNDLE_TOOL_TEST_SYSTEMTEST_BM_TOOL_SYSTEM_TEST_H
38