1 /* 2 * Copyright (c) 2024 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 ARKUI_CAPI_DEMO_LIST_CLOSE_ALL_ACTION_TEST_H 17 #define ARKUI_CAPI_DEMO_LIST_CLOSE_ALL_ACTION_TEST_H 18 19 #include <ace/xcomponent/native_interface_xcomponent.h> 20 #include <arkui/native_interface.h> 21 #include <arkui/native_node.h> 22 23 #include "column_component.h" 24 #include "common/common.h" 25 #include "list_component.h" 26 #include "text_component.h" 27 28 namespace ArkUICapiTest { 29 #define SIZE_1000 1000 30 31 class ListCloseAllTest { 32 public: 33 ~ListCloseAllTest(); 34 static napi_value CreateNativeNodeCloseAll(napi_env env, napi_callback_info info); 35 static napi_value GetRetData(napi_env env, napi_callback_info info); 36 37 static std::vector<int32_t> retData; 38 39 private: 40 }; 41 } // namespace ArkUICapiTest 42 #endif // ARKUI_CAPI_DEMO_LIST_CLOSE_ALL_ACTION_TEST_H 43