Home
last modified time | relevance | path

Searched refs:g_nweb (Results 1 – 17 of 17) sorted by relevance

/base/web/webview/test/ohos_nweb/
Dohos_nweb_test.cpp50 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/
Dloadurl_fuzzer.cpp32 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/
Dunregisterarkjsfunction_fuzzer.cpp32 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/
Dexecutejavascript_fuzzer.cpp39 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/
Dnweb_input_event_test.cpp42 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/
Dcannavigatebackorforward_fuzzer.cpp32 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/
Dload_fuzzer.cpp32 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/
Dputbackgroundcolor_fuzzer.cpp32 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/
Dloadwithdata_fuzzer.cpp32 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/
Dregisterarkjsfunction_fuzzer.cpp32 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/
Dzoom_fuzzer.cpp32 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/
Dexecutejavascriptcode_fuzzer.cpp40 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/
Dontouchpress_fuzzer.cpp32 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/
Dontouchmove_fuzzer.cpp32 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/
Dsendkeyevent_fuzzer.cpp32 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/
Dloadwithdataandbaseurl_fuzzer.cpp32 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/
Dontouchrelease_fuzzer.cpp32 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()