1 /* 2 * Copyright (c) 2024 SwanLink (Jiangsu) Technology Development 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 JSVM_XTS_NAPI_JSON_TEST_H 17 #define JSVM_XTS_NAPI_JSON_TEST_H 18 #include "jsvm.h" 19 #include "jsvm_common.h" 20 #include "native_common.h" 21 #include "test_entry.h" 22 #include "securec.h" 23 #include <cstdint> 24 #include <cstdio> 25 #include <cstdlib> 26 #include <ctime> 27 #include <thread> 28 #include <uv.h> 29 #include <bits/alltypes.h> 30 #include <unistd.h> 31 #include <cstring> 32 #include <fstream> 33 #include <string> 34 #include <vector> 35 using namespace std; 36 //OH_JSVM_JsonParse 37 JSVM_Value TestJsonParseTest1(JSVM_Env env, JSVM_CallbackInfo info); 38 JSVM_Value TestJsonParseTest2(JSVM_Env env, JSVM_CallbackInfo info); 39 JSVM_Value TestJsonParseTest3(JSVM_Env env, JSVM_CallbackInfo info); 40 41 //OH_JSVM_JsonStringify 42 JSVM_Value TestJsonStringifyTest1(JSVM_Env env, JSVM_CallbackInfo info); 43 JSVM_Value TestJsonStringifyTest2(JSVM_Env env, JSVM_CallbackInfo info); 44 JSVM_Value TestJsonStringifyTest3(JSVM_Env env, JSVM_CallbackInfo info); 45 46 //Combination 47 JSVM_Value TestJsonCombinationTest1(JSVM_Env env, JSVM_CallbackInfo info); 48 #endif //JSVM_XTS_NAPI_JSON_TEST_H 49