• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2021 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
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 ABILITY_APPEND_TEST_INFO_H
17 #define ABILITY_APPEND_TEST_INFO_H
18 
19 namespace OHOS {
20 namespace AppExecFwk {
21 const std::string g_EVENT_REQU_FIRST = "requ_com_ohos_amsst_appkit_first";
22 const std::string g_EVENT_RESP_FIRST = "resp_com_ohos_amsst_appkit_first";
23 const std::string g_EVENT_RESP_FIRST_LIFECYCLE = "resp_com_ohos_amsst_appkit_first_lifecycle";
24 
25 const std::string g_EVENT_REQU_FIRSTB = "requ_com_ohos_amsst_appkit_firstb";
26 const std::string g_EVENT_RESP_FIRSTB = "resp_com_ohos_amsst_appkit_firstb";
27 const std::string g_EVENT_RESP_FIRSTB_LIFECYCLE = "resp_com_ohos_amsst_appkit_firstb_lifecycle";
28 
29 const std::string g_EVENT_REQU_SECOND = "requ_com_ohos_amsst_appkit_second";
30 const std::string g_EVENT_RESP_SECOND = "resp_com_ohos_amsst_appkit_second";
31 const std::string g_EVENT_RESP_SECOND_LIFECYCLE = "resp_com_ohos_amsst_appkit_second_lifecycle";
32 
33 const std::string g_EVENT_REQU_THIRD = "requ_com_ohos_amsst_appkit_third";
34 const std::string g_EVENT_RESP_THIRD = "resp_com_ohos_amsst_appkit_third";
35 const std::string g_EVENT_RESP_THIRD_LIFECYCLE = "resp_com_ohos_amsst_appkit_third_lifecycle";
36 
37 const std::string g_EVENT_REQU_FOURTH = "requ_com_ohos_amsst_appkit_fourth";
38 const std::string g_EVENT_RESP_FOURTH = "resp_com_ohos_amsst_appkit_fourth";
39 const std::string g_EVENT_RESP_FOURTH_LIFECYCLE = "resp_com_ohos_amsst_appkit_fourth_lifecycle";
40 
41 const std::string g_EVENT_REQU_FIFTH = "requ_com_ohos_amsst_appkit_fifth";
42 const std::string g_EVENT_RESP_FIFTH = "resp_com_ohos_amsst_appkit_fifth";
43 const std::string g_EVENT_RESP_FIFTH_LIFECYCLE = "resp_com_ohos_amsst_appkit_fifth_lifecycle";
44 
45 const std::string g_EVENT_REQU_SIXTH = "requ_com_ohos_amsst_appkit_sixth";
46 const std::string g_EVENT_RESP_SIXTH = "resp_com_ohos_amsst_appkit_sixth";
47 const std::string g_EVENT_RESP_SIXTH_LIFECYCLE = "resp_com_ohos_amsst_appkit_sixth_lifecycle";
48 
49 const std::string g_EVENT_REQU_MAIN = "requ_com_ohos_amsst_appkit_main";
50 const std::string g_EVENT_RESP_MAIN = "resp_com_ohos_amsst_appkit_main";
51 const std::string g_EVENT_RESP_MAIN_LIFECYCLE = "resp_com_ohos_amsst_appkit_main_lifecycle";
52 
53 const std::string g_EVENT_REQU_MAIN_SUBSIDIARY = "requ_com_ohos_amsst_appkit_main_subsidiary";
54 const std::string g_EVENT_RESP_MAIN_SUBSIDIARY = "resp_com_ohos_amsst_appkit_main_subsidiary";
55 const std::string g_EVENT_RESP_MAIN_LIFECYCLE_SUBSIDIARY = "resp_com_ohos_amsst_appkit_main_lifecycle_subsidiary";
56 
57 const std::string g_EVENT_REQU_SECOND_SUBSIDIARY = "requ_com_ohos_amsst_appkit_second_subsidiary";
58 const std::string g_EVENT_RESP_SECOND_SUBSIDIARY = "resp_com_ohos_amsst_appkit_second_subsidiary";
59 const std::string g_EVENT_RESP_SECOND_LIFECYCLE_SUBSIDIARY = "resp_com_ohos_amsst_appkit_second_lifecycle_subsidiary";
60 
61 const int MAIN_ABILITY_A_CODE = 100;
62 const int SECOND_ABILITY_A_CODE = 200;
63 const int MAIN_ABILITY_B_CODE = 300;
64 
65 const int EXPECT_ST_ZERO =   0;
66 
67 const int MAIN_ABILITY_CODE =   100;
68 const int SECOND_ABILITY_CODE = 200;
69 const int THIRD_ABILITY_CODE =  300;
70 const int FOURTH_ABILITY_CODE = 400;
71 const int FIFTH_ABILITY_CODE =  500;
72 const int SIXTH_ABILITY_CODE =  600;
73 
74 const int MAIN_ABILITY_CODE_SUBSIDIARY =   10100;
75 const int SECOND_ABILITY_CODE_SUBSIDIARY = 10200;
76 
77 enum class AppendApi {
78     OnSetCaller,
79     TerminateAndRemoveMisson,
80     GetString,
81     GetStringArray,
82     GetIntArray,
83     GetPattern,
84     GetColor,
85     TerminateAbilityResult,
86     GetDispalyOrientation,
87     GetPreferencesDir,
88     StartAbilities,
89     GetColorMode,
90     SetColorMode,
91     IsFirstInMission,
92     End
93 };
94 
95 enum class MissionStackApi {
96     LockMission = (int)AppendApi::End,
97     End
98 };
99 
100 enum class TestAbilityState {
101     OnSaveAbilityState = (int)MissionStackApi::End,
102     OnRestoreAbilityState,
103     End
104 };
105 }  // namespace AppExecFwk
106 }  // namespace OHOS
107 #endif  // ABILITY_APPEND_TEST_INFO_H