• 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 FOUNDATION_APPEXECFWK_SERVICES_BUNDLEMGR_TEST_MOCK_INCLUDE_JSON_CONSTANTS_H
17 #define FOUNDATION_APPEXECFWK_SERVICES_BUNDLEMGR_TEST_MOCK_INCLUDE_JSON_CONSTANTS_H
18 
19 #include "nlohmann/json.hpp"
20 
21 namespace OHOS {
22 namespace AppExecFwk {
23 namespace JsonConstants {
24 
25 const nlohmann::json NOT_STRING_TYPE = R"(
26         {
27             "number": 234,
28             "bool": true,
29             "object": {},
30             "array": []
31         }
32     )"_json;
33 
34 const nlohmann::json NOT_NUMBER_TYPE = R"(
35         {
36             "string": "info",
37             "object": {},
38             "array": []
39         }
40     )"_json;
41 
42 const nlohmann::json NOT_BOOL_TYPE = R"(
43         {
44             "number": 234,
45             "string": "info",
46             "object": {},
47             "array": []
48         }
49     )"_json;
50 
51 const nlohmann::json NOT_OBJECT_TYPE = R"(
52         {
53             "bool": true,
54             "number": 234,
55             "string": "info",
56             "array": []
57         }
58     )"_json;
59 
60 const nlohmann::json NOT_ARRAY_TYPE = R"(
61         {
62             "bool": true,
63             "number": 234,
64             "string": "info",
65             "object": {}
66         }
67     )"_json;
68 
69 }  // namespace JsonConstants
70 }  // namespace AppExecFwk
71 }  // namespace OHOS
72 #endif  // FOUNDATION_APPEXECFWK_SERVICES_BUNDLEMGR_TEST_MOCK_INCLUDE_JSON_CONSTANTS_H