/base/web/webview/test/ohos_nweb/ |
D | ohos_nweb_test.cpp | 50 std::shared_ptr<OHOS::NWeb::NWeb> g_nweb = nullptr; variable 199 g_nweb = NWeb::NWebAdapterHelper::Instance().CreateNWeb( in TestPrepare() 201 if (g_nweb == nullptr) { in TestPrepare() 206 g_nweb->Resize(g_window->GetRequestRect().width_, g_window->GetRequestRect().height_); in TestPrepare() 207 RegistEventCb(g_window, g_nweb); in TestPrepare() 215 g_nweb->SetNWebHandler(nwebHandler); in TestPrepare() 219 g_webSettings = g_nweb->GetPreference(); in TestPrepare() 236 g_nweb = NWeb::NWebAdapterHelper::Instance().CreateNWeb( in TestPrepareWithClient() 238 if (g_nweb == nullptr) { in TestPrepareWithClient() 243 g_nweb->Resize(g_window->GetRequestRect().width_, g_window->GetRequestRect().height_); in TestPrepareWithClient() [all …]
|
/base/web/webview/test/fuzztest/loadurl_fuzzer/ |
D | loadurl_fuzzer.cpp | 32 std::shared_ptr<OHOS::NWeb::NWeb> g_nweb = nullptr; variable 124 g_nweb = NWeb::NWebAdapterHelper::Instance().CreateNWeb( in DoSomethingInterestingWithMyAPI() 126 if (g_nweb == nullptr) { in DoSomethingInterestingWithMyAPI() 131 g_nweb->Load(url, additionalHttpHeaders); in DoSomethingInterestingWithMyAPI()
|
/base/web/webview/test/fuzztest/unregisterarkjsfunction_fuzzer/ |
D | unregisterarkjsfunction_fuzzer.cpp | 32 std::shared_ptr<OHOS::NWeb::NWeb> g_nweb = nullptr; variable 124 g_nweb = NWeb::NWebAdapterHelper::Instance().CreateNWeb( in DoSomethingInterestingWithMyAPI() 126 if (g_nweb == nullptr) { in DoSomethingInterestingWithMyAPI() 131 g_nweb->UnregisterArkJSfunction(object_name, method_list); in DoSomethingInterestingWithMyAPI()
|
/base/web/webview/test/fuzztest/executejavascript_fuzzer/ |
D | executejavascript_fuzzer.cpp | 39 std::shared_ptr<OHOS::NWeb::NWeb> g_nweb = nullptr; variable 131 g_nweb = NWeb::NWebAdapterHelper::Instance().CreateNWeb( in DoSomethingInterestingWithMyAPI() 133 if (g_nweb == nullptr) { in DoSomethingInterestingWithMyAPI() 137 g_nweb->ExecuteJavaScript(code); in DoSomethingInterestingWithMyAPI()
|
/base/web/webview/test/unittest/ohos_nweb/ |
D | nweb_input_event_test.cpp | 42 std::shared_ptr<NWeb> g_nweb; variable 79 g_input = std::make_shared<NWebInputEventConsumer>(g_nweb); 150 g_nweb = NWebAdapterHelper::Instance().CreateNWeb(window.GetRefPtr(), GetInitArgs()); 151 EXPECT_EQ(g_nweb, nullptr);
|
/base/web/webview/test/fuzztest/cannavigatebackorforward_fuzzer/ |
D | cannavigatebackorforward_fuzzer.cpp | 32 std::shared_ptr<OHOS::NWeb::NWeb> g_nweb = nullptr; variable 124 g_nweb = NWeb::NWebAdapterHelper::Instance().CreateNWeb( in DoSomethingInterestingWithMyAPI() 126 if (g_nweb == nullptr) { in DoSomethingInterestingWithMyAPI() 133 g_nweb->CanNavigateBackOrForward(numSteps); in DoSomethingInterestingWithMyAPI()
|
/base/web/webview/test/fuzztest/load_fuzzer/ |
D | load_fuzzer.cpp | 32 std::shared_ptr<OHOS::NWeb::NWeb> g_nweb = nullptr; variable 124 g_nweb = NWeb::NWebAdapterHelper::Instance().CreateNWeb( in DoSomethingInterestingWithMyAPI() 126 if (g_nweb == nullptr) { in DoSomethingInterestingWithMyAPI() 130 g_nweb->Load(url); in DoSomethingInterestingWithMyAPI()
|
/base/web/webview/test/fuzztest/putbackgroundcolor_fuzzer/ |
D | putbackgroundcolor_fuzzer.cpp | 32 std::shared_ptr<OHOS::NWeb::NWeb> g_nweb = nullptr; variable 124 g_nweb = NWeb::NWebAdapterHelper::Instance().CreateNWeb( in DoSomethingInterestingWithMyAPI() 126 if (g_nweb == nullptr) { in DoSomethingInterestingWithMyAPI() 133 g_nweb->PutBackgroundColor(color); in DoSomethingInterestingWithMyAPI()
|
/base/web/webview/test/fuzztest/loadwithdata_fuzzer/ |
D | loadwithdata_fuzzer.cpp | 32 std::shared_ptr<OHOS::NWeb::NWeb> g_nweb = nullptr; variable 124 g_nweb = NWeb::NWebAdapterHelper::Instance().CreateNWeb( in DoSomethingInterestingWithMyAPI() 126 if (g_nweb == nullptr) { in DoSomethingInterestingWithMyAPI() 132 g_nweb->LoadWithData(datas, mimeType, encoding); in DoSomethingInterestingWithMyAPI()
|
/base/web/webview/test/fuzztest/registerarkjsfunction_fuzzer/ |
D | registerarkjsfunction_fuzzer.cpp | 32 std::shared_ptr<OHOS::NWeb::NWeb> g_nweb = nullptr; variable 124 g_nweb = NWeb::NWebAdapterHelper::Instance().CreateNWeb( in DoSomethingInterestingWithMyAPI() 126 if (g_nweb == nullptr) { in DoSomethingInterestingWithMyAPI() 131 g_nweb->RegisterArkJSfunction(object_name, method_list); in DoSomethingInterestingWithMyAPI()
|
/base/web/webview/test/fuzztest/zoom_fuzzer/ |
D | zoom_fuzzer.cpp | 32 std::shared_ptr<OHOS::NWeb::NWeb> g_nweb = nullptr; variable 124 g_nweb = NWeb::NWebAdapterHelper::Instance().CreateNWeb( in DoSomethingInterestingWithMyAPI() 126 if (g_nweb == nullptr) { in DoSomethingInterestingWithMyAPI() 133 g_nweb->Zoom(zoomFactor); in DoSomethingInterestingWithMyAPI()
|
/base/web/webview/test/fuzztest/executejavascriptcode_fuzzer/ |
D | executejavascriptcode_fuzzer.cpp | 40 std::shared_ptr<OHOS::NWeb::NWeb> g_nweb = nullptr; variable 132 g_nweb = NWeb::NWebAdapterHelper::Instance().CreateNWeb( in DoSomethingInterestingWithMyAPI() 134 if (g_nweb == nullptr) { in DoSomethingInterestingWithMyAPI() 139 g_nweb->ExecuteJavaScript(code, callback); in DoSomethingInterestingWithMyAPI()
|
/base/web/webview/test/fuzztest/ontouchpress_fuzzer/ |
D | ontouchpress_fuzzer.cpp | 32 std::shared_ptr<OHOS::NWeb::NWeb> g_nweb = nullptr; variable 124 g_nweb = NWeb::NWebAdapterHelper::Instance().CreateNWeb( in DoSomethingInterestingWithMyAPI() 126 if (g_nweb == nullptr) { in DoSomethingInterestingWithMyAPI() 141 g_nweb->OnTouchPress(id, x, y); in DoSomethingInterestingWithMyAPI()
|
/base/web/webview/test/fuzztest/ontouchmove_fuzzer/ |
D | ontouchmove_fuzzer.cpp | 32 std::shared_ptr<OHOS::NWeb::NWeb> g_nweb = nullptr; variable 124 g_nweb = NWeb::NWebAdapterHelper::Instance().CreateNWeb( in DoSomethingInterestingWithMyAPI() 126 if (g_nweb == nullptr) { in DoSomethingInterestingWithMyAPI() 141 g_nweb->OnTouchMove(id, x, y); in DoSomethingInterestingWithMyAPI()
|
/base/web/webview/test/fuzztest/sendkeyevent_fuzzer/ |
D | sendkeyevent_fuzzer.cpp | 32 std::shared_ptr<OHOS::NWeb::NWeb> g_nweb = nullptr; variable 124 g_nweb = NWeb::NWebAdapterHelper::Instance().CreateNWeb( in DoSomethingInterestingWithMyAPI() 126 if (g_nweb == nullptr) { in DoSomethingInterestingWithMyAPI() 137 g_nweb->SendKeyEvent(keyCode, keyAction); in DoSomethingInterestingWithMyAPI()
|
/base/web/webview/test/fuzztest/loadwithdataandbaseurl_fuzzer/ |
D | loadwithdataandbaseurl_fuzzer.cpp | 32 std::shared_ptr<OHOS::NWeb::NWeb> g_nweb = nullptr; variable 124 g_nweb = NWeb::NWebAdapterHelper::Instance().CreateNWeb( in DoSomethingInterestingWithMyAPI() 126 if (g_nweb == nullptr) { in DoSomethingInterestingWithMyAPI() 134 g_nweb->LoadWithDataAndBaseUrl(baseUrl, datas, mimeType, encoding, historyUrl); in DoSomethingInterestingWithMyAPI()
|
/base/web/webview/test/fuzztest/ontouchrelease_fuzzer/ |
D | ontouchrelease_fuzzer.cpp | 32 std::shared_ptr<OHOS::NWeb::NWeb> g_nweb = nullptr; variable 124 g_nweb = NWeb::NWebAdapterHelper::Instance().CreateNWeb( in DoSomethingInterestingWithMyAPI() 126 if (g_nweb == nullptr) { in DoSomethingInterestingWithMyAPI() 141 g_nweb->OnTouchRelease(id, x, y); in DoSomethingInterestingWithMyAPI()
|