17c804472Sopenharmony_ci/*
27c804472Sopenharmony_ci * Copyright (c) 2024 Huawei Device Co., Ltd.
37c804472Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
47c804472Sopenharmony_ci * you may not use this file except in compliance with the License.
57c804472Sopenharmony_ci * You may obtain a copy of the License at
67c804472Sopenharmony_ci *
77c804472Sopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
87c804472Sopenharmony_ci *
97c804472Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software
107c804472Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
117c804472Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
127c804472Sopenharmony_ci * See the License for the specific language governing permissions and
137c804472Sopenharmony_ci * limitations under the License.
147c804472Sopenharmony_ci */
157c804472Sopenharmony_ci
167c804472Sopenharmony_ci#ifndef GLOBAL_VARIABLES_H
177c804472Sopenharmony_ci#define GLOBAL_VARIABLES_H
187c804472Sopenharmony_ci
197c804472Sopenharmony_ci// MockJsAppImpl
207c804472Sopenharmony_ciextern bool g_getOrientation;
217c804472Sopenharmony_ciextern bool g_getColorMode;
227c804472Sopenharmony_ciextern bool g_memoryRefresh;
237c804472Sopenharmony_ciextern bool g_getJSONTree;
247c804472Sopenharmony_ciextern bool g_getDefaultJSONTree;
257c804472Sopenharmony_ciextern bool g_loadDocument;
267c804472Sopenharmony_ciextern bool g_reloadRuntimePage;
277c804472Sopenharmony_ciextern bool g_restart;
287c804472Sopenharmony_ciextern bool g_dispatchBackPressedEvent;
297c804472Sopenharmony_ciextern bool g_dispatchPointerEvent;
307c804472Sopenharmony_ciextern bool g_dispatchAxisEvent;
317c804472Sopenharmony_ciextern bool g_dispatchInputMethodEvent;
327c804472Sopenharmony_ciextern bool g_dispatchKeyEvent;
337c804472Sopenharmony_ci
347c804472Sopenharmony_ci// MockKeyInputImpl
357c804472Sopenharmony_ciextern bool g_dispatchOsInputMethodEvent;
367c804472Sopenharmony_ciextern bool g_dispatchOsKeyEvent;
377c804472Sopenharmony_ci
387c804472Sopenharmony_ci// MockMouseInputImpl
397c804472Sopenharmony_ciextern bool g_dispatchOsTouchEvent;
407c804472Sopenharmony_ciextern bool g_dispatchOsBackEvent;
417c804472Sopenharmony_ci
427c804472Sopenharmony_ci// MockVirtualMessageImpl
437c804472Sopenharmony_ciextern bool g_sendVirtualMessage;
447c804472Sopenharmony_ci
457c804472Sopenharmony_ci// MockLocalSocket
467c804472Sopenharmony_ciextern bool g_input;
477c804472Sopenharmony_ciextern bool g_output;
487c804472Sopenharmony_ciextern bool g_disconnectFromServer;
497c804472Sopenharmony_ci
507c804472Sopenharmony_ci// MockWebSocketServer
517c804472Sopenharmony_ciextern bool g_run;
527c804472Sopenharmony_ciextern bool g_writeData;
537c804472Sopenharmony_ci
547c804472Sopenharmony_ci// MockVirtualScreen
557c804472Sopenharmony_ciextern bool g_getCurrentWidth;
567c804472Sopenharmony_ciextern bool g_getCurrentHeight;
577c804472Sopenharmony_ciextern bool g_getCurrentRouter;
587c804472Sopenharmony_ciextern bool g_getAbilityCurrentRouter;
597c804472Sopenharmony_ciextern bool g_getFastPreviewMsg;
607c804472Sopenharmony_ciextern bool g_getFoldStatus;
617c804472Sopenharmony_ci
627c804472Sopenharmony_ci// MockAceAbility
637c804472Sopenharmony_ciextern bool g_setMockModuleList;
647c804472Sopenharmony_ciextern bool g_initEnv;
657c804472Sopenharmony_ciextern bool g_onBackPressed;
667c804472Sopenharmony_ciextern bool g_onInputEvent;
677c804472Sopenharmony_ciextern bool g_onInputMethodEvent;
687c804472Sopenharmony_ciextern bool g_onConfigurationChanged;
697c804472Sopenharmony_ciextern bool g_surfaceChanged;
707c804472Sopenharmony_ciextern bool g_replacePage;
717c804472Sopenharmony_ciextern bool g_loadAceDocument;
727c804472Sopenharmony_ciextern bool g_getAceJSONTree;
737c804472Sopenharmony_ciextern bool g_operateComponent;
747c804472Sopenharmony_ciextern bool g_setWindow;
757c804472Sopenharmony_ci
767c804472Sopenharmony_ci// MockWindowDisplay
777c804472Sopenharmony_ciextern bool g_execStatusChangedCallback;
787c804472Sopenharmony_ci
797c804472Sopenharmony_ci// MockGlfwRenderContext
807c804472Sopenharmony_ciextern bool g_glfwInit;
817c804472Sopenharmony_ciextern bool g_createGlfwWindow;
827c804472Sopenharmony_ciextern bool g_destroyWindow;
837c804472Sopenharmony_ciextern bool g_terminate;
847c804472Sopenharmony_ciextern bool g_pollEvents;
857c804472Sopenharmony_ci
867c804472Sopenharmony_ci// MockWindow
877c804472Sopenharmony_ciextern bool g_setContentInfoCallback;
887c804472Sopenharmony_ciextern bool g_createSurfaceNode;
897c804472Sopenharmony_ciextern bool g_getSystemBarPropertyByType;
907c804472Sopenharmony_ciextern bool g_updateAvoidArea;
917c804472Sopenharmony_ci
927c804472Sopenharmony_ci// MockSimulator
937c804472Sopenharmony_ciextern bool g_terminateAbility;
947c804472Sopenharmony_ciextern bool g_updateConfiguration;
957c804472Sopenharmony_ciextern bool g_setAbilityMockList;
967c804472Sopenharmony_ciextern bool g_setHostResolveBufferTracker;
977c804472Sopenharmony_ci
987c804472Sopenharmony_ci// MockJsAbility
997c804472Sopenharmony_ciextern bool g_jsAbilityLaunch;
1007c804472Sopenharmony_ciextern bool g_jsAbilityShow;
1017c804472Sopenharmony_ciextern bool g_jsAbilityHide;
1027c804472Sopenharmony_ciextern bool g_jsAbilityTransferToDestroy;
1037c804472Sopenharmony_ci
1047c804472Sopenharmony_ci// MockUIFont
1057c804472Sopenharmony_ciextern bool g_uiFontSetFont;
1067c804472Sopenharmony_ciextern bool g_uiFontSetPsramMemory;
1077c804472Sopenharmony_ci
1087c804472Sopenharmony_ci// MockProductAdapter
1097c804472Sopenharmony_ciextern bool g_setDefaultFontStyle;
1107c804472Sopenharmony_ci
1117c804472Sopenharmony_ci// MockDebugger
1127c804472Sopenharmony_ciextern bool g_configEngineDebugger;
1137c804472Sopenharmony_ci
1147c804472Sopenharmony_ci// MockGraphicStartUp
1157c804472Sopenharmony_ciextern bool g_graphicStartUpInit;
1167c804472Sopenharmony_ci
1177c804472Sopenharmony_ci// MockInputDeviceManager
1187c804472Sopenharmony_ciextern bool g_inputDeviceManagerAdd;
1197c804472Sopenharmony_ci
1207c804472Sopenharmony_ci// MockTaskManager
1217c804472Sopenharmony_ciextern bool g_taskHandler;
1227c804472Sopenharmony_ci
1237c804472Sopenharmony_ci// MockGlobal
1247c804472Sopenharmony_ciextern bool g_globalConfigLanguage;
1257c804472Sopenharmony_ci
1267c804472Sopenharmony_ci#endif // GLOBAL_VARIABLES_H