• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 #include "MockGlobalResult.h"
17 
18 // MockJsAppImpl
19 bool g_getOrientation = false;
20 bool g_getColorMode = false;
21 bool g_memoryRefresh = false;
22 bool g_getJSONTree = false;
23 bool g_getDefaultJSONTree = false;
24 bool g_loadDocument = false;
25 bool g_reloadRuntimePage = false;
26 bool g_restart = false;
27 bool g_dispatchBackPressedEvent = false;
28 bool g_dispatchPointerEvent = false;
29 bool g_dispatchAxisEvent = false;
30 bool g_dispatchInputMethodEvent = false;
31 bool g_dispatchKeyEvent = false;
32 
33 // MockKeyInputImpl
34 bool g_dispatchOsInputMethodEvent = false;
35 bool g_dispatchOsKeyEvent = false;
36 
37 // MockMouseInputImpl
38 bool g_dispatchOsTouchEvent = false;
39 bool g_dispatchOsBackEvent = false;
40 
41 // MockVirtualMessageImpl
42 bool g_sendVirtualMessage = false;
43 
44 // MockLocalSocket
45 bool g_input = false;
46 bool g_output = false;
47 bool g_disconnectFromServer = false;
48 
49 // MockWebSocketServer
50 bool g_run = false;
51 bool g_writeData = false;
52 
53 // MockVirtualScreen
54 bool g_getCurrentWidth = false;
55 bool g_getCurrentHeight = false;
56 bool g_getCurrentRouter = false;
57 bool g_getAbilityCurrentRouter = false;
58 bool g_getFastPreviewMsg = false;
59 bool g_getFoldStatus = false;
60 
61 // MockAceAbility
62 bool g_setMockModuleList = false;
63 bool g_initEnv = false;
64 bool g_onBackPressed = false;
65 bool g_onInputEvent = false;
66 bool g_onInputMethodEvent = false;
67 bool g_onConfigurationChanged = false;
68 bool g_surfaceChanged = false;
69 bool g_replacePage = false;
70 bool g_loadAceDocument = false;
71 bool g_getAceJSONTree = false;
72 bool g_operateComponent = false;
73 bool g_setWindow = false;
74 
75 // MockWindowDisplay
76 bool g_execStatusChangedCallback = false;
77 
78 // MockGlfwRenderContext
79 bool g_glfwInit = false;
80 bool g_createGlfwWindow = false;
81 bool g_destroyWindow = false;
82 bool g_terminate = false;
83 bool g_pollEvents = false;
84 
85 // MockWindow
86 bool g_setContentInfoCallback = false;
87 bool g_createSurfaceNode = false;
88 bool g_getSystemBarPropertyByType = false;
89 bool g_updateAvoidArea = false;
90 
91 // MockSimulator
92 bool g_terminateAbility = false;
93 bool g_updateConfiguration = false;
94 bool g_setAbilityMockList = false;
95 bool g_setHostResolveBufferTracker = false;