1 /*
2  * Copyright (c) 2022 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 OHOS_CACHEABLE_IDL_FILE_H
16 #define OHOS_CACHEABLE_IDL_FILE_H
17 
18 #include <string>
19 namespace OHOS {
20 namespace Idl {
21 namespace TestCommon {
22 
23 const std::string CACHE_TIME_001_IDL_NAME = "CacheTimeTest001.idl";
24 
25 const std::string CACHEABLE_TIME_TEST001_IDL_CONTENT =
26 "interface idl.OHOS.CacheTimeTest001 {\n"
27 "   [cacheable 100]void test001([in] short param1);\n"
28 "	[cacheable 0]void test002([in] short param1);\n"
29 "	[cacheable 00200]void test003([in] short param1);\n"
30 "	[cacheable 2147483647]void test004([in] short param1);\n"
31 "}";
32 
33 const std::string CACHE_TIME_002_IDL_NAME = "CacheTimeTest002.idl";
34 
35 const std::string CACHEABLE_TIME_TEST002_IDL_CONTENT =
36 "interface idl.OHOS.CacheTimeTest002 {\n"
37 "   [cacheable 2147483648]void test001([in] short param1);\n"
38 "}";
39 
40 const std::string CACHE_TIME_003_IDL_NAME = "CacheTimeTest003.idl";
41 
42 const std::string CACHEABLE_TIME_TEST003_IDL_CONTENT =
43 "interface idl.OHOS.CacheTimeTest003 {\n"
44 "   [cacheable]void test001([in] short param1);\n"
45 "}";
46 
47 const std::string CACHE_TIME_004_IDL_NAME = "CacheTimeTest004.idl";
48 
49 const std::string CACHEABLE_TIME_TEST004_IDL_CONTENT =
50 "interface idl.OHOS.CacheTimeTest004 {\n"
51 "   [cacheable            100]void test001([in] short param1);\n"
52 "}";
53 
54 const std::string CACHE_TIME_005_IDL_NAME = "CacheTimeTest005.idl";
55 
56 const std::string CACHEABLE_TIME_TEST005_IDL_CONTENT =
57 "interface idl.OHOS.CacheTimeTest005 {\n"
58 "   [cacheable -900]void test001([in] short param1);\n"
59 "}";
60 
61 const std::string CACHE_TIME_006_IDL_NAME = "CacheTimeTest006.idl";
62 
63 const std::string CACHEABLE_TIME_TEST006_IDL_CONTENT =
64 "interface idl.OHOS.CacheTimeTest006 {\n"
65 "   [cacheable 8980abcn]void test001([in] short param1);\n"
66 "}";
67 
68 const std::string CACHE_TIME_007_IDL_NAME = "CacheTimeTest007.idl";
69 
70 const std::string CACHEABLE_TIME_TEST007_IDL_CONTENT =
71 "interface idl.OHOS.CacheTimeTest007 {\n"
72 "   [oneway, cacheable 8888]void test001([in] short param1);\n"
73 "   [cacheable    8888, oneway]void test002([in] short param1);\n"
74 "}";
75 
76 const std::string CACHE_TIME_008_IDL_NAME = "CacheTimeTest008.idl";
77 
78 const std::string CACHEABLE_TIME_TEST008_IDL_CONTENT =
79 "interface idl.OHOS.CacheTimeTest008 {\n"
80 "   [oneway, oneway, cacheable 8233]void test001([in] short param1);\n"
81 "}";
82 
83 const std::string CACHE_TIME_009_IDL_NAME = "CacheTimeTest009.idl";
84 
85 const std::string CACHEABLE_TIME_TEST009_IDL_CONTENT =
86 "interface idl.OHOS.CacheTimeTest009 {\n"
87 "   [cacheable 8233, cacheable 2332323]void test001([in] short param1);\n"
88 "}";
89 
90 const std::string CACHE_TIME_010_IDL_NAME = "CacheTimeTest010.idl";
91 
92 const std::string CACHEABLE_TIME_TEST010_IDL_CONTENT =
93 "interface idl.OHOS.CacheTimeTest010 {\n"
94 "   [cacheable 1.23456]void test001([in] short param1);\n"
95 "}";
96 }
97 }
98 }
99 #endif  // OHOS_CACHEABLE_IDL_FILE_H