1ca0551cfSopenharmony_ci/* 2ca0551cfSopenharmony_ci * Copyright (c) 2022 Huawei Device Co., Ltd. 3ca0551cfSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 4ca0551cfSopenharmony_ci * you may not use this file except in compliance with the License. 5ca0551cfSopenharmony_ci * You may obtain a copy of the License at 6ca0551cfSopenharmony_ci * 7ca0551cfSopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 8ca0551cfSopenharmony_ci * 9ca0551cfSopenharmony_ci * Unless required by applicable law or agreed to in writing, software 10ca0551cfSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 11ca0551cfSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12ca0551cfSopenharmony_ci * See the License for the specific language governing permissions and 13ca0551cfSopenharmony_ci * limitations under the License. 14ca0551cfSopenharmony_ci */ 15ca0551cfSopenharmony_ci#ifndef OHOS_CACHEABLE_IDL_FILE_H 16ca0551cfSopenharmony_ci#define OHOS_CACHEABLE_IDL_FILE_H 17ca0551cfSopenharmony_ci 18ca0551cfSopenharmony_ci#include <string> 19ca0551cfSopenharmony_cinamespace OHOS { 20ca0551cfSopenharmony_cinamespace Idl { 21ca0551cfSopenharmony_cinamespace TestCommon { 22ca0551cfSopenharmony_ci 23ca0551cfSopenharmony_ciconst std::string CACHE_TIME_001_IDL_NAME = "CacheTimeTest001.idl"; 24ca0551cfSopenharmony_ci 25ca0551cfSopenharmony_ciconst std::string CACHEABLE_TIME_TEST001_IDL_CONTENT = 26ca0551cfSopenharmony_ci"interface idl.OHOS.CacheTimeTest001 {\n" 27ca0551cfSopenharmony_ci" [cacheable 100]void test001([in] short param1);\n" 28ca0551cfSopenharmony_ci" [cacheable 0]void test002([in] short param1);\n" 29ca0551cfSopenharmony_ci" [cacheable 00200]void test003([in] short param1);\n" 30ca0551cfSopenharmony_ci" [cacheable 2147483647]void test004([in] short param1);\n" 31ca0551cfSopenharmony_ci"}"; 32ca0551cfSopenharmony_ci 33ca0551cfSopenharmony_ciconst std::string CACHE_TIME_002_IDL_NAME = "CacheTimeTest002.idl"; 34ca0551cfSopenharmony_ci 35ca0551cfSopenharmony_ciconst std::string CACHEABLE_TIME_TEST002_IDL_CONTENT = 36ca0551cfSopenharmony_ci"interface idl.OHOS.CacheTimeTest002 {\n" 37ca0551cfSopenharmony_ci" [cacheable 2147483648]void test001([in] short param1);\n" 38ca0551cfSopenharmony_ci"}"; 39ca0551cfSopenharmony_ci 40ca0551cfSopenharmony_ciconst std::string CACHE_TIME_003_IDL_NAME = "CacheTimeTest003.idl"; 41ca0551cfSopenharmony_ci 42ca0551cfSopenharmony_ciconst std::string CACHEABLE_TIME_TEST003_IDL_CONTENT = 43ca0551cfSopenharmony_ci"interface idl.OHOS.CacheTimeTest003 {\n" 44ca0551cfSopenharmony_ci" [cacheable]void test001([in] short param1);\n" 45ca0551cfSopenharmony_ci"}"; 46ca0551cfSopenharmony_ci 47ca0551cfSopenharmony_ciconst std::string CACHE_TIME_004_IDL_NAME = "CacheTimeTest004.idl"; 48ca0551cfSopenharmony_ci 49ca0551cfSopenharmony_ciconst std::string CACHEABLE_TIME_TEST004_IDL_CONTENT = 50ca0551cfSopenharmony_ci"interface idl.OHOS.CacheTimeTest004 {\n" 51ca0551cfSopenharmony_ci" [cacheable 100]void test001([in] short param1);\n" 52ca0551cfSopenharmony_ci"}"; 53ca0551cfSopenharmony_ci 54ca0551cfSopenharmony_ciconst std::string CACHE_TIME_005_IDL_NAME = "CacheTimeTest005.idl"; 55ca0551cfSopenharmony_ci 56ca0551cfSopenharmony_ciconst std::string CACHEABLE_TIME_TEST005_IDL_CONTENT = 57ca0551cfSopenharmony_ci"interface idl.OHOS.CacheTimeTest005 {\n" 58ca0551cfSopenharmony_ci" [cacheable -900]void test001([in] short param1);\n" 59ca0551cfSopenharmony_ci"}"; 60ca0551cfSopenharmony_ci 61ca0551cfSopenharmony_ciconst std::string CACHE_TIME_006_IDL_NAME = "CacheTimeTest006.idl"; 62ca0551cfSopenharmony_ci 63ca0551cfSopenharmony_ciconst std::string CACHEABLE_TIME_TEST006_IDL_CONTENT = 64ca0551cfSopenharmony_ci"interface idl.OHOS.CacheTimeTest006 {\n" 65ca0551cfSopenharmony_ci" [cacheable 8980abcn]void test001([in] short param1);\n" 66ca0551cfSopenharmony_ci"}"; 67ca0551cfSopenharmony_ci 68ca0551cfSopenharmony_ciconst std::string CACHE_TIME_007_IDL_NAME = "CacheTimeTest007.idl"; 69ca0551cfSopenharmony_ci 70ca0551cfSopenharmony_ciconst std::string CACHEABLE_TIME_TEST007_IDL_CONTENT = 71ca0551cfSopenharmony_ci"interface idl.OHOS.CacheTimeTest007 {\n" 72ca0551cfSopenharmony_ci" [oneway, cacheable 8888]void test001([in] short param1);\n" 73ca0551cfSopenharmony_ci" [cacheable 8888, oneway]void test002([in] short param1);\n" 74ca0551cfSopenharmony_ci"}"; 75ca0551cfSopenharmony_ci 76ca0551cfSopenharmony_ciconst std::string CACHE_TIME_008_IDL_NAME = "CacheTimeTest008.idl"; 77ca0551cfSopenharmony_ci 78ca0551cfSopenharmony_ciconst std::string CACHEABLE_TIME_TEST008_IDL_CONTENT = 79ca0551cfSopenharmony_ci"interface idl.OHOS.CacheTimeTest008 {\n" 80ca0551cfSopenharmony_ci" [oneway, oneway, cacheable 8233]void test001([in] short param1);\n" 81ca0551cfSopenharmony_ci"}"; 82ca0551cfSopenharmony_ci 83ca0551cfSopenharmony_ciconst std::string CACHE_TIME_009_IDL_NAME = "CacheTimeTest009.idl"; 84ca0551cfSopenharmony_ci 85ca0551cfSopenharmony_ciconst std::string CACHEABLE_TIME_TEST009_IDL_CONTENT = 86ca0551cfSopenharmony_ci"interface idl.OHOS.CacheTimeTest009 {\n" 87ca0551cfSopenharmony_ci" [cacheable 8233, cacheable 2332323]void test001([in] short param1);\n" 88ca0551cfSopenharmony_ci"}"; 89ca0551cfSopenharmony_ci 90ca0551cfSopenharmony_ciconst std::string CACHE_TIME_010_IDL_NAME = "CacheTimeTest010.idl"; 91ca0551cfSopenharmony_ci 92ca0551cfSopenharmony_ciconst std::string CACHEABLE_TIME_TEST010_IDL_CONTENT = 93ca0551cfSopenharmony_ci"interface idl.OHOS.CacheTimeTest010 {\n" 94ca0551cfSopenharmony_ci" [cacheable 1.23456]void test001([in] short param1);\n" 95ca0551cfSopenharmony_ci"}"; 96ca0551cfSopenharmony_ci} 97ca0551cfSopenharmony_ci} 98ca0551cfSopenharmony_ci} 99ca0551cfSopenharmony_ci#endif // OHOS_CACHEABLE_IDL_FILE_H