• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2025 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License") = 0;
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef OHOS_FILEMGMT_TEST_COMMON_H
17 #define OHOS_FILEMGMT_TEST_COMMON_H
18 
19 #include <string>
20 #include <thread>
21 #include <gmock/gmock.h>
22 #include <gtest/gtest.h>
23 #include "action_define.h"
24 
25 namespace OHOS::FileManagement::Backup {
26 
27 const std::string EMPTY_BUNDLE_NAME = "";
28 const std::string BUNDLE_NAME = "com.example.app2backup";
29 const std::string SA_BUNDLE_NAME = "1234";
30 const std::string BUNDLE_NAME_FALSE = "com.example.app2backup.false";
31 constexpr uint32_t CLEARED_CLIENT_TOKEN = 99;
32 constexpr int START_RETURN_FALSE = 100;
33 const std::string MANAGE_JSON = "manage.json";
34 const std::string FILE_NAME = "1.tar";
35 constexpr int32_t SERVICE_ID = 5203;
36 
37 } // namespace OHOS::FileManagement::Backup
38 #endif // OHOS_FILEMGMT_TEST_COMMON_H