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 #ifndef TASK_DISPATCHER_TEST_INFO_H 16 #define TASK_DISPATCHER_TEST_INFO_H 17 namespace OHOS { 18 namespace AppExecFwk { 19 #include <string> 20 21 const std::string g_EVENT_REQU_FIRST = "requ_com_ohos_task_dispatcher_first"; 22 const std::string g_EVENT_RESP_FIRST = "resp_com_ohos_task_dispatcher_first"; 23 const std::string g_EVENT_REQU_SECOND = "requ_com_ohos_task_dispatcher_second"; 24 const std::string g_EVENT_RESP_SECOND = "resp_com_ohos_task_dispatcher_second"; 25 const std::string g_EVENT_REQU_FIRST_B = "requ_com_ohos_task_dispatcher_first_b"; 26 const std::string g_EVENT_RESP_FIRST_B = "resp_com_ohos_task_dispatcher_first_b"; 27 const std::string g_EVENT_REQU_SECOND_B = "requ_com_ohos_task_dispatcher_second_b"; 28 const std::string g_EVENT_RESP_SECOND_B = "resp_com_ohos_task_dispatcher_second_b"; 29 30 enum class TestFunc { 31 GLOBAL, 32 PARALLEL, 33 SERIAL, 34 SPEC, 35 HYBRID, 36 MULTI_APP, 37 PRIORITY, 38 CANCEL_TASK, 39 EXTRA, 40 }; 41 } // namespace AppExecFwk 42 } // namespace OHOS 43 44 #endif // TASK_DISPATCHER_TEST_INFO_H